/* =====================================================================
   LUNAR HAZE — PEEK INSIDE LOOKS (assets/css/kit-packed.css)
   ---------------------------------------------------------------------
   The "Peek inside" row on kit pages + the build_my_kit.exe window.
   PHP: includes/kit-packed.php. Drawing: assets/js/kit-packed.js.
   ===================================================================== */

/* the row: pink edge so it stands out a little, their packed case on the right */
.kq-jump.bmk-jump { border-color: var(--peri, #5B5FC7); padding-right: 10px; }   /* (the theme's main color, so it changes with each design's theme) */
.bmk-thumb { flex: none; display: block; height: 44px; width: 36px; margin: -6px 0; filter: drop-shadow(1px 2px 1px rgba(60, 20, 60, .25)); }

/* the window */
.bmk-layer { z-index: 85; }
.dialog-layer.kp-layer { z-index: 90; }   /* the grinder picker's "See all" window opens on top of build_my_kit.exe, not behind it */
.bmk-win { width: min(900px, 100%); box-shadow: 8px 8px 0 rgba(30, 18, 48, 0.45); animation: kq-pop-in .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .bmk-win { animation: none; } }
.bmk-win .win-body { padding: 0; background: #FFF8FB; }
.bmk-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
/* the case picture, with the front design stuck in its top corner (no words, just the art) */
.bmk-stage { position: relative; display: grid; place-items: center; padding: 22px; background: repeating-linear-gradient(180deg, #F6E7F0 0 28px, #FBF2F7 28px 56px); }
.bmk-canvas { display: block; width: 100%; max-width: 480px; height: auto; filter: drop-shadow(6px 10px 10px rgba(60, 20, 60, .2)); }
.bmk-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; border-left: 2px dashed #E3CFE0; }
.bmk-case { position: absolute; top: 12px; left: 12px; z-index: 3; pointer-events: none; transform: translateZ(0); }   /* (translateZ: on iPhones the case picture's shadow put it on its own layer, on top of the design. This keeps the design in front) */
.bmk-canvas { position: relative; z-index: 1; }
.bmk-case img { display: block; width: 120px; max-height: 110px; object-fit: contain; height: auto; border-radius: 6px; transform: rotate(-4deg); filter: drop-shadow(3px 4px 0 rgba(60, 20, 60, .2)); }
.bmk-turn { position: relative; display: block; width: 120px; height: calc(120px * var(--a)); transform: rotate(-4deg); }   /* (a sideways design turned back: see includes/kit-packed.php) */
.bmk-case .bmk-turn img { position: absolute; left: 50%; top: 50%; width: calc(120px * var(--a)); height: 120px; max-height: none; transform: translate(-50%, -50%) rotate(var(--r, -90deg)); }
.bmk-picks .kit-pick { margin: 0; }
.bmk-note { margin: 0; padding: 10px 12px; background: #F7E6F0; border: 1px dashed #E3B5CF; font-size: 13px; line-height: 1.5; color: #5A3A6A; }
.bmk-add { margin-top: auto; width: 100%; text-align: center; white-space: nowrap; font-size: clamp(12px, 3.6vw, 15px); }
/* Add to cart, then "🎁 Drop a hint: get it as a gift" spelled out under it (Nov 12 2026) */
.bmk-btns { margin-top: auto; display: grid; gap: 10px; }
.bmk-btns .bmk-add { margin-top: 0; }
.bmk-hint { margin: 0; text-align: center; }
.bmk-gift { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; border: 0; background: none; font: 13.5px/1.35 var(--body); color: var(--plum); cursor: pointer; text-align: left; }
.bmk-gift-ico { font-size: 20px; line-height: 1; flex: none; }
.bmk-gift-t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.bmk-gift:hover .bmk-gift-t { text-decoration-color: currentColor; }
.bmk-gift:focus-visible { outline: 2px dashed var(--pink); outline-offset: 2px; }

/* ✋ drag things out of the case (assets/js/kit-packed.js "Unpack it") */
.bmk-canvas { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bmk-canvas.bmk-grabbing { cursor: grabbing !important; }
.bmk-unpack { position: relative; z-index: 4; margin-top: 12px; padding: 5px 10px; border: 1.5px dashed rgba(94, 63, 122, .45); border-radius: 99px; background: rgba(255, 255, 255, .75); color: var(--plum, #5E3F7A); font: 12px/1.3 var(--body, monospace); cursor: default; }
.bmk-unpack:disabled { opacity: 1; }
.bmk-unpack.on { border-style: solid; border-color: var(--plum, #5E3F7A); background: #FFFFFF; font-weight: 700; cursor: pointer; box-shadow: 2px 2px 0 rgba(60, 20, 60, .2); }
.bmk-unpack.on:hover { background: #F7E6F0; }

/* the scroll bar down the right side of the window (assets/js/kit-packed.js): phones hide theirs */
.bmk-win { position: relative; }
.bmk-win .win-body { scrollbar-width: none; }
.bmk-win .win-body::-webkit-scrollbar { display: none; }
.bmk-sb { position: absolute; z-index: 5; top: 60px; bottom: 6px; right: 4px; width: 8px; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(60,20,60,.18); touch-action: none; cursor: pointer; }
.bmk-sb[hidden] { display: none; }
.bmk-sb-thumb { position: absolute; left: 2px; right: 2px; top: 0; border-radius: 99px; background: var(--peri, #5B5FC7); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); cursor: grab; }
@media (min-width: 721px) { .bmk-sb { width: 10px; } }

@media (max-width: 720px) {
    .bmk-layer { padding: 10px; padding-top: max(14px, env(safe-area-inset-top)); }
    .bmk-wrap { grid-template-columns: 1fr; }
    .bmk-stage { padding: 16px; }
    .bmk-canvas { max-width: 360px; }
    .bmk-side { border-left: 0; border-top: 2px dashed #E3CFE0; padding: 16px 14px 14px; }
    .bmk-picks .kp-strip { --kp-rows: 1; }   /* one row of grinders here on phones ("See all" has the rest) */
    .bmk-case { top: 8px; left: 8px; }
    .bmk-unpack { margin-top: 10px; font-size: 11.5px; }
    .bmk-case img { width: 96px; max-height: 84px; }
    .bmk-turn { width: 96px; height: calc(96px * var(--a)); }
    .bmk-case .bmk-turn img { width: calc(96px * var(--a)); height: 96px; max-height: none; }
    /* (Nov 16 2026) the kit stays put at the top while the picks under the dotted line scroll, so every change is in view */
    .bmk-stage { position: sticky; top: 0; z-index: 4; padding: 10px 12px 8px; box-shadow: 0 6px 10px -8px rgba(60, 20, 60, .35); }
    .bmk-canvas { width: auto; max-width: 100%; height: min(40vh, 330px); }
    .bmk-unpack { margin-top: 6px; }
    .bmk-case img { width: 72px; max-height: 64px; }
    .bmk-turn { width: 72px; height: calc(72px * var(--a)); }
    .bmk-case .bmk-turn img { width: calc(72px * var(--a)); height: 72px; }
}
