/* BOY STORE ID V18.11 — Final UI regression hotfix.
   Loaded LAST. Presentation-only; no payment/order/backend modifications. */

/* Hero: a legacy glass preset applied backdrop blur to heroContent, which sat ABOVE
   the mascot and made it visibly blurry. Remove the obstruction, not image quality. */
html .hero.mockupHero .heroContent,
html[data-hero-style="glass"] .hero.mockupHero .heroContent {
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
}
html .hero.mockupHero .v18-hero-mascot {
  opacity:1!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  -webkit-filter:none!important;
  filter:none!important;
  clip-path:none!important;
  image-rendering:auto!important;
}
/* Mobile: put art in its own row, instead of under headline and blurred glass. */
@media(max-width:760px){
  html .hero.mockupHero {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    padding:22px 19px 20px!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html .hero.mockupHero .heroContent {
    order:0!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
    align-self:stretch!important;
    position:relative!important;
    z-index:2!important;
  }
  html .hero.mockupHero .heroContent h1 {
    font-size:clamp(28px,7.4vw,36px)!important;
    line-height:1.13!important;
    letter-spacing:-.035em!important;
    margin:13px 0 12px!important;
    max-width:100%!important;
    width:100%!important;
    text-wrap:balance!important;
  }
  html .hero.mockupHero .heroContent p {
    max-width:100%!important;
    width:100%!important;
    font-size:14px!important;
    line-height:1.56!important;
    margin:0 0 13px!important;
  }
  html .hero.mockupHero .heroBtns {margin:13px 0 0!important;}
  html .hero.mockupHero .v18-hero-art {
    order:1!important;
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    align-self:center!important;
    justify-content:center!important;
    width:min(62%,218px)!important;
    max-width:218px!important;
    height:auto!important;
    max-height:none!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    overflow:visible!important;
    z-index:1!important;
  }
  html .hero.mockupHero .v18-hero-mascot {
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    transform:none!important;
  }
  html .hero.mockupHero #promoBanner {order:2!important;width:100%!important;margin:2px 0 0!important;}
  html .hero.mockupHero #storeAnnouncement {order:3!important;width:100%!important;}
  html .hero.mockupHero .heroFloating {display:none!important;}
}

/* Customer Portal uses a dark panel across all theme presets. Unlike the surrounding
   page's --ui-ink (dark on light), content on this panel must always be light. */
html body.portal-ui .hero {
  background:linear-gradient(145deg,#211628 0%,#160d1e 78%)!important;
  border:1.5px solid color-mix(in srgb,var(--theme-main) 34%,#5e476b)!important;
  color:#fdf7ff!important;
}
html body.portal-ui .hero :is(h1,p,.muted,small,div:not(.quickMenu):not(.login):not(.statusMsg)) {
  color:#fdf7ff!important;
  -webkit-text-fill-color:#fdf7ff!important;
  opacity:1!important;
  text-shadow:none!important;
}
html body.portal-ui .hero :is(p,.muted) {
  color:#e4d6e7!important;
  -webkit-text-fill-color:#e4d6e7!important;
}
html body.portal-ui .hero .quickBtn {
  background:#35233e!important;
  border:1.5px solid #755777!important;
  color:#fff8ff!important;
  -webkit-text-fill-color:#fff8ff!important;
  text-shadow:none!important;
}
html body.portal-ui .hero .quickBtn.active {
  background:color-mix(in srgb,var(--theme-main) 42%,#302037)!important;
  border-color:#e6badb!important;
  color:#fffaff!important;
  -webkit-text-fill-color:#fffaff!important;
}
html body.portal-ui .hero :is(#orderCode,#phone) {
  background:#1b1122!important;
  border:1px solid #80617c!important;
  color:#fdf5ff!important;
  -webkit-text-fill-color:#fdf5ff!important;
  caret-color:#fdf5ff!important;
}
html body.portal-ui .hero :is(#orderCode,#phone)::placeholder {
  color:#d7c5d9!important;
  -webkit-text-fill-color:#d7c5d9!important;
  opacity:1!important;
}
html body.portal-ui .hero #loginMsg.bad,
html body.portal-ui .hero #loginMsg.statusMsg.bad{color:#ffb6bf!important;-webkit-text-fill-color:#ffb6bf!important}
html body.portal-ui .hero #loginMsg.ok,
html body.portal-ui .hero #loginMsg.statusMsg.ok{color:#a7f3c2!important;-webkit-text-fill-color:#a7f3c2!important}
/* Keep brand and back button outside dark portal hero using preset's surface tokens. */
html body.portal-ui .top .brand,
html body.portal-ui .top .brand span,
html body.portal-ui .top .back {
  color:var(--ui-ink)!important;
  -webkit-text-fill-color:var(--ui-ink)!important;
  text-shadow:none!important;
}

/* Voucher: optional secondary action, no nested card or disproportionate heading. */
html #modal.open .sheet .reviewBox.promoBox {
  display:block!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:12px 0 8px!important;
}
html #modal.open .sheet .reviewBox.promoBox .promoRow {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:center!important;
  min-width:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  border-radius:0!important;
}
html #modal.open .sheet .reviewBox.promoBox #promoCode {
  min-width:0!important;
  width:100%!important;
  height:44px!important;
  font-size:14px!important;
  border-radius:14px!important;
  padding:0 14px!important;
  color:var(--buyer-text-primary)!important;
  -webkit-text-fill-color:var(--buyer-text-primary)!important;
  background:var(--buyer-surface-alt)!important;
  border:1.5px solid var(--buyer-border)!important;
}
html #modal.open .sheet .reviewBox.promoBox #promoCode::placeholder {
  color:var(--buyer-text-secondary)!important;
  -webkit-text-fill-color:var(--buyer-text-secondary)!important;
  opacity:1!important;
}
html #modal.open .sheet .reviewBox.promoBox #applyPromoBtn {
  min-height:44px!important;
  white-space:nowrap!important;
  padding:0 16px!important;
  border-radius:14px!important;
  font-size:14px!important;
  color:#31233c!important;
  -webkit-text-fill-color:#31233c!important;
  background:color-mix(in srgb,var(--theme-light) 64%,#ffebf3)!important;
  border:1.5px solid color-mix(in srgb,var(--theme-main) 38%,var(--buyer-border))!important;
  box-shadow:0 3px 0 color-mix(in srgb,var(--theme-deep) 28%,#b885a4)!important;
}
@media(max-width:355px){
 html #modal.open .sheet .reviewBox.promoBox .promoRow{gap:7px!important}
 html #modal.open .sheet .reviewBox.promoBox #applyPromoBtn{padding-inline:10px!important;font-size:13px!important}
 html #modal.open .sheet .reviewBox.promoBox #promoCode{padding-inline:10px!important;font-size:13px!important}
}
/* The portal back button sits on the LIGHT outer page, not the dark hero.
   --buyer-surface is a dark glass token, so use the semantic page surface. */
html body.portal-ui .top .back {
  background:var(--ui-surface,#fffbff)!important;
  color:var(--ui-ink,#30283f)!important;
  -webkit-text-fill-color:var(--ui-ink,#30283f)!important;
  border:1.5px solid var(--ui-stroke,#dcc5d7)!important;
  box-shadow:0 4px 12px #2e17330d!important;
}
/* Present the existing mascot image as a clean contained illustration card. */
@media(max-width:760px){
  html .hero.mockupHero .v18-hero-mascot{
    border-radius:22px!important;
    box-shadow:0 8px 20px rgba(102,49,88,.14)!important;
  }
}
