/* Clayknit windows (assets/ck-dialog.js): the same look on the shop, in admin and on the Scan screen. */
.ckd-overlay { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(18, 18, 18, .55); }
.ckd { position: relative; box-sizing: border-box; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 28px 22px; background: #fff; color: #121212; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); font-size: 15px; line-height: 1.5; text-align: start; }
.ckd__title { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; color: #121212; }
.ckd__text { margin: 0 0 18px; white-space: pre-line; }
.ckd__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; padding: 12px 14px; background: #f3f3f3; font-size: 14px; }
.ckd__facts dt { color: #6b6b6b; }
.ckd__facts dd { margin: 0; font-weight: 600; }
.ckd__warn { margin: 0 0 16px; padding: 8px 12px; border-inline-start: 3px solid #b32d2e; background: #fcf0f1; font-size: 14px; }
.ckd__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ckd .ckd__btn { min-height: 44px; margin: 0; padding: 10px 22px; border: 1px solid #121212; border-radius: 0; background: #fff; color: #121212; box-shadow: none; font: inherit; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.ckd .ckd__btn--primary { background: #121212; color: #fff; }
.ckd .ckd__btn--danger { border-color: #b32d2e; background: #b32d2e; }
.ckd .ckd__btn:focus-visible, .ckd .ckd__cancel:focus-visible { outline: 2px solid #121212; outline-offset: 2px; }

/* The slider. */
.ckd-slide { position: relative; height: 56px; background: #f3f3f3; border: 1px solid #121212; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.ckd-slide__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #121212; }
.ckd-slide__label { position: absolute; inset: 0; display: grid; place-items: center; padding-inline-start: 56px; padding-inline-end: 8px; font-weight: 600; letter-spacing: .04em; text-align: center; color: #121212; pointer-events: none; }
.ckd-slide .ckd-slide__handle, .ckd-slide .ckd-slide__handle:hover, .ckd-slide .ckd-slide__handle:active, .ckd-slide .ckd-slide__handle:focus { position: absolute; top: 4px; left: 4px; width: 48px; height: 46px; min-height: 0; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid #fff; border-radius: 0; background: #121212; color: #fff; box-shadow: none; font-size: 20px; line-height: 1; cursor: grab; }
.ckd-slide .ckd-slide__handle:active { cursor: grabbing; }
.ckd-slide .ckd-slide__handle:focus-visible { outline: 2px solid #121212; outline-offset: 2px; }
.ckd-slide.is-done .ckd-slide__label { color: #fff; }
.ckd__undo { margin: 10px 0 0; color: #6b6b6b; font-size: 12px; text-align: center; }
.ckd .ckd__cancel { display: block; width: 100%; margin: 12px 0 0; padding: 6px; border: 0; background: none; color: #121212; font: inherit; font-size: 14px; text-align: center; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ckd-slide__handle, .ckd-slide__fill { transition: none !important; } }
