/* Product-specific preview layers retain their original coordinates. */
#publicFloatingPreview { position: relative; }
#publicFloatingPreview .preview > img, #publicFloatingPreview .preview > canvas { object-fit: contain; }
#publicFloatingPreview .option-preview-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#selectedPreviewLongStrapOverlay { z-index: 2; }
#selectedPreviewShortStrapOverlay { z-index: 3; }
#selectedPreviewMetalOverlay { z-index: 4; }
#selectedPreviewThreadOverlay { z-index: 5; }
#selectedPreviewButtonOverlay { z-index: 6; }
#publicPreviewChip { display: none; }
.slot-order-page .product-heading h1 { word-break: keep-all; }
.slot-order-page .slot-label { display: flex; align-items: center; justify-content: center; min-height: 2.6em; }
.option-face { display: flex; align-items: center; justify-content: center; padding: 3px; color: #eee5d5; background: #101722; font-size: .65rem; line-height: 1.4; overflow-wrap: anywhere; }
.metal-face { inset: 3px; border-radius: 50%; background: transparent; border: 5px solid var(--color); box-shadow: inset 0 1px 2px #fff8, inset 0 -1px 2px #000, 0 1px 2px #fff6, 0 2px 4px #000b; }
.reel-strip .metal-face { width: calc(100% - 6px); height: calc(100% - 6px); margin-bottom: 6px; }
.palette.is-options { grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 8px; }
.option-choice { display: flex; flex-direction: column; gap: 7px; align-items: center; justify-content: center; min-height: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #101722; color: var(--ink); font-size: .875rem; }
.option-choice[aria-checked=true] { border-color: var(--panel-edge); box-shadow: var(--selected-chip-backlight); }
.option-price { font-size: .6875rem; color: var(--muted); }
.palette-material .color-dot { overflow: hidden; }
/* Keep material and thread cells the same height when changing options. */
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap], [data-part^="thread-"]) {
  --palette-row-height: 52.8px;
  --palette-material-title-height: 1.125rem;
  padding-block: calc(14px / 3);
}
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap], [data-part^="thread-"]) .palette-heading { margin-bottom: calc(8px / 3); }
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap]) .palette-material { padding-block: calc(8px / 3); }
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap]) .palette-material-title {
  margin-bottom: calc(4px / 3);
  line-height: var(--palette-material-title-height);
}
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap]) .palette-grid {
  padding-block: calc(4px / 3);
  grid-auto-rows: var(--palette-row-height);
}
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap], [data-part^="thread-"]) .material-note { margin-top: calc(8px / 3); }
.slot-order-page .palette-panel[data-part^="thread-"] .palette {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: var(--palette-row-height);
  gap: 8px 3px;
  /* Reserve the material label and border space without drawing partitions. */
  padding: calc(1px + 16px / 3 + var(--palette-material-title-height)) 5px 5px;
}
.slot-order-page .palette-panel[data-part^="thread-"] .swatch { padding-inline: 0; }
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap], [data-part^="thread-"]) .swatch-pair { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap], [data-part^="thread-"]) .half-swatch { min-height: 0; }
.slot-order-page .palette-panel:is([data-part=body], [data-part=long-strap], [data-part=short-strap], [data-part^="thread-"]) .half-swatch .color-dot { width: 46.8px; }
.slot-order-page #selectionError { margin: -8px 0 14px; }
.page-status { max-width: 800px; min-height: 40vh; margin: 40px auto; padding: 24px; }
.page-status h1 { font-size: 1.5rem; margin-bottom: 20px; }
.page-status a { text-decoration: underline; }
.review-dialog > canvas { display: block; width: 100%; height: auto; border-radius: 14px; }
.commerce-consent, .craft-pledge { margin: 20px 0; font-size: .75rem; line-height: 1.9; }
.commerce-consent label, .craft-pledge label { display: flex; align-items: flex-start; gap: 8px; }
.commerce-consent input, .craft-pledge input { flex: none; width: 18px; height: 18px; accent-color: #aacdf6; }
.commerce-consent a { display: inline-block; text-decoration: underline; margin-left: 26px; }
.craft-pledge-title { display: none; }
.craft-pledge-message { color: var(--muted); }
.commerce-information-heading { display: none; }
.commerce-accordions summary small { display: none; }
.commerce-accordions table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.commerce-accordions th, .commerce-accordions td { border-bottom: 1px solid var(--line); padding: 10px 0; text-align: left; vertical-align: top; }
.commerce-accordions th { width: 90px; font-weight: 500; padding-right: 12px; }
.commerce-accordions ul { padding-left: 18px; }
.commerce-accordions li + li { margin-top: 8px; }
.commerce-accordions h3 { font-size: .875rem; font-weight: 500; color: var(--ink); }
.commerce-accordions a { text-decoration: underline; }
.supporting-previews { max-width: 860px; padding: 0 40px; margin: 0 auto 70px; }
.preview-samples { border: 1px solid var(--panel-edge); border-radius: 16px; padding: 16px; margin: 18px 0 28px; background: var(--cell-surface); }
.preview-samples summary { position: relative; padding-right: 24px; font-size: .875rem; }
.stitch-preview, .keyring-preview { margin-top: 12px; overflow: hidden; border-radius: 8px; }
.stitch-preview-canvas { position: relative; width: 100%; aspect-ratio: 1100/84; min-height: 32px; background: var(--stitch-leather); }
.stitch-preview-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.keyring-preview-canvas { position: relative; width: 100%; aspect-ratio: 960/369; background: #fffaf3; }
.keyring-preview-svg, .keyring-preview-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; }
.keyring-preview-svg { z-index: 1; }
.keyring-preview-canvas img { z-index: 2; object-fit: contain; mix-blend-mode: darken; }
.order-gallery-column .order-column-heading span { display: none; }
.order-gallery-column h2 { font-size: 1rem; font-weight: 500; margin: 0 0 16px; }
.product-gallery-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; cursor: grab; }
.product-gallery-viewport::-webkit-scrollbar { display: none; }
.product-gallery-viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.product-gallery-track { display: flex; }
.product-gallery-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.product-gallery-slide img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #101722; }
.product-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.product-gallery-arrow { border: 1px solid var(--line); border-radius: 50%; background: #171d27; width: 36px; height: 36px; }
.product-gallery-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.product-gallery-dots button { width: 12px; height: 12px; padding: 0; background: #4a5262; border: 0; border-radius: 50%; }
.product-gallery-dots button[aria-current=true] { background: #ecd6ad; box-shadow: 0 0 10px #edbc65a0; }
.public-toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid var(--panel-edge); border-radius: 12px; background: #101722; color: var(--ink); font-size: .875rem; }
@media(max-width:820px) {
  .supporting-previews { max-width: 800px; padding-inline: var(--mobile-order-inset); margin-top: 0; }
  .slot-order-page .site-header .product-heading h1 { font-size: clamp(1.25rem,5.3vw,1.875rem); line-height: 1.35; }
}
