/* ==========================================================================
   3D GLOSS BUTTON FINISH
   One extruded, specular finish for EVERY call-to-action. Colour and gradient
   always come from the active theme / Button Studio; this layer only adds the
   top light, the extruded edge and the ambient glow. All three are driven by
   Component Studio tokens (component_3d_depth / _glow / _sheen), so the admin
   can tune the whole site from one place.

   Loaded AFTER glass.css and the generated design tokens so it wins the
   cascade. No layout, no display, no colour invention — purely surface.
   ========================================================================== */
:root{
  --btn3d-depth: var(--pl-3d-depth, 5px);
  --btn3d-glow: var(--pl-3d-glow, .42);
  --btn3d-sheen: var(--pl-3d-sheen, .62);
}

html body .btn,
html body .buy-button,
html body .secondary-button,
html body .view-link,
html body .wb-seeall,
html body .wbp-add,
html body .wb-action-btn,
html body .cta-big,
html body .party-cta,
html body .coupon-apply,
html body .chat-send,
html body .auth-cta,
html body .bill-cta,
html body .restock-btn,
html body .rev-submit,
html body .rev-cta,
html body .acct-viewall,
html body .success-ctas a,
html body .wa-cta,
html body .lbk-btn-gold,
html body .lbk-kit-cta,
html body .ref-btn,
html body .fdrop-btn,
html body .nl button,
html body .search-form button,
html body .ob-name{
  position:relative;
  /* One shadow definition, emitted by the design engine from Component Studio.
     The fallback keeps the finish if the plate is ever absent. */
  box-shadow:var(--pl-btn-glow,
    0 var(--btn3d-depth) 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 82%, #000 18%),
    0 calc(var(--btn3d-depth) + 10px) 26px rgba(var(--gold-rgb, 181, 139, 80), var(--btn3d-glow)),
    inset 0 1px 0 color-mix(in srgb, var(--btn-studio-light, var(--gold2)) 85%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 60%, transparent));
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
  transform:translateZ(0);
}

/* The specular top light — the detail that makes a flat gradient read as a
   moulded, glossy button. Restored for every button, not just See all reels. */
html body .btn::after,
html body .buy-button::after,
html body .secondary-button::after,
html body .view-link::after,
html body .wb-seeall::after,
html body .wbp-add::after,
html body .wb-action-btn::after,
html body .cta-big::after,
html body .party-cta::after,
html body .coupon-apply::after,
html body .chat-send::after,
html body .auth-cta::after,
html body .bill-cta::after,
html body .restock-btn::after,
html body .rev-submit::after,
html body .rev-cta::after,
html body .acct-viewall::after,
html body .success-ctas a::after,
html body .wa-cta::after,
html body .lbk-btn-gold::after,
html body .lbk-kit-cta::after,
html body .ref-btn::after,
html body .fdrop-btn::after,
html body .nl button::after,
html body .search-form button::after,
html body .ob-name::after{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:54%;
  border-radius:inherit;
  background:linear-gradient(180deg,
    color-mix(in srgb, #fff calc(var(--btn3d-sheen) * 100%), transparent) 0%,
    transparent 100%);
  pointer-events:none;
  opacity:.95;
}

html body .btn:hover:not(:disabled),
html body .buy-button:hover,
html body .view-link:hover,
html body .wb-seeall:hover,
html body .wbp-add:hover,
html body .cta-big:hover,
html body .party-cta:hover,
html body .coupon-apply:hover,
html body .chat-send:hover,
html body .auth-cta:hover,
html body .restock-btn:hover,
html body .rev-submit:hover,
html body .rev-cta:hover,
html body .acct-viewall:hover,
html body .wa-cta:hover,
html body .lbk-btn-gold:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
  box-shadow:
    0 calc(var(--btn3d-depth) + 2px) 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 82%, #000 18%),
    0 calc(var(--btn3d-depth) + 16px) 34px rgba(var(--gold-rgb, 181, 139, 80), var(--btn3d-glow)),
    inset 0 1px 0 color-mix(in srgb, var(--btn-studio-light, var(--gold2)) 95%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 70%, transparent);
}

html body .btn:active:not(:disabled),
html body .buy-button:active,
html body .wb-seeall:active,
html body .cta-big:active{
  transform:translateY(2px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--btn-studio-deep, var(--gold3)) 80%, #000 20%),
    0 calc(var(--btn3d-depth) + 4px) 16px rgba(var(--gold-rgb, 181, 139, 80), var(--btn3d-glow)),
    inset 0 2px 5px rgba(0,0,0,.24);
}

html body .btn:disabled,
html body .buy-button:disabled,
html body .wb-seeall:disabled{
  transform:none;
  box-shadow:none;
}
html body .btn:disabled::after,
html body .buy-button:disabled::after,
html body .wb-seeall:disabled::after{display:none}

@media (prefers-reduced-motion: reduce){
  html body .btn,
  html body .buy-button,
  html body .wb-seeall,
  html body .cta-big{transition:none;transform:none}
}
