/* ===========================
   TABLE OF CONTENTS
=========================== */
/*
1. KEYFRAMES & ANIMATIONS
2. BUTTON STATES & PROCESSING
3. FORM ELEMENTS & INPUTS
4. WEBFLOW OVERRIDES
5. VISIBILITY UTILITIES
6. SWIPER STYLES
7. ANIMATION SYSTEM
8. RADIO STYLES
9. CHECKOUT STYLES
10. SKELETON LOADING
11. UTILITIES
12. DEMO STYLES
*/

/* ===========================
   1. KEYFRAMES & ANIMATIONS
=========================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes wave {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes smooth {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* PageBlock Animation Keyframes */
@keyframes pageblock-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pageblock-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(-10px);
  }
  80% {
    transform: translateX(10px);
  }
}

@keyframes pageblock-wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

@keyframes pageblock-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pageblock-flash {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.5;
  }
}

@keyframes pageblock-tada {
  0% {
    transform: scale(1) rotate(0);
  }
  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes pageblock-heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes pageblock-swing {
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes pageblock-rubber {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scaleX(1.25) scaleY(0.75);
  }
  40% {
    transform: scaleX(0.75) scaleY(1.25);
  }
  60% {
    transform: scaleX(1.15) scaleY(0.85);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pageblock-rotate {
  0% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes pageblock-rotate-360 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pageblock-pulsate {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Button pulse animation - expands and contracts */
@keyframes button-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===========================
     2. BUTTON STATES & PROCESSING
  =========================== */

/* Disabled state */
.next-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Base button processing state */
.next-processing {
  opacity: 0.7;
  pointer-events: none;
}

/* Processing state content */
.next-processing [next-slot='content'] {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.next-processing [next-slot='spinner'] {
  opacity: 1;
}

/* Buttons need relative positioning */
[data-action='submit'] {
  position: relative;
}

/* Universal spinner wrapper */
[next-slot='spinner'] {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s ease;
}

/* Universal spinner */
.spinner {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(128, 128, 128, 0.3);
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinner color variants */
.cc-light .spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: #000000;
}

.cc-dark .spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
}

/* ===========================
     3. FORM ELEMENTS & INPUTS
  =========================== */

/* Remove native select styling */
select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  background-repeat: no-repeat;
  padding-right: 1em;
  border: 1px solid #ccc;
}

select::-ms-expand {
  display: none;
}

/* Input placeholder styling */
input::placeholder {
  color: #808080;
}

input#ship_field_intl::placeholder,
input#billing_field_intl::placeholder {
  opacity: 1;
}

/* Webkit autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fdf8f3 inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* ===========================
     4. WEBFLOW OVERRIDES
  =========================== */

/* Webflow Design Mode Overrides */
html.wf-design-mode [pb-accordion-element='content'] {
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transition: none !important;
}

html.wf-design-mode [pb-accordion-element='arrow'],
html.wf-design-mode [pb-accordion-element='plus'] {
  pointer-events: none;
}

html.wf-design-mode [pb-accordion-element='plus'] .vertical {
  transform: none !important;
}

html.wf-design-mode [pb-accordion-element='arrow'] {
  transform: none !important;
}

html.wf-design-mode [data-next-accordion-panel] {
  height: auto !important;
}

html.wf-design-mode .swiper-slide.is-thumb {
  max-height: 4rem;
  max-width: 4rem;
}

/* ===========================
     5. VISIBILITY UTILITIES
  =========================== */

.hide {
  display: none !important;
}

@media screen and (max-width: 991px) {
  .hide,
  .hide-tablet {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .hide-mobile-landscape {
    display: none !important;
  }
}

@media screen and (max-width: 479px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ===========================
     6. SWIPER STYLES
  =========================== */

.swiper,
swiper-container {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}

/* ===========================
     7. ANIMATION SYSTEM
  =========================== */

/* Animation Attributes */
[pb-animate='pulse'] {
  animation: pageblock-pulse 1s ease infinite;
}

[pb-animate='shake'] {
  animation: pageblock-shake 0.8s ease-in-out;
}

[pb-animate='wiggle'] {
  animation: pageblock-wiggle 0.8s ease-in-out;
}

[pb-animate='bounce'] {
  animation: pageblock-bounce 1s ease infinite;
}

[pb-animate='flash'] {
  animation: pageblock-flash 1s ease infinite;
}

[pb-animate='tada'] {
  animation: pageblock-tada 1s ease;
}

[pb-animate='heartbeat'] {
  animation: pageblock-heartbeat 1.5s ease infinite;
}

[pb-animate='swing'] {
  transform-origin: top center;
  animation: pageblock-swing 1s ease;
}

[pb-animate='rubber'] {
  animation: pageblock-rubber 0.8s ease;
}

[pb-animate='rotate'] {
  animation: pageblock-rotate 2.5s ease-in-out infinite forwards;
}

[pb-animate='rotate-360'] {
  animation: pageblock-rotate-360 2s linear infinite;
}

[pb-animate='pulsate'] {
  animation: pageblock-pulsate 1s ease-out infinite;
}

/* Animation Modifiers */
[pb-animate-count='once'] {
  animation-iteration-count: 1;
}

[pb-animate-count='infinite'] {
  animation-iteration-count: infinite;
}

[pb-animate-speed='fast'] {
  animation-duration: 0.5s;
}

[pb-animate-speed='slow'] {
  animation-duration: 2s;
}

[pb-animate-state='pause'] {
  animation-play-state: paused;
}

[pb-animate-pause='2s'] {
  animation-duration: 3s !important;
  animation-timing-function: cubic-bezier(0.8, 0, 0.2, 1) !important;
  animation-fill-mode: both;
}

/* ===========================
     8. RADIO STYLES
  =========================== */

/* Base radio styles */
.radio-style-1,
.radio-style-2,
.radio-default {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.radio-style-none {
  display: none;
}

.radio-inner {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Selected state styles */
.next-selected .radio-style-1 {
  border: 0.1875rem solid #fff;
  background: var(--radio-color, #000);
  box-shadow: 0 0 0 0.125rem var(--radio-color, #000);
}

.next-selected .radio-style-1 .radio-inner {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--radio-color, #000);
}

.next-selected .radio-style-2 {
  border-width: 0.3125rem;
  border-color: var(--radio-color, #000);
  background: #fff;
  box-shadow: 0 0 0 0.0625rem var(--radio-color, #000);
}

.next-selected .radio-style-2 .radio-inner {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #fff;
}

.next-selected .radio-default {
  border: 0.1875rem solid #fff;
  background: var(--radio-color, #000);
  box-shadow: 0 0 0 0.125rem var(--radio-color, #000);
}

.next-selected .radio-default .radio-inner {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--radio-color, #000);
}

/* ===========================
     9. CHECKOUT STYLES
  =========================== */

/* Preloader */
.preloader {
  position: fixed;
  display: grid;
  place-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #fff;
  transition: opacity 0.2s 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.preloader::before {
  content: '';
  display: block;
  width: 1rem;
  height: 1rem;
  border: 1px solid color-mix(in hsl, #000, transparent 50%);
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin 0.6s linear infinite;
  transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.wf-design-mode .preloader,
.site-scrollbar .preloader {
  display: none;
}

[data-os-checkout-ready='true'] .preloader {
  opacity: 0;
  pointer-events: none;
}

/* Checkmark visibility */
.pb-component-checkmark [os-component='check'] {
  display: none;
}

.checkout-bump__head[class*='os--active']
  .pb-component-checkmark
  [os-component='check'] {
  display: flex;
}

.upsell__header [os-component='check'] {
  display: none;
}

.upsell__header.os--active [os-component='check'] {
  display: flex;
}

/* Cart scroll hint */
.cart-items__scroll-hint {
  display: none;
}

.cart-items:has(.cart-item:nth-child(4)) .cart-items__scroll-hint {
  display: flex;
}

/* ===========================
     10. SKELETON LOADING
  =========================== */

/* Base skeleton */
.skeleton {
  background: #e9ecef;
  background-image: linear-gradient(
    90deg,
    #e9ecef 0px,
    #f4f6f8 40px,
    #e9ecef 80px
  );
  background-size: 200% 100%;
  border-radius: 4px;
  line-height: 1;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton--static {
  animation: none;
  background-image: none;
}

/* Skeleton shapes */
.skeleton-text {
  height: 1em;
  width: 100%;
  margin-bottom: 0.25em;
}

.skeleton-text--short {
  width: 10ch;
}
.skeleton-text--medium {
  width: 20ch;
}
.skeleton-text--long {
  width: 40ch;
}
.skeleton-text--full {
  width: 100%;
}

/* Height modifiers */
.skeleton--xs {
  height: 0.75em;
}
.skeleton--sm {
  height: 0.875em;
}
.skeleton--lg {
  height: 1.25em;
}
.skeleton--xl {
  height: 1.5em;
}
.skeleton--2xl {
  height: 2em;
}

/* Avatar shapes */
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-avatar--sm {
  width: 32px;
  height: 32px;
}
.skeleton-avatar--lg {
  width: 48px;
  height: 48px;
}
.skeleton-avatar--xl {
  width: 64px;
  height: 64px;
}
.skeleton-avatar--square {
  border-radius: 8px;
}

/* Box shapes */
.skeleton-box {
  width: 100%;
  height: 200px;
}

.skeleton-box--square {
  aspect-ratio: 1;
  height: auto;
}
.skeleton-box--video {
  aspect-ratio: 16/9;
  height: auto;
}
.skeleton-box--thumb {
  width: 80px;
  height: 80px;
}

/* Button shapes */
.skeleton-button {
  height: 2.5rem;
  width: 100px;
  border-radius: 6px;
}

.skeleton-button--sm {
  height: 2rem;
  width: 80px;
}
.skeleton-button--lg {
  height: 3rem;
  width: 120px;
}
.skeleton-button--pill {
  border-radius: 9999px;
}

/* Skeleton utilities */
.skeleton--mb-1 {
  margin-bottom: 0.25rem;
}
.skeleton--mb-2 {
  margin-bottom: 0.5rem;
}
.skeleton--mb-3 {
  margin-bottom: 0.75rem;
}
.skeleton--mb-4 {
  margin-bottom: 1rem;
}

.skeleton--rounded-none {
  border-radius: 0;
}
.skeleton--rounded-sm {
  border-radius: 2px;
}
.skeleton--rounded {
  border-radius: 4px;
}
.skeleton--rounded-lg {
  border-radius: 8px;
}
.skeleton--rounded-xl {
  border-radius: 12px;
}
.skeleton--rounded-full {
  border-radius: 9999px;
}

/* Skeleton variants */
.skeleton--darker {
  background: #d5d7db;
  background-image: linear-gradient(
    90deg,
    #d5d7db 0px,
    #e5e7eb 40px,
    #d5d7db 80px
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton--dark {
  background: #374151;
  background-image: linear-gradient(
    90deg,
    #374151 0px,
    #4b5563 40px,
    #374151 80px
  );
}

.skeleton--pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background-image: none;
}

.skeleton--wave {
  background-image: linear-gradient(
    90deg,
    #e9ecef 25%,
    #f4f6f8 50%,
    #e9ecef 75%
  );
  background-size: 400% 100%;
  animation: wave 2s ease infinite;
}

.skeleton--smooth {
  background-image: linear-gradient(
    105deg,
    #e9ecef 40%,
    #f4f6f8 50%,
    #e9ecef 60%
  );
  background-size: 200% 100%;
  animation: smooth 1.8s ease-in-out infinite;
}

/* Skeleton state management */
[data-next-skeleton] {
  transition: opacity 0.3s ease-out;
}

.next-display-ready [data-next-skeleton] {
  opacity: 0;
  pointer-events: none;
}

/* ===========================
     11. UTILITIES
  =========================== */

/* Diagonal strike */
.diagonal-strike,
.os--compare-diagonal {
  position: relative;
  display: inline-block;
}

.diagonal-strike::after,
.os--compare-diagonal::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  border-top: 1px solid currentColor;
  transform: rotate(-10deg);
  transform-origin: center;
}

/* Empty slot hiding */
[os-slot]:empty {
  display: none;
}

/* ===========================
     12. DEMO STYLES
  =========================== */

.demo-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demo-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.demo-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.demo-item {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.demo-item h3 {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.demo-flex {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.demo-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ===========================
     ORDER BUTTON PULSE ANIMATION
  =========================== */

.order-btn-pulse {
  animation: button-pulse 2s ease-in-out infinite;
  transform-origin: center;
}

/* OS Dropdown Component - Minimal Essential Styles */
/* Component Container */
os-dropdown {
  display: block;
  position: relative;
}
/* Dropdown Menu - Hidden by default */
os-dropdown-menu,
.os-dropdown-menu,
[os-element='dropdown-menu'] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  z-index: 1000;
  /* Hide by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}
/* Show state */
os-dropdown-menu.show,
.os-dropdown-menu.show,
[os-element='dropdown-menu'].show,
.os-card__variant-dropdown-menu.show,
.os-card__variant-dropdown-menu-v2.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Floating UI positioning - Remove legacy positioning */
os-dropdown-menu,
.os-dropdown-menu,
[os-element='dropdown-menu'] {
  /* Remove fixed positioning - handled by Floating UI */
  position: absolute;
  /* Remove default positioning */
  top: initial;
  left: initial;
  right: initial;
  margin-top: 0;
}
/* Arrow styling */
.dropdown-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
  border: inherit;
  border-right: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  z-index: -1;
}
/* Arrow positioning based on placement */
os-dropdown-menu.placement-bottom .dropdown-arrow {
  border-left: 0;
  border-top: 0;
  border-right: inherit;
  border-bottom: inherit;
}
os-dropdown-menu.placement-top .dropdown-arrow {
  border-right: 0;
  border-bottom: 0;
  border-left: inherit;
  border-top: inherit;
}
os-dropdown-menu.placement-left .dropdown-arrow {
  border-bottom: 0;
  border-left: 0;
  border-top: inherit;
  border-right: inherit;
}
os-dropdown-menu.placement-right .dropdown-arrow {
  border-top: 0;
  border-right: 0;
  border-bottom: inherit;
  border-left: inherit;
}
/* Active toggle state */
.os-card__variant-dropdown-toggle.active {
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}
/* Icon rotation */
.os-card__variant-dropdown-toggle.active .os-card__variant-dropdown-icon,
.dropdown-toggle.active .dropdown-icon {
  transform: rotate(180deg);
}
/* Essential item styles */
os-dropdown-item {
  display: block;
  cursor: pointer;
}
os-dropdown-item[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* Z-index management for open dropdowns */
.os-card__variant-dropdown-wrapper:has(.show),
os-dropdown[open] {
  z-index: 999;
  position: relative;
}
/* Mobile responsive */
@media (max-width: 640px) {
  os-dropdown-menu,
  [os-element='dropdown-menu'] {
    position: fixed;
    left: 16px;
    right: 16px;
    width: auto;
  }
}
/* Selection Animation Styles */
/* Content wrapper for smooth transitions */
.os-dropdown__content {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  overflow: hidden;
}
/* Option display with GPU-accelerated animations */
.os-dropdown__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  transform: translateY(0);
  opacity: 1;
  transition: transform var(--animation-duration, 0.3s)
      cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity calc(var(--animation-duration, 0.3s) * 0.67) ease;
  will-change: transform, opacity;
}
/* Animation states - Slide (default) */
.os-dropdown__option[data-animating='out'] {
  position: absolute;
  transform: translateY(-100%);
  opacity: 0;
}
.os-dropdown__option[data-animating='in'] {
  transform: translateY(100%);
  opacity: 0;
}
/* Reversed slide animation when dropdown is above */
.os-dropdown__option[data-placement='top'][data-animating='out'] {
  transform: translateY(100%);
}
.os-dropdown__option[data-placement='top'][data-animating='in'] {
  transform: translateY(-100%);
}
/* Fade animation */
.os-dropdown__option[data-animation-type='fade'][data-animating='out'] {
  transform: translateY(0);
  opacity: 0;
}
.os-dropdown__option[data-animation-type='fade'][data-animating='in'] {
  transform: translateY(0);
  opacity: 0;
}
/* Scale animation */
.os-dropdown__option[data-animation-type='scale'][data-animating='out'] {
  transform: scale(0.8);
  opacity: 0;
}
.os-dropdown__option[data-animation-type='scale'][data-animating='in'] {
  transform: scale(1.2);
  opacity: 0;
}
/* Slide-fade animation */
.os-dropdown__option[data-animation-type='slide-fade'][data-animating='out'] {
  transform: translateY(-20px);
  opacity: 0;
}
.os-dropdown__option[data-animation-type='slide-fade'][data-animating='in'] {
  transform: translateY(20px);
  opacity: 0;
}
/* Reversed slide-fade when dropdown is above */
.os-dropdown__option[data-placement='top'][data-animation-type='slide-fade'][data-animating='out'] {
  transform: translateY(20px);
}
.os-dropdown__option[data-placement='top'][data-animation-type='slide-fade'][data-animating='in'] {
  transform: translateY(-20px);
}
/* Ensure toggle has overflow hidden for animation */
os-dropdown[animate-selection] .os-card__variant-dropdown-toggle {
  overflow: hidden;
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .os-dropdown__option {
    transition-duration: 0.01ms !important;
  }
}
os-dropdown-item.selected,
os-dropdown-item:hover {
  background-color: #f5f5f5 !important;
}
/* Checkmark SVG styling */
.progress_circle .checkmark-svg {
  opacity: 0;
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease;
}
.progress_circle > div {
  transition: opacity 0.3s ease;
}
/* Active state */
.progress-item.active .progress_circle {
  background-color: #000;
  border-color: #000;
  color: white;
}
.progress-item.active .progress-tex {
  color: #000;
  font-weight: 600;
}
/* Completed state */
.progress-item.completed .progress_circle {
  background-color: #000;
  border-color: #000;
  color: white;
}
.progress-item.completed .progress_circle > div {
  opacity: 0;
}
.progress-item.completed .progress_circle .checkmark-svg {
  opacity: 1;
}
.progress-item.completed .progress-tex {
  color: #000;
  font-weight: 600;
}
.progress-item.completed + .progress-divider {
  background-color: #000;
}
/* Checkmark SVG styling - Fixed selectors */
.progress_circle .icon-check {
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.progress_circle .icon-check .checkmark-svg {
  width: 16px;
  height: 16px;
}
.progress_circle > div:first-child {
  transition: opacity 0.3s ease;
}
/* Active state */
.progress-item.active .progress_circle {
  background-color: #000 !important;
  border-color: #000 !important;
  color: white !important;
}
.progress-item.active .progress-tex {
  color: #000 !important;
  font-weight: 600 !important;
}
/* Completed state */
.progress-item.completed .progress_circle {
  background-color: #000 !important;
  border-color: #000 !important;
  color: white !important;
}
.progress-item.completed .progress_circle > div:first-child {
  opacity: 0;
}
.progress-item.completed .progress_circle .icon-check {
  opacity: 1;
}
.progress-item.completed .progress-tex {
  color: #000 !important;
  font-weight: 600 !important;
}
.progress-item.completed + .progress-divider {
  background-color: #000 !important;
}
/* Diagonal strike */
.diagonal-strike,
.os--compare-diagonal {
  position: relative;
  display: inline-block;
}
.diagonal-strike::after,
.os--compare-diagonal::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  border-top: 1px solid #f20404 !important;
  transform: rotate(-10deg);
  transform-origin: center;
}
/* OUT OF STOCK STYLES */
/* For size dropdown - apply opacity to out-of-stock items */
os-dropdown[next-variant-option='size'] os-dropdown-item.next-oos {
  /* opacity: 0.4;
  cursor: not-allowed; */
}
/* For color dropdown - apply opacity only to the inner content, not the X */
os-dropdown[next-variant-option='color'] os-dropdown-item.next-oos {
  position: relative;
  overflow: hidden;
}
/* Apply opacity to the content inside, not the whole item */
os-dropdown[next-variant-option='color']
  os-dropdown-item.next-oos
  .os-card__toggle-option {
  opacity: 0.4;
}
/* X overlay with padding */
os-dropdown[next-variant-option='color'] os-dropdown-item.next-oos::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  /* Or use width/height with calc */
  /* width: calc(100% - 1rem);
  height: calc(100% - 1rem); */
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%23666666' stroke-width='1'/%3E%3Cline x1='100' y1='0' x2='0' y2='100' stroke='%23666666' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

:root {
  /* Animation settings - smoother, premium feel */
  --modal-animation-duration: 0.3s;
  --modal-animation-easing: cubic-bezier(0.22, 1, 0.36, 1);
  /* Premium smooth feel */
  /* Overlay settings */
  --modal-overlay-bg: rgba(0, 0, 0, 0.35);
  --modal-overlay-blur: 5px;
  /* Modal styling */
  --modal-bg: #fff;
  --modal-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.08);
  --modal-border-radius: 16px;
  --modal-max-width: 500px;
  --modal-side-panel-width: 400px;
}

/* Base overlay styles - refined backdrop */
[data-pb-modal='overlay'] {
  position: fixed;
  inset: 0;
  background-color: var(--modal-overlay-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--modal-animation-duration)
      var(--modal-animation-easing),
    visibility var(--modal-animation-duration) var(--modal-animation-easing);
  z-index: 999;
  /* backdrop-filter: blur(var(--modal-overlay-blur)); */
  /* -webkit-backdrop-filter: blur(var(--modal-overlay-blur)); */
}

[data-pb-modal='overlay'].cc-active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Base modal styles - refined appearance */
[data-pb-modal='sheet'] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--modal-bg);
  width: 90%;
  max-width: var(--modal-max-width);
  border-radius: var(--modal-border-radius);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--modal-animation-duration)
      var(--modal-animation-easing),
    opacity var(--modal-animation-duration) var(--modal-animation-easing),
    visibility var(--modal-animation-duration) var(--modal-animation-easing);
  z-index: 1000;
  box-shadow: var(--modal-shadow);
  will-change: transform, opacity;
}

[data-pb-modal='sheet'].cc-active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Animation variations - more elegant and premium */
/* Fade animation (default) */
[data-animation='fade'] [data-pb-modal='sheet'] {
  opacity: 0;
  transform: translate(-50%, -50%);
}

[data-animation='fade'] [data-pb-modal='sheet'].cc-active {
  opacity: 1;
}

/* Slide-up animation - silky smooth */
[data-animation='slide-up'] [data-pb-modal='sheet'] {
  opacity: 0;
  transform: translate(-50%, 20px);
}

[data-animation='slide-up'] [data-pb-modal='sheet'].cc-active {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* Slide-down animation - refined motion */
[data-animation='slide-down'] [data-pb-modal='sheet'] {
  opacity: 0;
  transform: translate(-50%, -70%);
}

[data-animation='slide-down'] [data-pb-modal='sheet'].cc-active {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* Zoom animation - subtle and elegant */
[data-animation='zoom'] [data-pb-modal='sheet'] {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

[data-animation='zoom'] [data-pb-modal='sheet'].cc-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Side-slide animations - refined distance */
[data-animation='slide-right'] [data-pb-modal='sheet'] {
  opacity: 0;
  transform: translate(-60%, -50%);
}

[data-animation='slide-right'] [data-pb-modal='sheet'].cc-active {
  transform: translate(-50%, -50%);
  opacity: 1;
}

[data-animation='slide-left'] [data-pb-modal='sheet'] {
  opacity: 0;
  transform: translate(-40%, -50%);
}

[data-animation='slide-left'] [data-pb-modal='sheet'].cc-active {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* Full-width bottom sheet modal - smooth rise */
[data-variant='bottom-sheet'] [data-pb-modal='sheet'] {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: var(--modal-border-radius) var(--modal-border-radius) 0 0;
  transform: translateY(100%);
}

[data-variant='bottom-sheet'] [data-pb-modal='sheet'].cc-active {
  transform: translateY(0);
}

/* Side panel variant - elegant slide */
[data-variant='side-panel'] [data-pb-modal='sheet'] {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 90%;
  max-width: var(--modal-side-panel-width);
  height: 100% !important;
  border-radius: 0 !important;
  transform: translateX(100%);
}

[data-variant='side-panel'] [data-pb-modal='sheet'].cc-active {
  transform: translateX(0);
}

/* Left side panel variant - smooth entry */
[data-variant='left-panel'] [data-pb-modal='sheet'] {
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: 90%;
  max-width: var(--modal-side-panel-width);
  height: 100% !important;
  border-radius: 0 !important;
  transform: translateX(-100%);
}

[data-variant='left-panel'] [data-pb-modal='sheet'].cc-active {
  transform: translateX(0);
}

/* Media queries for responsive modals */
@media (max-width: 767px) {
  [data-pb-modal='sheet'] {
    width: 95%;
    max-width: none;
  }

  [data-variant='mobile-full'] [data-pb-modal='sheet'] {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }
}

/* Focus styles for accessibility */
[data-pb-modal='sheet'] :focus {
  outline: 2px solid rgba(0, 120, 212, 0.5);
  outline-offset: 2px;
}
</style>
        <style>
          /* Base styling for the toggle system */
          html.wf-design-mode pageblock-modal[preview-modal="true"] [data-pb-modal="overlay"] {
  opacity: 1 !important;
  visibility: visible !important;
}

html.wf-design-mode
  pageblock-modal[preview-modal='true']
  [data-pb-modal='sheet'] {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Standard centered modal preview positioning */
html.wf-design-mode
  pageblock-modal[preview-modal='true']:not([data-variant='bottom-sheet']):not(
    [data-variant='side-panel']
  ):not([data-variant='left-panel'])
  [data-pb-modal='sheet'] {
  transform: translate(-50%, -50%) !important;
}

/* Bottom sheet positioning */
html.wf-design-mode
  pageblock-modal[preview-modal='true'][data-variant='bottom-sheet']
  [data-pb-modal='sheet'] {
  transform: translateY(0) !important;
}

/* Side panel positioning */
html.wf-design-mode
  pageblock-modal[preview-modal='true'][data-variant='side-panel']
  [data-pb-modal='sheet'] {
  transform: translateX(0) !important;
}

/* Left panel positioning */
html.wf-design-mode
  pageblock-modal[preview-modal='true'][data-variant='left-panel']
  [data-pb-modal='sheet'] {
  transform: translateX(0) !important;
}
