/* M785 (2026-11-20): iPhone first screen (photo + name + price + buy on screen one), slim consent strip,
   compact Quick-checkout bar, one-line promo, Black Friday short hero, no gold/yellow lettering.
   Mobile rules are scoped to max-width 767.98px; desktop changes are colour-only (gold -> allowed brand colours). */

/* ---- sitewide colour: no yellow/gold/amber lettering or yellow pill ---- */
.ma-promo a,.ma-promo strong{color:#fff!important}
.ma-promo .ma-xmas{background:#9E1B32!important;color:#fff!important}
.mabf-hero h1 em{color:#fff!important;text-decoration:underline;text-decoration-color:#FF3D7F;text-decoration-thickness:4px;text-underline-offset:6px}
.mabf-hero-facts li:before{color:#fbf5e9!important}

/* compact free-shipping bar under the price: phones only */
.ma-fsbar--mini{display:none!important}

@media (max-width:767.98px){
  /* ---- header: one line promo + compact logo row (sticky header 135px -> ~76px) ---- */
  .ma-promo{position:relative;height:24px;padding:0 .5rem!important;font-size:12px!important;line-height:24px!important;overflow:hidden;white-space:nowrap}
  .ma-promo .ma-promo__holiday{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ma-promo .ma-xmas{display:none!important}
  .ma-promo:has(.ma-xmas:not([hidden])) .ma-promo__holiday{animation:ma785a 10s infinite}
  .ma-promo:has(.ma-xmas:not([hidden])) .ma-xmas{display:block!important;position:absolute;left:0;right:0;top:0;margin:0!important;max-width:none!important;border-radius:0!important;background:transparent!important;font-size:12px!important;line-height:24px;padding:0 .5rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;animation:ma785b 10s infinite}
  @keyframes ma785a{0%,45%{opacity:1}50%,95%{opacity:0}100%{opacity:1}}
  @keyframes ma785b{0%,45%{opacity:0}50%,95%{opacity:1}100%{opacity:0}}
  @media (prefers-reduced-motion:reduce){.ma-promo .ma-promo__holiday,.ma-promo .ma-xmas{animation:none!important}.ma-promo .ma-xmas{display:none!important}}
  .header-bottom{padding:0!important}
  .header-bottom__container{padding-top:4px!important;padding-bottom:4px!important}
  .header-bottom .logo{max-height:26px;width:auto}

  /* ---- product page: name + price straight under the photo ---- */
  body#product .breadcrumb__wrapper{display:none}
  body#product .columns-container{margin-top:6px!important;padding-top:0!important}
  body#product .product__container{display:flex;flex-direction:column}
  body#product .product__left,body#product .product__images{display:contents}
  body#product .product__carousel{order:1;margin-bottom:0}
  body#product .product__right{order:2;padding-top:0;margin-top:0}
  body#product .product__thumbnails{order:3;margin-top:16px}
  body#product .product__carousel .carousel-item img{max-height:min(366px,48vh);width:auto!important;margin:0 auto;display:block}
  body#product h1.product__name{font-size:21px!important;line-height:1.15!important;margin:8px 0 2px!important}
  body#product .product__prices{margin:0 0 4px!important}
  body#product .product__prices-block{margin:0!important}
  body#product .product__price,body#product .product__current-price{font-size:22px!important;line-height:1.2}
  body#product .ma-price-deal{font-size:12.5px!important;line-height:1.3!important;margin:2px 0 6px!important}
  body#product .product__right .ma-fsbar--mini{display:block!important;min-height:46px!important;margin:4px 0 8px!important}
  body#product .product__right .ma-fsbar--mini[data-ma-fsbar=gone]{display:none!important}
  .quickview .ma-fsbar--mini,.modal .ma-fsbar--mini{display:none!important}
  .ma-fsbar--mini .ma-fsbar__box{padding:6px 10px 5px!important}
  .ma-fsbar--mini .ma-fsbar__msg{font-size:13px!important;margin:0 0 4px!important}
  .ma-fsbar--mini .ma-fsbar__track{height:7px!important}
  .ma-fsbar--mini .ma-fsbar__truck{font-size:14px!important}
  .ma-fsbar--mini .ma-fsbar__goal{font-size:12px!important}
  .ma-fsbar--mini .ma-fsbar__why,.ma-fsbar--mini .ma-fsbar__nudge{display:none!important}

  /* ---- compact Quick-checkout bar: price + button on one row (110px -> ~62px) ---- */
  #maqc-app .maqc-sticky:not([hidden]){display:flex!important;align-items:center;gap:12px;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))!important}
  #maqc-app .maqc-sticky-row{margin:0!important;flex:0 0 auto;flex-direction:column;gap:0;font-size:12px}
  #maqc-app .maqc-sticky-name{display:none}
  #maqc-app .maqc-sticky-price{font-size:18px;color:#1b1b1b;line-height:1.1}
  #maqc-app .maqc-sticky .maqc-btn-quick{flex:1 1 auto;margin:0!important;min-height:44px;padding-top:8px!important;padding-bottom:8px!important}

  /* ---- slim consent strip stacked directly above the Quick-checkout bar (83px card -> ~50px strip) ---- */
  .ma-cc{left:0!important;right:0!important;bottom:0}
  body:has(#maqc-app .maqc-sticky:not([hidden])) #ma-cc:not([hidden]){bottom:var(--ma-qc-sticky-height,62px)!important}
  .ma-cc__box{border-radius:0!important;padding:6px 10px 6px!important;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;box-shadow:0 -2px 10px rgb(0 0 0 / .12)!important}
  .ma-cc__text{flex:1 1 100%;margin:0!important;font-size:11px!important;line-height:1.3!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .ma-cc__prefs:not([hidden]){flex-basis:100%;margin:0!important;font-size:12px!important;gap:10px!important}
  .ma-cc__btns{flex:1 1 100%;gap:6px!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
  .ma-cc__btn{padding:3px 12px!important;font-size:11.5px!important;line-height:1.4!important;border-width:1px!important;white-space:nowrap;border-radius:999px!important;min-height:0!important;width:auto!important;height:auto!important}
  .ma-cc__link{font-size:11.5px!important;margin:0 auto 0 0!important}
  body#product:has(#ma-cc:not([hidden])) .mahub-fab{display:none!important}

  /* ---- Black Friday: short hero so the first products are on screen one ---- */
  body#module-mablackfriday-page .breadcrumb__wrapper{display:none}
  body#module-mablackfriday-page .columns-container{margin-top:6px!important;padding-top:0!important}
  .mabf-hero{margin-top:4px!important;border-radius:10px}
  .mabf-hero-copy{padding:14px 16px 12px!important}
  .mabf-hero .mabf-eyebrow{margin:0 0 4px!important;font-size:10px}
  .mabf-hero h1{font-size:34px!important;line-height:1!important}
  .mabf-hero h1 br{display:none}
  .mabf-lede{font-size:13px!important;line-height:1.35!important;margin:6px 0!important}
  .mabf-count{margin:6px 0 0!important;display:flex;align-items:center;gap:8px}
  .mabf-count-label{margin:0!important;font-size:9.5px!important;flex:0 0 80px;line-height:1.2}
  .mabf-count-row{gap:4px!important;flex:1}
  .mabf-count-row span{padding:3px 2px!important}
  .mabf-count-row b{font-size:18px!important}
  .mabf-count-row small{font-size:8px!important;margin-top:1px!important}
  .mabf-hero .mabf-button{display:none}
  .mabf-hero-facts{display:none!important}
  .mabf-hero-art{display:none!important}
  .mabf-perks{display:none!important}
  .mabf-heading:first-of-type,#mabf-tees{margin:12px 0 10px!important}
  #mabf-tees h2{font-size:22px!important}
  #mabf-tees h2:after{display:none}
  #mabf-tees .mabf-eyebrow{margin:0 0 2px!important}
}
