/* Main document scrollbar. Keep internal scrollers on their own styles. */
html:root {
  scrollbar-color: #ffcb05 #000;
  scrollbar-width: auto;
}

html:root body { scrollbar-color: auto; }

@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar) {
    /* An explicit native scrollbar width keeps the track visible on desktop. */
    html:root { scrollbar-color: auto; }
  }
}

html:root::-webkit-scrollbar { width: 12px; }
html:root::-webkit-scrollbar-track { background: #000 !important; }
html:root::-webkit-scrollbar-thumb {
  background: #ffcb05 !important;
  border: 2px solid #000 !important;
  border-radius: 8px;
}


/* Cart error presentation only: leave the WooCommerce validation and cart state untouched. */
@keyframes thunder-cart-error-fade-out {
  0%, 83.333% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}
#thunder-original-root .thunder-cart-error-toast {
  max-width: min(560px, calc(100vw - 32px));
  margin-inline: auto;
  pointer-events: none !important;
  animation: thunder-cart-error-fade-out 3.6s ease-in forwards;
}
@media (prefers-reduced-motion: reduce) {
  #thunder-original-root .thunder-cart-error-toast { animation: none; }
}
