/* Haptic Setup Builder 0.3 – scoped to .hsb so the theme is never touched; buttons use #hsb-root or :not(#hsb-x)
   so theme rules such as button:not(:hover):not(.has-background) cannot repaint them. Fonts come from the theme.
   Look taken from haptic.store: ink #232323, gallery grey #F1F1F1, primary blue #5676A6, pill buttons. */
.hsb {
	--hsb-ink: #232323;
	--hsb-muted: #6B6B66;
	--hsb-line: #E6E6E3;
	--hsb-soft: #F1F1F1;
	--hsb-blue: #5676A6;
	--hsb-blue-hover: #385278;
	--hsb-blue-soft: #EBF3FF;
	--hsb-warn: #8A5200;
	--hsb-warn-bg: #FBF1E2;
	--hsb-ok: #2E6B3A;
	--hsb-ok-bg: #E8F2EA;
	color: var(--hsb-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	max-width: 1360px;
	margin: 24px auto 72px;
	container-type: inline-size;
	container-name: hsb;
}
.hsb *, .hsb *::before, .hsb *::after { box-sizing: border-box; min-width: 0; }
.hsb p { margin: 0; }
.hsb button, .hsb input { font: inherit; letter-spacing: normal; text-transform: none; }

.hsb .hsb-head { display: flex; flex-direction: column; gap: 10px; margin: 0 0 28px; }
.hsb .hsb-title { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--hsb-ink); text-wrap: balance; }
.hsb .hsb-lead { max-width: 62ch; }

.hsb .hsb-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@container hsb (min-width: 900px) { .hsb .hsb-app { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 48px; align-items: start; } }
.hsb .hsb-left { display: flex; flex-direction: column; gap: 40px; }

/* stage */
.hsb .hsb-stage { position: relative; background: var(--hsb-soft); height: clamp(420px, 62vh, 720px); overflow: hidden; }
@container hsb (max-width: 899px) { .hsb .hsb-stage { height: min(78cqi, 560px); min-height: 360px; } }
.hsb .hsb-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.hsb .hsb-view:active { cursor: grabbing; }
#hsb-root .hsb-pill { font-size: 13px; font-weight: 600; line-height: 1; min-height: 40px; padding: 0 16px; margin: 0; border: 1px solid var(--hsb-line); border-radius: 100px; background: rgba(255, 255, 255, .92); color: var(--hsb-ink); cursor: pointer; box-shadow: none; }
#hsb-root .hsb-pill:hover { border-color: var(--hsb-ink); background: rgba(255, 255, 255, .92); color: var(--hsb-ink); }
.hsb .hsb-views { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 200px); }
#hsb-root .hsb-views .hsb-pill[aria-pressed=true] { background: var(--hsb-ink); color: #fff; border-color: var(--hsb-ink); }
.hsb .hsb-lift { position: absolute; left: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 240px); }
.hsb .hsb-hint { position: absolute; right: 16px; top: 16px; color: var(--hsb-muted); background: rgba(255, 255, 255, .8); padding: 6px 12px; font-size: 12px; border-radius: 100px; }
.hsb .hsb-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.hsb-ibtn:not(#hsb-x) { width: 44px; height: 44px; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid #E6E6E3; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #232323; cursor: pointer; box-shadow: none; }
.hsb-ibtn:not(#hsb-x):hover { border-color: #232323; background: rgba(255, 255, 255, .92); color: #232323; }
.hsb-ibtn:not(#hsb-x)[aria-pressed=true] { background: #232323; color: #fff; border-color: #232323; }
.hsb-ibtn:not(#hsb-x) svg { width: 22px; height: 22px; display: block; }
.hsb-ibtn:not(#hsb-x) .hsb-i-min, .hsb-ibtn:not(#hsb-x)[aria-pressed=true] .hsb-i-max { display: none; }
.hsb-ibtn:not(#hsb-x)[aria-pressed=true] .hsb-i-min { display: block; }
.hsb [hidden] { display: none !important; }
@container hsb (max-width: 600px) {
	.hsb .hsb-tools { top: 12px; bottom: auto; right: 12px; }
	.hsb .hsb-hint { display: none; }
	.hsb .hsb-lift { top: 12px; left: 12px; max-width: calc(100% - 180px); }
	.hsb .hsb-views { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}
.hsb .hsb-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--hsb-muted); pointer-events: none; z-index: 2; background: var(--hsb-soft); }
.hsb .hsb-views, .hsb .hsb-tools, .hsb .hsb-lift { z-index: 3; }
.hsb .hsb-status.hsb-veil { background: rgba(241, 241, 241, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hsb .hsb-status-text { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.hsb .hsb-loader { position: relative; width: 56px; height: 56px; }
.hsb .hsb-loader svg { width: 56px; height: 56px; transform: rotate(-90deg); display: block; }
.hsb .hsb-ring-track, .hsb .hsb-ring { fill: none; stroke-width: 3; }
.hsb .hsb-ring-track { stroke: #DCDCD8; }
.hsb .hsb-ring { stroke: var(--hsb-ink); stroke-linecap: round; transition: stroke-dasharray .25s ease; }
.hsb .hsb-status.hsb-spin .hsb-loader svg { animation: hsb-spin 1s linear infinite; }
.hsb .hsb-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--hsb-ink); }
.hsb .hsb-status.hsb-error .hsb-loader { display: none; }
@keyframes hsb-spin { to { transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce) { .hsb .hsb-status.hsb-spin .hsb-loader svg { animation: none; } }
.hsb .hsb-dims { position: absolute; inset: 0; pointer-events: none; }
.hsb .hsb-dims span { position: absolute; transform: translate(-50%, -50%); background: #fff; color: var(--hsb-ink); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 100px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.hsb .hsb-stage:fullscreen { height: 100vh; width: 100vw; }
.hsb .hsb-stage.hsb-is-max { position: fixed; inset: 0; height: auto; min-height: 0; z-index: 100000; }
html.hsb-has-max, html.hsb-has-max body { overflow: hidden; }
#hsb-root .hsb-pill:focus-visible, .hsb-ibtn:not(#hsb-x):focus-visible, .hsb .hsb-opt:has(input:focus-visible), .hsb .hsb-sw:has(input:focus-visible) .hsb-dot,
.hsb .hsb-chip:has(input:focus-visible), #hsb-root .hsb-cta:focus-visible, #hsb-root .hsb-photos button:focus-visible { outline: 2px solid var(--hsb-blue); outline-offset: 2px; }

/* gallery */
.hsb .hsb-gtitle { margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--hsb-ink); }
.hsb .hsb-gsub { margin: 0 0 16px; color: var(--hsb-muted); font-size: 14px; }
.hsb .hsb-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@container hsb (max-width: 600px) { .hsb .hsb-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#hsb-root .hsb-photos button { display: block; position: relative; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--hsb-soft); cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; width: 100%; }
.hsb .hsb-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; max-width: none; }
#hsb-root .hsb-photos button:hover img { transform: scale(1.03); }
.hsb .hsb-tag { position: absolute; left: 8px; top: 8px; background: #fff; color: var(--hsb-ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
dialog.hsb-lb:not([open]) { display: none !important; }
dialog.hsb-lb { border: 0; padding: 0; margin: auto; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
dialog.hsb-lb::backdrop { background: rgba(20, 20, 20, .82); }
.hsb-lb figure { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hsb-lb img { max-width: min(1200px, 94vw); max-height: 84vh; display: block; width: auto; height: auto; }
.hsb-lb figcaption { color: #fff; font-size: 14px; }
.hsb-lb .hsb-lb-close { position: fixed; top: 16px; right: 16px; }
.hsb-lb .hsb-lb-nav { position: fixed; top: 50%; transform: translateY(-50%); }
.hsb-lb .hsb-lb-prev { left: 16px; }
.hsb-lb .hsb-lb-next { right: 16px; }

/* options */
.hsb .hsb-panel { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.hsb .hsb-step { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hsb .hsb-step legend { padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--hsb-ink); float: none; width: auto; border: 0; }
.hsb .hsb-step legend b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hsb-ink); color: #fff; font-size: 12px; font-weight: 700; }
.hsb .hsb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hsb .hsb-opts.hsb-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hsb .hsb-opts.hsb-one { grid-template-columns: minmax(0, 1fr); }
@container hsb (max-width: 600px) { .hsb .hsb-opts.hsb-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container hsb (max-width: 420px) { .hsb .hsb-opts:not(.hsb-keep):not(.hsb-four) { grid-template-columns: minmax(0, 1fr); } }
.hsb .hsb-opt { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; border: 1px solid var(--hsb-line); border-radius: 18px; padding: 12px 16px; min-height: 56px; cursor: pointer; background: #fff; transition: border-color .15s; font-weight: 400; }
.hsb .hsb-opt:hover { border-color: #BDBDB8; }
.hsb .hsb-opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hsb .hsb-opt b { font-size: 15px; font-weight: 700; }
.hsb .hsb-opt small { font-size: 12px; color: var(--hsb-muted); }
.hsb .hsb-opt .hsb-p { font-size: 12px; font-weight: 600; margin-top: 2px; }
.hsb .hsb-opt:has(input:checked) { border-color: var(--hsb-ink); box-shadow: inset 0 0 0 1px var(--hsb-ink); }
.hsb .hsb-opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.hsb .hsb-opt:has(input:disabled) input { cursor: not-allowed; }

.hsb .hsb-crows { display: flex; flex-direction: column; gap: 12px; }
.hsb .hsb-crow { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 4px 12px; align-items: center; min-height: 44px; }
@container hsb (max-width: 520px) { .hsb .hsb-crow { grid-template-columns: minmax(0, 1fr); } .hsb .hsb-ghost { display: none !important; } }
.hsb .hsb-cname { font-size: 14px; font-weight: 700; display: flex; flex-direction: column; }
.hsb .hsb-cname small { font-weight: 400; color: var(--hsb-muted); font-size: 12px; }
.hsb .hsb-sws { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hsb .hsb-sw { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px; margin: 0; font-size: 13px; cursor: pointer; }
.hsb .hsb-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hsb .hsb-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); box-shadow: 0 0 0 4px #fff; }
.hsb .hsb-sw:has(input:checked) .hsb-dot { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--hsb-ink); }
.hsb .hsb-match { padding: 0 14px; border: 1px solid var(--hsb-line); border-radius: 100px; font-weight: 600; }
.hsb .hsb-match:has(input:checked) { border-color: var(--hsb-ink); background: var(--hsb-ink); color: #fff; }
.hsb .hsb-ghost { visibility: hidden; }
.hsb .hsb-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hsb .hsb-label { font-size: 13px; font-weight: 700; margin-top: 4px; }
.hsb .hsb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hsb .hsb-chip { position: relative; margin: 0; cursor: pointer; }
.hsb .hsb-chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hsb .hsb-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--hsb-line); border-radius: 100px; font-size: 13px; font-weight: 600; background: #fff; }
.hsb .hsb-chip:has(input:checked) span { background: var(--hsb-ink); border-color: var(--hsb-ink); color: #fff; }

.hsb .hsb-note { font-size: 13px; padding: 10px 16px; background: var(--hsb-blue-soft); color: var(--hsb-blue-hover); border-radius: 14px; }
.hsb .hsb-note.hsb-warn { background: var(--hsb-warn-bg); color: var(--hsb-warn); }
.hsb .hsb-note.hsb-ok { background: var(--hsb-ok-bg); color: var(--hsb-ok); }
.hsb .hsb-note a { color: inherit; text-decoration: underline; }
.hsb .hsb-fine { font-size: 12px; color: var(--hsb-muted); }
.hsb .hsb-fine a { color: inherit; text-decoration: underline; }

.hsb .hsb-sum { background: var(--hsb-soft); padding: 20px 22px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hsb .hsb-row { display: flex; justify-content: space-between; gap: 12px; }
.hsb .hsb-row span:last-child { white-space: nowrap; }
.hsb .hsb-row em { color: var(--hsb-muted); font-style: normal; font-size: 12px; }
.hsb .hsb-total { border-top: 1px solid #DADAD6; padding-top: 10px; margin-top: 4px; font-weight: 800; font-size: 16px; }
.hsb .hsb-buy { display: flex; flex-direction: column; gap: 10px; }
#hsb-root .hsb-cta { font-size: 16px; font-weight: 700; height: 66px; padding: 0 40px; margin: 0; border: 0; border-radius: 100px; background: var(--hsb-blue); color: #fff; cursor: pointer; width: 100%; text-transform: none; box-shadow: none; }
#hsb-root .hsb-cta:hover { background: var(--hsb-blue-hover); color: #fff; }
#hsb-root .hsb-cta:disabled { opacity: .5; cursor: not-allowed; }
.hsb .hsb-msg:empty { display: none; }
.hsb .hsb-msg.hsb-warn { color: var(--hsb-warn); font-size: 14px; }
.hsb .hsb-loading { color: var(--hsb-muted); }
.hsb.hsb-pad { padding-inline: max(16px, 4vw); }

/* availability: ✓ on every colour in stock */
.hsb .hsb-sw.hsb-instock::after { content: "\2713"; position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: #7cbb1f; color: #fff; font-size: 8px; line-height: 13px; text-align: center; font-weight: 700; border: 1.5px solid #fff; box-sizing: content-box; pointer-events: none; }
.hsb .hsb-sw.hsb-out .hsb-dot { opacity: .3; }
.hsb .hsb-sw.hsb-out { cursor: not-allowed; }
.hsb .hsb-row em.hsb-order { color: #7cbb1f; font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hsb .hsb-av { line-height: 1.45; }
.hsb .hsb-av p { color: #6b7280; font-size: 13px; margin: 2px 0 0; }
.hsb .hsb-av .hsb-av-h { color: #7cbb1f; font-weight: 600; font-size: 14px; margin: 0; }

/* sale: regular price struck through, as on the product pages */
.hsb del { color: inherit; font-weight: 400; text-decoration: line-through; opacity: .55; margin-left: 2px; }
.hsb .hsb-total del { font-size: 14px; }

/* phones: the 3D view stays on screen, the options scroll underneath */
.hsb.hsb-sticky .hsb-stage { position: sticky; top: var(--hsb-top, 0px); z-index: 20; height: min(46vh, 380px); min-height: 260px; align-self: start; order: 0; box-shadow: 0 6px 12px -10px rgba(0, 0, 0, .35); }
.hsb.hsb-sticky .hsb-panel { order: 1; }
.hsb.hsb-sticky .hsb-left { order: 2; }
.hsb.hsb-sticky .hsb-stage.hsb-is-max { position: fixed; inset: 0; top: 0; height: auto; z-index: 100000; }
