/* Pocket Pixel buy button (28 Oct 2026): Add to cart and its sticky counterpart in the site's edge-lit black glass,
   matching "Choose your console" (outline-button.css): smoked glass with a soft lilac light along the bottom edge,
   an uppercase Barlow label and a lilac chevron. The label is a bare text node that product-showroom.js rewrites
   ("Adding…", "Sold out"), so the chevron is drawn with ::after and needs no markup. */
.pv-showroom :is(.sr-buybtn, .sr-bar__buy) {
  --pp-glass:
    linear-gradient(90deg, rgba(196, 177, 242, 0), #cdbbf6 50%, rgba(196, 177, 242, 0)),
    radial-gradient(58% 95% at 50% 120%, rgba(176, 148, 236, .3), rgba(176, 148, 236, .07) 55%, rgba(176, 148, 236, 0) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .24));
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background-color: rgba(17, 17, 21, .8);
  background-image: var(--pp-glass);
  background-size: 64% 1px, 100% 100%, 100% 100%;
  background-position: 50% 100%, 0 6px, 0 0;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .085),
    0 1px 1px rgba(0, 0, 0, .5),
    0 18px 30px -20px rgba(160, 128, 232, .55),
    0 12px 28px -12px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: #f4f1fb;
  font: 600 .9375rem/1.2 'Barlow', 'PP Footer Text', Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out;
}
/* the chevron, as on the homepage buttons (24-unit drawing at 20px, 2.6 units ≈ 2.2px stroke) */
.pv-showroom .sr-buybtn::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-inline-end: -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b6f4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5.5 16 12 9 18.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pv-showroom .sr-buybtn { padding-inline: 18px; font-size: 13px; }
/* inside the sticky bar: label only, as in the homepage buy bar */
.pv-showroom .sr-bar__buy { padding-inline: 16px; font-size: 13px; letter-spacing: .08em; }
.pv-showroom :is(.sr-buybtn, .sr-bar__buy):disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy):not(:disabled):hover {
    background-color: rgba(24, 24, 29, .84);
    background-size: 100% 1px, 100% 100%, 100% 100%;
    background-position: 50% 100%, 0 0, 0 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .24),
      inset 0 0 0 1px rgba(255, 255, 255, .11),
      0 1px 1px rgba(0, 0, 0, .5),
      0 20px 34px -18px rgba(160, 128, 232, .8),
      0 14px 30px -12px rgba(0, 0, 0, .85);
  }
}
/* pressed comes after hover, so it still shows under a mouse pointer */
.pv-showroom :is(.sr-buybtn, .sr-bar__buy):not(:disabled):active {
  background-color: rgba(10, 10, 13, .86);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 1px 1px rgba(0, 0, 0, .5),
    0 16px 28px -16px rgba(160, 128, 232, .85),
    0 8px 18px -12px rgba(0, 0, 0, .8);
}
.pv-showroom .sr-buybtn:focus-visible, .pv-showroom .sr-bar__buy:focus-visible { outline-color: #f4f1fb; }
@media (prefers-reduced-motion: no-preference) {
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy) {
    transition: transform 150ms ease-out, background-color 200ms ease-out, background-size 450ms cubic-bezier(.2, 0, 0, 1),
      background-position 450ms cubic-bezier(.2, 0, 0, 1), box-shadow 250ms ease-out;
  }
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy):not(:disabled):active { transform: scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy):not(:disabled):active,
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy)[aria-busy="true"] { transform: none; }
}
@media (max-width: 600px) {
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy) { border-radius: 13px; }
}
@media (max-width: 359px) {
  .pv-showroom .sr-buybtn { padding-inline: 12px; gap: 6px; letter-spacing: .06em; }
}
@media (prefers-reduced-transparency: reduce) {
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy) { background-color: #151519; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy) { background: #000; color: #fff; border-color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .pv-showroom :is(.sr-buybtn, .sr-bar__buy) { color: ButtonText; background: ButtonFace; border-color: ButtonText; box-shadow: none; }
  .pv-showroom .sr-buybtn::after { display: none; }
}
