/* ===========================
   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 */

/* new up4 style */
@keyframes pageblock-pulse {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.0);
  }

  100% {
    transform: scale(0.9);
  }
}

@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;
  }
}

/* ===========================
     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;
}

/* new up4 style */
/* 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 #ffffff 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 1.5s ease infinite;
  /* new up4 style */
}

[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: 24px !important;
  height: 24px !important;
  border: 1px solid #919191 !important;
  border-radius: 50%;
  background: #F6F6F6 !important;
  position: relative;
  box-sizing: border-box;
  transition: all .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.45rem solid #000 !important;
  background: #fff !important;
  box-shadow: 0 0 0 .1rem #fff !important;
}

.next-selected .radio-style-1 .radio-inner {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #fff !important;
}

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

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

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

.next-selected .radio-default .radio-inner {
  width: .5rem;
  height: .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 .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 #ff0000;
  /* new up4 style */
  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;
}

.icons-grids-2 {
  display: flex;
  text-align: center;
  gap: 16px;
}

.icons-grids-2-item {
  flex: 1;
  border: 1px solid #BDBDBD;
  padding: 15px 4px;
  border-radius: 4px;
  font-family: Inter, Poppins, Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
}

.mobile-footer-content .icons-grids-2 {
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mobile-footer-content .icons-grids-2-item {
  flex: 1;
  min-width: calc(50% - 16px);
}

.diagonal-strike::after, .os--compare-diagonal::after {
  border-top: 1px solid #ff0000 !important;
}

@media screen and (max-width: 540px) {
  .mobile-footer-content .icons-grids-2 {
    margin: 1rem auto 0 auto;
    max-width: 278px;
  }
}
