/* BOY STORE ID V18.7 — iOS-like system typography + semantic contrast.
   SF on Apple devices through -apple-system; Inter/Roboto on other platforms.
   No proprietary Apple font files are embedded or distributed.
   Tokens are inherited from the existing 28 presets / background modes. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root {
  --buyer-font-ui:-apple-system,BlinkMacSystemFont,'SF Pro Text',Inter,Roboto,'Segoe UI',system-ui,sans-serif;
  --buyer-font-display:-apple-system,BlinkMacSystemFont,'SF Pro Display',Inter,Roboto,'Segoe UI',system-ui,sans-serif;
  --buyer-text-primary:var(--ui-ink,#30263c);
  --buyer-text-secondary:var(--ui-muted,#66596e);
  --buyer-surface:var(--ui-surface,#fffdfd);
  --buyer-surface-alt:var(--ui-surface-soft,#fff5f9);
  --buyer-border:var(--ui-stroke,#dcb9cb);
}
/* Undo previous Poppins/Inter-only typography in all buyer pages, not admin. */
html body,
html body :is(a,button,input,select,textarea,summary,details,span,label,small,p,li,div,strong,b,em,section,article) {
  font-family:var(--buyer-font-ui)!important;
}
html body :is(h1,h2,h3,h4,.brand,.buyerBrand,.buyerBrand span,.buyerBrand b,.buyerBrand strong,.btn,.orderBtn,.view,.start),
html body #modal .sheet :is(h1,h2,h3,.checkoutHead h2) {
  font-family:var(--buyer-font-display)!important;
  letter-spacing:-.025em;
}
html body :is(h1,h2,h3) {font-weight:750!important;text-wrap:balance;}
html body :is(p,label,small,span,input,textarea) {font-kerning:normal;}
html body :is(button,input,textarea,select) {font-size-adjust:from-font;}

/* Light/dark readable values: scope strictly to buyer surface components. */
#modal.open .sheet {color:var(--buyer-text-primary)!important;}
#modal.open .sheet .checkoutHead,
#modal.open .sheet .checkoutHead :is(h2,p,small),
#modal.open .sheet .checkoutSteps,
#modal.open .sheet .checkoutSteps span,
#modal.open .sheet .reviewBox,
#modal.open .sheet .reviewBox :is(div,span,b,strong,label,small),
#modal.open .sheet .qtyControl,
#modal.open .sheet .qtyControl :is(b,small),
#modal.open .sheet .promoBox,
#modal.open .sheet .promoBox>span,
#modal.open .sheet .reviewBox :is(#reviewTotal,#qtyValue),
#modal.open .sheet .checkoutTotal :is(strong,small),
#modal.open .sheet .checkoutOrder :is(span,b),
#modal.open .sheet .paymentChooser,
#modal.open .sheet .paymentChooser :is(strong,p,b,span),
#modal.open .sheet .paymentChoice :is(b,span),
#modal.open .sheet .paidCheck span,
#modal.open .sheet .checkoutHint,
#modal.open .sheet .planHelp,
#modal.open .sheet .planHelp :is(span,a),
#modal.open .sheet .productNotice :is(b,span),
#modal.open .sheet #promoResult {color:var(--buyer-text-primary)!important;text-shadow:none!important;-webkit-text-fill-color:currentColor!important;}
#modal.open .sheet .reviewBox:not(.promoBox)>div,
#modal.open .sheet .promoBox,
#modal.open .sheet .checkoutTotal,
#modal.open .sheet .paymentChooser,
#modal.open .sheet .paymentChoice,
#modal.open .sheet .qtyControl {
  background:var(--buyer-surface-alt)!important;
  border:1.25px solid var(--buyer-border)!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
#modal.open .sheet .reviewBox:not(.promoBox) {display:grid!important;gap:10px!important;margin:16px 0!important;}
#modal.open .sheet .reviewBox:not(.promoBox)>div {gap:12px!important;padding:13px 14px!important;align-items:center!important;min-width:0!important;}
#modal.open .sheet .reviewBox:not(.promoBox)>div>span,
#modal.open .sheet .buyerBox label,
#modal.open .sheet .checkoutOrder span,
#modal.open .sheet .checkoutHead p,
#modal.open .sheet .checkoutHint {color:var(--buyer-text-secondary)!important;opacity:1!important;}
#modal.open .sheet .reviewBox:not(.promoBox)>div>b {color:var(--buyer-text-primary)!important;opacity:1!important;max-width:67%!important;overflow-wrap:anywhere!important;}
#modal.open .sheet #reviewTotal,
#modal.open .sheet .checkoutTotal strong {font-weight:850!important;color:var(--buyer-text-primary)!important;}
#modal.open .sheet .checkoutSteps span{
  background:var(--buyer-surface)!important;
  border:1px solid var(--buyer-border)!important;
  color:var(--buyer-text-secondary)!important;
  opacity:1!important;
}
#modal.open .sheet .checkoutSteps .active{
  background:var(--buyer-surface-alt)!important;
  border-color:color-mix(in srgb,var(--theme-main) 62%,var(--buyer-border))!important;
  color:var(--buyer-text-primary)!important;
  font-weight:800!important;
}
#modal.open .sheet input:not([type=checkbox]),
#modal.open .sheet textarea,
#modal.open .sheet select {
  color:var(--buyer-text-primary)!important;
  background:var(--buyer-surface-alt)!important;
  border:1.5px solid var(--buyer-border)!important;
  -webkit-text-fill-color:var(--buyer-text-primary)!important;
  caret-color:var(--buyer-text-primary)!important;
  opacity:1!important;
}
#modal.open .sheet :is(input,textarea)::placeholder {
  color:var(--buyer-text-secondary)!important;
  opacity:1!important;
  -webkit-text-fill-color:var(--buyer-text-secondary)!important;
}
#modal.open .sheet .promoRow{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;min-width:0!important;}
#modal.open .sheet .promoRow input{min-width:0!important;width:100%!important;}
#modal.open .sheet #applyPromoBtn,
#modal.open .sheet .qtyControl button,
#modal.open .sheet .checkoutTotal button,
#modal.open .sheet .checkoutOrder button,
#modal.open .sheet .qrisActions button {
  color:var(--buyer-text-primary)!important;
  -webkit-text-fill-color:var(--buyer-text-primary)!important;
  border:1px solid var(--buyer-border)!important;
}
#modal.open .sheet .backPlan{
  color:var(--buyer-text-primary)!important;
  -webkit-text-fill-color:var(--buyer-text-primary)!important;
  background:var(--buyer-surface-alt)!important;
  border:1px solid var(--buyer-border)!important;
  box-shadow:none!important;
}
#modal.open .sheet :is(button,a):focus-visible{outline:3px solid var(--theme-main)!important;outline-offset:3px;}
#modal.open .sheet .orderBtn{color:#302337!important;-webkit-text-fill-color:#302337!important;}
#modal.open .sheet .paymentChoice>span{font-size:12px!important;}
#modal.open .sheet .qtyControl :is(b,small){white-space:nowrap;color:var(--buyer-text-primary)!important;}
#modal.open .sheet .reviewBox :is(b,strong),
#modal.open .sheet .qtyControl b,
#modal.open .sheet .checkoutTotal strong{opacity:1!important;}

/* Non-checkout buyer cards: only text on light/dark surfaces. */
html body #catalog .product-card :is(h3,.start,.productPriceBlock),
html body .trustPremium .trustCards>div,
html body #cara-order .orderSteps :is(span,strong),
html body #faq :is(summary,p),
html body .centerAction :is(b,small),
html body .v18-review-card :is(strong,p,small),
html body .v18-review-empty :is(strong,p) {color:var(--buyer-text-primary)!important;opacity:1!important;}
html body #catalog .product-card :is(.productSubtitle,.productPriceBlock small),
html body .centerAction small,
html body .v18-review-card small {color:var(--buyer-text-secondary)!important;}

/* Portal + success share typography and token-aware readability. */
html body.portal-ui .top .back,
html body.portal-ui .brand,
html body.portal-ui .brand span,
html body.portal-ui .hero :is(h1,p),
html body.portal-ui .hero .muted {color:var(--buyer-text-primary)!important;-webkit-text-fill-color:var(--buyer-text-primary)!important;opacity:1!important;}
html body.portal-ui .top .back {background:var(--buyer-surface)!important;border:1px solid var(--buyer-border)!important;}
html body.success-ui .box :is(h1,p,strong,span,.label,.value,.note),
html body.success-ui :is(.detail,.nextBox,.deliveryBox,.deliveryWait) {color:var(--buyer-text-primary)!important;opacity:1!important;}
html body.success-ui .detailRow .label,
html body.success-ui .box>.note {color:var(--buyer-text-secondary)!important;}
html body.success-ui .box #successTitle{background:none!important;color:var(--buyer-text-primary)!important;-webkit-text-fill-color:var(--buyer-text-primary)!important;}
html body.success-ui .btn{color:var(--buyer-text-primary)!important;-webkit-text-fill-color:var(--buyer-text-primary)!important;}



/* V18.8 — restore cleaner old-style buyer form block inside checkout */
#modal.open .sheet .buyerSection{
  margin:16px 0 14px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#modal.open .sheet .buyerSectionHead{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0 0 10px!important;
  padding:0 2px!important;
  color:var(--buyer-text-primary)!important;
}
#modal.open .sheet .buyerSectionHead span{font-size:22px!important;line-height:1!important}
#modal.open .sheet .buyerSectionHead strong{
  font-size:18px!important;
  font-weight:800!important;
  color:var(--buyer-text-primary)!important;
}
#modal.open .sheet .buyerFields{
  display:grid!important;
  gap:12px!important;
}
#modal.open .sheet .buyerField{
  display:grid!important;
  gap:7px!important;
  padding:0!important;
  min-width:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#modal.open .sheet .buyerField label{
  margin:0!important;
  padding:0 2px!important;
  font-size:13px!important;
  font-weight:700!important;
  color:var(--buyer-text-secondary)!important;
}
#modal.open .sheet .buyerInput{
  width:100%!important;
  min-width:0!important;
  height:56px!important;
  padding:0 18px!important;
  border-radius:18px!important;
  background:var(--buyer-surface-alt)!important;
  border:1.5px solid var(--buyer-border)!important;
  color:var(--buyer-text-primary)!important;
  -webkit-text-fill-color:var(--buyer-text-primary)!important;
  box-shadow:none!important;
}
#modal.open .sheet .buyerInput:focus{
  border-color:color-mix(in srgb,var(--theme-main) 62%,var(--buyer-border))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-light) 20%,transparent)!important;
}
#modal.open .sheet .buyerInput::placeholder{
  color:var(--buyer-text-secondary)!important;
  -webkit-text-fill-color:var(--buyer-text-secondary)!important;
  opacity:1!important;
}
#modal.open .sheet .promoBox{margin-top:4px!important;}
#modal.open .sheet #promoResult{
  margin:8px 0 0!important;
  font-size:14px!important;
  font-weight:700!important;
}
@media(max-width:550px){
  #modal.open .sheet .buyerSectionHead strong{font-size:17px!important;}
  #modal.open .sheet .buyerInput{height:54px!important;padding:0 16px!important;}
}

/* Review component: same family as catalog, never white-on-white. */
.buyer-review-panel{
  margin:18px 0 16px!important;padding:20px 18px!important;
  border-radius:24px!important;background:var(--buyer-surface)!important;
  border:1.5px solid var(--buyer-border)!important;box-shadow:0 8px 22px #32273e13!important;
  color:var(--buyer-text-primary)!important;
}
.buyer-review-panel[hidden], .buyer-review-panel [hidden]{display:none!important;}
.buyer-review-panel h2{font-size:21px!important;line-height:1.2!important;margin:5px 0 8px!important;color:var(--buyer-text-primary)!important;}
.buyer-review-panel p{color:var(--buyer-text-secondary)!important;line-height:1.5!important;margin:4px 0 12px!important;font-size:14px!important;}
.buyer-review-panel .buyer-review-stars{display:flex;gap:8px;margin:10px 0 14px;align-items:center;justify-content:center;}
.buyer-review-panel .buyer-review-stars button{background:transparent!important;border:0!important;box-shadow:none!important;font-size:30px!important;line-height:1.2;min-height:44px;min-width:44px;cursor:pointer;color:#C1ADB8!important;padding:2px!important;}
.buyer-review-panel .buyer-review-stars button[aria-pressed="true"]{color:#D39B32!important;}
.buyer-review-panel label{display:block;font-size:13px!important;font-weight:750!important;margin:12px 0 6px!important;color:var(--buyer-text-primary)!important;}
.buyer-review-panel input,.buyer-review-panel textarea{width:100%!important;min-width:0!important;padding:12px 13px!important;border:1.5px solid var(--buyer-border)!important;border-radius:13px!important;background:var(--buyer-surface-alt)!important;color:var(--buyer-text-primary)!important;-webkit-text-fill-color:var(--buyer-text-primary)!important;resize:vertical;}
.buyer-review-panel :is(input,textarea)::placeholder{color:var(--buyer-text-secondary)!important;-webkit-text-fill-color:var(--buyer-text-secondary)!important;opacity:1!important;}
.buyer-review-panel .buyer-review-submit{width:100%;border:1px solid var(--buyer-border);border-radius:15px;padding:13px 16px;margin-top:14px;background:linear-gradient(135deg,var(--theme-light),var(--theme-main))!important;color:#302337!important;font-weight:800!important;min-height:48px;}
.buyer-review-panel .buyer-review-submit:disabled{filter:grayscale(.4);opacity:.6;cursor:not-allowed}
.buyer-review-panel .buyer-review-status{font-size:13px!important;margin:10px 0 0!important;color:var(--buyer-text-primary)!important;white-space:pre-line;}
.buyer-review-panel .buyer-review-message{padding:11px 12px;border-radius:12px;background:var(--buyer-surface-alt)!important;border:1px solid var(--buyer-border);}

@media(max-width:550px){
 #modal.open .sheet .reviewBox:not(.promoBox)>div{padding:13px 11px!important;gap:10px!important;}
 #modal.open .sheet .reviewBox:not(.promoBox)>div>b{font-size:14px!important;max-width:62%!important;}
 #modal.open .sheet .qtyControl{max-width:100%!important;flex-wrap:wrap!important;gap:6px!important;padding:8px 9px!important;}
 #modal.open .sheet .checkoutSteps{gap:5px!important;flex-wrap:wrap!important;margin:10px 0 16px!important;}
 #modal.open .sheet .checkoutSteps span{padding:6px 8px!important;font-size:11px!important;}
 #modal.open .sheet .promoRow{gap:7px!important;}
 #modal.open .sheet #applyPromoBtn{padding:11px 12px!important;white-space:nowrap!important;}
 .buyer-review-panel{padding:17px 14px!important;}
}
@media(prefers-reduced-motion:reduce){.buyer-review-panel button{transition:none!important;}}

/* Existing homepage review dialog also adapts to the selected preset. */
html body .v18-review-dialog {
  background:var(--buyer-surface)!important;
  color:var(--buyer-text-primary)!important;
  border:1.5px solid var(--buyer-border)!important;
  max-height:calc(100dvh - 30px)!important;
  overflow-y:auto!important;
}
html body .v18-review-dialog :is(h3,p,label,.v18-review-status) {
  color:var(--buyer-text-primary)!important;
  -webkit-text-fill-color:var(--buyer-text-primary)!important;
}
html body .v18-review-dialog :is(input,select,textarea) {
  background:var(--buyer-surface-alt)!important;
  border-color:var(--buyer-border)!important;
  color:var(--buyer-text-primary)!important;
  -webkit-text-fill-color:var(--buyer-text-primary)!important;
}
html body .v18-review-dialog :is(input,textarea)::placeholder {
  color:var(--buyer-text-secondary)!important;
  -webkit-text-fill-color:var(--buyer-text-secondary)!important;
  opacity:1!important;
}
html body .v18-review-dialog .v18-close { color:var(--buyer-text-primary)!important; }
html body .v18-review-dialog .v18-review-submit { color:#302337!important; }


/* V18.10 HOTFIX — theme-safe checkout contrast + portal readability */
#modal.open .sheet{color:var(--buyer-text-primary)!important;}
#modal.open .sheet .checkoutHead :is(small,h2,p),
#modal.open .sheet .reviewBox :is(span,b,small,div),
#modal.open .sheet .promoBox,
#modal.open .sheet .promoRow,
#modal.open .sheet .buyerSectionHead :is(span,strong),
#modal.open .sheet .buyerField label,
#modal.open .sheet .qtyControl :is(b,small),
#modal.open .sheet .checkoutOrder :is(span,b),
#modal.open .sheet .backPlan,
#modal.open .sheet #applyPromoBtn{color:var(--buyer-text-primary)!important;-webkit-text-fill-color:var(--buyer-text-primary)!important;opacity:1!important;}
#modal.open .sheet .reviewBox div{background:var(--buyer-surface-alt)!important;border:1.5px solid var(--buyer-border)!important;}
#modal.open .sheet .promoBox{display:block!important;padding:10px 12px!important;}
#modal.open .sheet .promoRow{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;min-width:0!important;}
#modal.open .sheet .promoRow input{min-width:0!important;width:100%!important;height:44px!important;padding:0 14px!important;border-radius:999px!important;background:var(--buyer-surface)!important;border:1.5px solid var(--buyer-border)!important;color:var(--buyer-text-primary)!important;-webkit-text-fill-color:var(--buyer-text-primary)!important;}
#modal.open .sheet .promoRow input::placeholder{color:var(--buyer-text-secondary)!important;-webkit-text-fill-color:var(--buyer-text-secondary)!important;opacity:1!important;}
#modal.open .sheet #applyPromoBtn{min-height:44px!important;padding:0 18px!important;border-radius:999px!important;background:linear-gradient(160deg,#fff4fb 0%,color-mix(in srgb,var(--theme-light) 65%,white) 34%,color-mix(in srgb,var(--theme-main) 92%,#f887bc) 68%,color-mix(in srgb,var(--theme-main) 85%,#bb5f95) 100%)!important;border:1.5px solid color-mix(in srgb,var(--theme-main) 36%,var(--buyer-border))!important;color:#32243d!important;-webkit-text-fill-color:#32243d!important;font-weight:800!important;}
#modal.open .sheet .backPlan{background:var(--buyer-surface-alt)!important;color:var(--buyer-text-primary)!important;-webkit-text-fill-color:var(--buyer-text-primary)!important;}
#modal.open .sheet .orderBtn{color:#302337!important;-webkit-text-fill-color:#302337!important;}
@media(max-width:550px){#modal.open .sheet .promoBox{padding:8px 10px!important;}#modal.open .sheet .promoRow{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;}#modal.open .sheet .promoRow input{height:42px!important;padding:0 12px!important;}#modal.open .sheet #applyPromoBtn{min-height:42px!important;padding:0 16px!important;}}
html body.portal-ui .hero, html body.portal-ui .card, html body.portal-ui .order, html body.portal-ui .warranty, html body.portal-ui .deliveryBox, html body.portal-ui .deliveryUnit, html body.portal-ui .meta div, html body.portal-ui .warrantyJump{color:#f7eefb!important;}
html body.portal-ui .hero :is(h1,p,.muted), html body.portal-ui .card :is(h2,h3,p,b,span,small), html body.portal-ui .order :is(b,span,small), html body.portal-ui .warranty :is(b,span,small), html body.portal-ui .deliveryBox :is(b,span,small,code), html body.portal-ui .meta :is(b,small), html body.portal-ui .statusMsg{color:#f7eefb!important;-webkit-text-fill-color:#f7eefb!important;opacity:1!important;}
html body.portal-ui .hero .muted, html body.portal-ui .card .muted, html body.portal-ui .order .muted, html body.portal-ui .warrantyJump small, html body.portal-ui .claimReason, html body.portal-ui .meta small, html body.portal-ui .deliveryField small{color:#d7c8e1!important;-webkit-text-fill-color:#d7c8e1!important;}
html body.portal-ui .hero h1{font-weight:820!important;}
html body.portal-ui .quickBtn{background:rgba(255,255,255,.12)!important;border:1px solid rgba(236,203,255,.22)!important;color:#fff7ff!important;-webkit-text-fill-color:#fff7ff!important;}
html body.portal-ui .quickBtn.active{background:rgba(255,255,255,.18)!important;border-color:rgba(255,217,255,.48)!important;box-shadow:0 0 0 2px rgba(255,209,251,.16)!important;}
html body.portal-ui .input, html body.portal-ui .select, html body.portal-ui .textarea{background:rgba(12,7,18,.78)!important;color:#f8f0fc!important;-webkit-text-fill-color:#f8f0fc!important;border:1px solid rgba(225,193,244,.24)!important;}
html body.portal-ui .input::placeholder, html body.portal-ui .textarea::placeholder{color:#cab8d8!important;-webkit-text-fill-color:#cab8d8!important;opacity:1!important;}
html body.portal-ui .btn.ghost{background:rgba(255,255,255,.10)!important;color:#fff4fc!important;-webkit-text-fill-color:#fff4fc!important;border:1px solid rgba(236,203,255,.24)!important;}
html body.portal-ui .btn:not(.ghost){color:#302337!important;-webkit-text-fill-color:#302337!important;}
