/* Product pages, mobile only. No desktop declarations or JavaScript. */
@media (max-width:767px) {
  body#product #main .product-description-short,
  body#product #main #description > .product-description {
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior-y:auto;
    touch-action:auto;
    /* Native scrolling; no legacy WebKit momentum override. */
    scrollbar-width:thin;
    scrollbar-color:#aabac4 transparent;
    background:
      linear-gradient(#fff 30%,rgba(255,255,255,0)) center top,
      linear-gradient(rgba(255,255,255,0),#fff 70%) center bottom,
      radial-gradient(farthest-side at 50% 0,rgba(36,95,118,.17),transparent) center top,
      radial-gradient(farthest-side at 50% 100%,rgba(36,95,118,.17),transparent) center bottom;
    background-repeat:no-repeat;
    background-size:100% 24px,100% 24px,100% 8px,100% 8px;
    background-attachment:local,local,scroll,scroll;
  }
  /* Do not leave an additional hidden-overflow scroll container around the active description. */
  body#product #main .tab-content > #description.active { overflow:visible; }
  body#product #main .product-description-short { max-height:300px; }
  body#product #main #description > .product-description { max-height:450px; }
}

/* Only loaded on full product pages. Desktop remains unchanged. */
#glam-sticky-buy, #glam-sticky-buy-space { display:none; }
@media (max-width:767px) {
  #glam-sticky-buy:not([hidden]) {
    position:fixed;
    inset:auto 0 0;
    z-index:1030;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background:rgba(255,255,255,.98);
    border-top:1px solid #dce3e8;
    box-shadow:0 -3px 12px rgba(35,55,65,.07);
  }
  #glam-sticky-buy-space { display:block; height:calc(80px + env(safe-area-inset-bottom, 0px)); }
  body:has(#glam-sticky-buy:not([hidden])) .js-btn-to-top { bottom:calc(86px + env(safe-area-inset-bottom, 0px)); }
  #glam-sticky-buy .glam-sticky-buy__info { min-width:0; flex:1; }
  #glam-sticky-buy .glam-sticky-buy__price { display:block; color:#23485d; font:500 20px/1.2 'Glam Inter Tight',sans-serif; white-space:nowrap; }
  #glam-sticky-buy .glam-sticky-buy__notice { display:block; margin-top:3px; color:#475f6b; font-size:11px; line-height:1.2; text-decoration:underline; }
  #glam-sticky-buy .glam-sticky-buy__notice[hidden] { display:none; }
  #glam-sticky-buy .glam-sticky-buy__button {
    position:static; transform:none; margin:0; flex:0 0 auto;
    display:flex; justify-content:center; align-items:center;
    min-height:42px; padding:8px 13px; border:1px solid #52788d; border-radius:5px;
    background:#52788d; color:#fff; font:500 14px/1.2 'Glam Inter Tight',sans-serif;
    text-transform:none; white-space:nowrap; cursor:pointer;
  }
  #glam-sticky-buy .glam-sticky-buy__button:disabled { background:#edf0f2; border-color:#d4dce1; color:#63737e; cursor:default; }
  #glam-sticky-buy .glam-sticky-buy__button:focus-visible, #glam-sticky-buy a:focus-visible { outline:2px solid #23485d; outline-offset:3px; }
}
