/* Build your box (output/drawer-boxes-2026-11-05/order; build_site.py copies it to the site). */
.bb{background:#f7f2e7;color:#092b3b;padding-bottom:110px}
.bb h1,.bb h2{font-family:Editorial,Georgia,serif;font-weight:400;letter-spacing:-.02em}
.bb h1 em,.bb h2 em{font-style:italic;color:#7a5a22}
.bb p{margin:0}
.bb button{font:inherit;color:inherit}
.bb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* hero */
.bb-hero{max-width:1200px;margin:0 auto;padding:clamp(28px,5vw,56px) 5% 6px}
.bb-hero .eyebrow{margin:0}
.bb-hero h1{font-size:clamp(46px,7vw,76px);line-height:1;margin:10px 0 14px}
.bb-intro{font-size:clamp(17px,1.8vw,20px);line-height:1.5;max-width:660px}
.bb-sale{display:inline-flex;flex-wrap:wrap;gap:4px 8px;margin-top:16px;padding:9px 16px;border-radius:999px;background:#092b3b;color:#f7f2e7;font-size:15px}
.bb-sale strong{color:#e2bd72}

/* design: preview + steps */
.bb-design{max-width:1200px;margin:0 auto;padding:22px 5% 0;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(24px,4vw,48px);align-items:start;scroll-margin-top:calc(var(--bb-head,0px) + 8px)}
.bb-stage{position:sticky;top:calc(var(--bb-head,0px) + 16px)}
.bb-stage-card{position:relative;border-radius:22px;padding:16px;background:radial-gradient(ellipse at 50% 36%,#2d5068 0%,#143143 52%,#0b1d29 100%);box-shadow:0 18px 40px rgba(9,43,59,.22)}
.bb-view{position:absolute;top:14px;left:14px;z-index:1;display:inline-flex;padding:3px;border-radius:999px;background:rgba(255,255,255,.1)}
.bb-view button{border:0;background:none;cursor:pointer;color:#e9e3d6;font-size:14px;padding:6px 13px;border-radius:999px}
.bb-view button[aria-pressed=true]{background:#f7f2e7;color:#092b3b}
.bb-view button:focus-visible{outline:2px solid #e2bd72;outline-offset:2px}
.bb-svg{display:block;width:100%;height:auto;margin-top:18px}
.bb-3d{display:none;position:relative;width:100%;aspect-ratio:420/316;margin-top:18px;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.bb-3d:active{cursor:grabbing}
.bb-3d canvas{display:block;width:100%;height:100%;outline:none}
.bb-stage-card.has-3d .bb-svg{display:none}
.bb-stage-card.has-3d:not([data-view=photo]) .bb-3d{display:block}
.bb-3d-hint{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);margin:0;padding:4px 11px;border-radius:999px;background:rgba(5,18,26,.5);color:#f4efe4;font-size:.76rem;letter-spacing:.02em;white-space:nowrap;pointer-events:none;transition:opacity .5s ease}
.bb-3d.is-turned .bb-3d-hint{opacity:0}
.bb-3d.is-loading::after{content:"";position:absolute;top:6px;right:6px;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.22);border-top-color:#f4efe4;animation:bb-turn .8s linear infinite}
@keyframes bb-turn{to{transform:rotate(360deg)}}
.bb-photo{display:none;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:14px;margin-top:48px}
.bb-stage-card[data-view=photo] .bb-svg{display:none}
.bb-stage-card[data-view=photo] .bb-photo{display:block}
.bb-caption{color:#d9d2c3;font-size:14px;text-align:center;margin:8px 0 2px}
.bb-svg .p-body{fill:var(--body,#1e2f57)}
.bb-svg .p-lid{fill:var(--lid,#1e2f57)}
.bb-svg .p-drawer{fill:var(--drawer,#c9a35c)}
.bb-svg .p-latch{fill:var(--latch,#c62a2f)}
.bb-svg .p-body,.bb-svg .p-lid,.bb-svg .p-drawer,.bb-svg .p-latch{transition:fill .35s ease}
.bb-svg:not([data-drawer]) .bb-with-drawer,.bb-svg[data-drawer] .bb-no-drawer{display:none}
.bb-svg .bb-edge{fill:none;stroke:rgba(0,0,0,.42);stroke-width:1.3;stroke-linejoin:round}
.bb-svg .bb-seam{fill:none;stroke:rgba(0,0,0,.38);stroke-width:1.6}
.bb-svg .bb-rim{fill:none;stroke:rgba(255,255,255,.4);stroke-width:1.2;stroke-linecap:round}
.bb-svg .bb-latch-hi{fill:none;stroke:rgba(255,255,255,.3);stroke-width:1;vector-effect:non-scaling-stroke}
.bb-svg .bb-panel{fill:rgba(0,0,0,.17);stroke:rgba(0,0,0,.3);stroke-width:1.2}

.bb-steps{display:grid;gap:14px;min-width:0}
.bb-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:thin}
.bb-tabs button{flex:none;display:inline-flex;align-items:center;gap:8px;border:1px solid #d0c6b2;background:#fffdf8;border-radius:999px;padding:8px 14px;cursor:pointer;font-size:14px}
.bb-tabs button[aria-current=true]{background:#092b3b;border-color:#092b3b;color:#f7f2e7}
.bb-step{min-width:0;margin:0;border:1px solid #d9d0bd;border-radius:18px;background:#fffdf8;padding:18px 20px 20px}
.bb-step legend{float:left;width:100%;padding:0;margin:0 0 14px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:19px}
.bb-step legend+*{clear:both}
.bb-step legend small{margin-left:auto;font-weight:400;font-size:14px;color:#52665a}
.bb-num{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#092b3b;color:#f7f2e7;font-size:14px;font-weight:600}
.bb-link,.bb-change{border:0;background:none;padding:6px 0;cursor:pointer;color:#7a5a22;font-weight:600;font-size:15px;text-decoration:underline;text-underline-offset:3px}

.bb-chosen{display:flex;align-items:center;gap:14px}
.bb-chosen img{flex:none;width:96px;height:72px;object-fit:cover;border-radius:10px;background:#e9e2d2}
.bb-chosen-name{display:block;font-weight:600;font-size:18px}
.bb-chosen-lead{display:block;color:#52665a;font-size:14px;line-height:1.35}
.bb-chosen-price{display:block;font-weight:600;font-size:15px;margin-top:2px}
.bb-chosen .bb-change{margin-left:auto;flex:none}
.bb-group-title{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#52665a;margin:16px 0 8px}
.bb-group-title:first-child{margin-top:0}
.bb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.bb-tile{position:relative;display:block;border:1.5px solid #e1d8c6;border-radius:12px;padding:6px 6px 8px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.bb-tile:hover{transform:translateY(-2px);border-color:#c9b48a}
.bb-tile.is-on{border-color:#a47c36;box-shadow:0 0 0 3px rgba(164,124,54,.25)}
.bb-tile input{position:absolute;top:10px;left:10px;opacity:0;margin:0}
.bb-tile:focus-within{outline:2px solid #092b3b;outline-offset:2px}
.bb-tile img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#e9e2d2}
.bb-tile-name{display:block;font-size:13px;font-weight:600;line-height:1.25;margin-top:6px}
.bb-tile-price{display:block;font-size:12px;color:#52665a}
.bb-picker-done{display:flex;justify-content:flex-end;margin-top:10px}

.bb-part+.bb-part{margin-top:16px}
.bb-part-label{font-weight:600;font-size:15px;margin-bottom:8px !important}
.bb-part-label span{font-weight:400;color:#52665a;margin-left:6px}
.bb-swatches{display:flex;flex-wrap:wrap;gap:5px}
.bb-swatch{position:relative;display:block;cursor:pointer}
.bb-swatch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.bb-sw{display:block;width:30px;height:30px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);transition:transform .12s,box-shadow .12s}
.bb-swatch:hover .bb-sw{transform:scale(1.08)}
.bb-swatch.is-on .bb-sw{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 0 0 3px #fffdf8,0 0 0 5px #092b3b}
.bb-swatch input:focus-visible+.bb-sw{outline:2px solid #a47c36;outline-offset:5px}
.bb-hint{font-size:14px;color:#52665a;margin-top:14px !important}
.bb-custom{margin-top:18px;padding-top:16px;border-top:1px solid #e6dece}
.bb-chips{display:flex;flex-wrap:wrap;gap:8px}
.bb-chip{position:relative;cursor:pointer}
.bb-chip input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.bb-chip span{display:block;border:1px solid #d0c6b2;border-radius:999px;padding:8px 14px;font-size:14px;background:#fff;transition:background .15s,color .15s}
.bb-chip input:checked+span{background:#092b3b;border-color:#092b3b;color:#f7f2e7}
.bb-chip input:focus-visible+span{outline:2px solid #a47c36;outline-offset:2px}

.bb-qty-row{display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap}
.bb-qty{display:inline-flex;align-items:center;border:1px solid #c9bfab;border-radius:999px;background:#fff}
.bb-qty button{border:0;background:none;cursor:pointer;width:46px;height:46px;font-size:22px;line-height:1;border-radius:50%}
.bb-qty button:disabled{opacity:.3;cursor:default}
.bb-qty output{min-width:30px;text-align:center;font-weight:600;font-size:18px}
.bb-add{border:1.5px dashed #a47c36;background:none;cursor:pointer;color:#7a5a22;font-weight:600;font-size:15px;border-radius:999px;padding:11px 18px}
.bb-add:hover{background:#fbf3e2}
.bb-add:disabled{opacity:.4;cursor:default}
.bb-deal{font-size:14px;color:#52665a;margin-top:12px !important}

/* checkout: your details + your order */
.bb-checkout{max-width:1200px;margin:0 auto;padding:clamp(40px,6vw,72px) 5% 0;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,4vw,48px);align-items:start;scroll-margin-top:calc(var(--bb-head,0px) + 8px)}
.bb-checkout h2{font-size:clamp(30px,3.4vw,40px);line-height:1.08;margin:0 0 8px}
.bb-details>p{color:#52665a;line-height:1.5}
.bb-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}
.bb-field{display:grid;gap:6px;align-content:start;font-size:15px;font-weight:600}
.bb-field.bb-wide{grid-column:1/-1}
.bb-field .bb-optional{font-weight:400;color:#52665a}
.bb-field input,.bb-field textarea{box-sizing:border-box;width:100%;min-height:50px;font:inherit;font-weight:400;font-size:16px;color:#092b3b;background:#fff;border:1px solid #a3aa9f;border-radius:10px;padding:12px 14px}
.bb-field textarea{min-height:0;resize:vertical;line-height:1.45}
.bb-field input:focus,.bb-field textarea:focus{outline:none;border-color:#a47c36;box-shadow:0 0 0 3px rgba(164,124,54,.22)}
.bb-field [aria-invalid=true]{border-color:#b3261e}
.bb-field-error{color:#b3261e;font-weight:400;font-size:14px}
.bb-abroad{grid-column:1/-1;display:flex;align-items:center;gap:10px;font-size:15px;cursor:pointer;justify-self:start}
.bb-abroad input{width:20px;height:20px;margin:0;accent-color:#092b3b}
.bb-send{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:24px;padding:18px 24px;border-radius:999px;cursor:pointer;font-weight:600;font-size:19px;color:#fff !important;background:linear-gradient(180deg,#164a62 0%,#092b3b 100%);border:1px solid rgba(222,192,126,.4);box-shadow:0 8px 22px rgba(9,43,59,.28);transition:transform .15s,box-shadow .15s}
.bb-send:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(9,43,59,.34)}
.bb-send:disabled{opacity:.75;cursor:progress;transform:none}
.bb-fine{font-size:14px;color:#52665a;line-height:1.55;margin-top:14px !important;text-align:center}
.bb-fine a{color:inherit}
.bb-problem{margin-top:14px !important;padding:12px 16px;border-radius:12px;background:#fbe9e7;color:#8c1d18;line-height:1.45}
.bb-summary{position:sticky;top:calc(var(--bb-head,0px) + 16px);background:#fffdf8;border:1px solid #d9d0bd;border-radius:20px;padding:22px 22px 20px;box-shadow:0 10px 30px rgba(9,43,59,.07)}
.bb-summary h2{font-size:clamp(26px,2.6vw,32px)}
.bb-lines{list-style:none;margin:8px 0 14px;padding:0}
.bb-line{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 0;border-top:1px solid #e6dece}
.bb-line:first-child{border-top:0}
.bb-line.is-active img{box-shadow:0 0 0 2px #a47c36}
.bb-line img{display:block;width:64px;height:48px;object-fit:cover;border-radius:8px;background:#e9e2d2}
.bb-line-name{font-weight:600;line-height:1.3}
.bb-line-name span{font-weight:400;color:#52665a}
.bb-line-colors{font-size:13px;color:#52665a;line-height:1.45;margin-top:2px !important}
.bb-line-actions{margin-top:4px !important;display:flex;gap:14px}
.bb-line-actions button{border:0;background:none;padding:2px 0;cursor:pointer;font-size:13px;color:#7a5a22;text-decoration:underline;text-underline-offset:2px}
.bb-line-price{font-weight:600;white-space:nowrap}
.bb-dots{display:inline-flex;gap:3px;vertical-align:-1px;margin-right:6px}
.bb-dots i{display:block;width:11px;height:11px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.22)}
.bb-tabs .bb-dots i{width:10px;height:10px}
.bb-totals{margin:16px 0 0;padding-top:12px;border-top:1px solid #d9d0bd;display:grid;gap:6px}
.bb-totals div{display:flex;justify-content:space-between;gap:12px}
.bb-totals dt{color:#52665a}
.bb-totals dd{margin:0;font-weight:600}
.bb-totals .bb-save dd{color:#2e7d4f}
.bb-totals .bb-total{margin-top:4px;padding-top:10px;border-top:1px solid #e6dece;font-size:21px}
.bb-totals .bb-total dt{color:#092b3b;font-weight:600}
.bb-total-note{font-size:14px;color:#52665a;margin-top:8px !important;line-height:1.45}

/* bottom bar */
.bb-bar{position:fixed;left:50%;bottom:16px;z-index:30;display:flex;align-items:center;gap:16px;max-width:calc(100% - 32px);box-sizing:border-box;padding:8px 8px 8px 22px;border-radius:999px;background:#092b3b;color:#f7f2e7;box-shadow:0 14px 34px rgba(9,43,59,.35);transform:translateX(-50%);transition:transform .3s ease,opacity .3s ease}
.bb-bar.is-hidden{opacity:0;transform:translate(-50%,140%);pointer-events:none}
.bb-bar p{display:flex;align-items:baseline;gap:10px;white-space:nowrap}
.bb-bar #bb-bar-total{color:#e2bd72;font-weight:600}
.bb-bar a{flex:none;display:inline-flex;gap:8px;align-items:center;padding:12px 20px;border-radius:999px;background:#e2bd72;color:#092b3b;font-weight:600;text-decoration:none}
.bb-bar a:focus-visible{outline:2px solid #f7f2e7;outline-offset:2px}

/* sent */
.bb-done{max-width:720px;margin:0 auto;padding:clamp(32px,6vw,64px) 5% 0;text-align:center;scroll-margin-top:calc(var(--bb-head,0px) + 8px)}
.bb-done:focus{outline:none}
.bb-check{display:block;width:88px;height:88px;margin:0 auto 18px}
.bb-check circle{fill:none;stroke:#2e7d4f;stroke-width:4;stroke-dasharray:240;stroke-dashoffset:240;animation:bb-draw .6s ease-out forwards}
.bb-check path{fill:none;stroke:#2e7d4f;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:60;stroke-dashoffset:60;animation:bb-draw .35s .5s ease-out forwards}
@keyframes bb-draw{to{stroke-dashoffset:0}}
.bb-done h2{font-size:clamp(40px,6vw,60px);line-height:1.02;margin:0 0 18px}
.bb-ref-label{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#52665a}
.bb-ref{display:inline-block;margin:6px 0 18px !important;padding:8px 16px;border:1.5px dashed #a47c36;border-radius:10px;background:#fffdf8;font-family:ui-monospace,Consolas,monospace;font-size:19px;letter-spacing:.04em}
.bb-done-lead{font-size:18px;line-height:1.5;max-width:560px;margin:0 auto !important}
.bb-next{margin:24px 0 0;padding:18px 22px;border:1px solid #d9d0bd;border-radius:18px;background:#fffdf8;text-align:left}
.bb-next-title{font-weight:600;margin-bottom:6px !important}
.bb-next ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;line-height:1.45}
.bb-next-total{margin-top:12px !important;padding-top:10px;border-top:1px solid #e6dece}
.bb-steps-after{margin:22px auto 0;padding:0;list-style:none;counter-reset:s;display:grid;gap:10px;text-align:left;max-width:520px}
.bb-steps-after li{counter-increment:s;display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:center;line-height:1.45}
.bb-steps-after li::before{content:counter(s);display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#092b3b;color:#f7f2e7;font-size:13px;font-weight:600}
.bb-done-actions{display:flex;flex-wrap:wrap;gap:12px 22px;justify-content:center;align-items:center;margin-top:28px}
.bb-done-actions .button{display:inline-block}

@media (max-width:900px){
  .bb-design,.bb-checkout{grid-template-columns:minmax(0,1fr)}
  .bb-stage{top:var(--bb-head,0px);z-index:5;margin:0 -5%;padding:8px 5%;background:linear-gradient(#f7f2e7 85%,rgba(247,242,231,0))}
  .bb-stage-card{padding:8px 10px;border-radius:18px}
  .bb-view{top:8px;left:8px}
  .bb-svg{max-height:26vh;margin-top:6px}
  .bb-3d{max-height:26vh;margin-top:6px}
  .bb-photo{max-height:26vh;margin:40px auto 0;width:auto}
  .bb-caption{margin-top:2px;font-size:13px}
  .bb-summary{position:static;order:-1}
}
@media (max-width:560px){
  .bb-hero,.bb-design,.bb-checkout,.bb-done{padding-left:16px;padding-right:16px}
  .bb-stage{margin:0 -16px;padding:6px 16px}
  .bb-step{padding:16px 14px 18px}
  .bb-fields{grid-template-columns:minmax(0,1fr)}
  .bb-chosen img{width:76px;height:57px}
  .bb-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .bb-summary{padding:18px 16px}
  .bb-bar{left:16px;right:16px;max-width:none;transform:none;justify-content:space-between}
  .bb-bar.is-hidden{transform:translateY(140%)}
}
@media (pointer:coarse){.bb-sw{width:38px;height:38px}.bb-swatches{gap:9px}}
@media (prefers-reduced-motion:reduce){
  .bb *,.bb-bar{transition:none !important;animation:none !important}
  .bb-check circle,.bb-check path{stroke-dashoffset:0}
}
