/**
 * PopSpin - Spin Wheel Extension Styles
 * 
 * Table of Contents:
 * 1. CSS Reset & Base
 * 2. CSS Custom Properties (defined in Liquid templates)
 * 3. Modal & Overlay
 * 4. Close Button
 * 5. Content Layout
 * 6. Typography
 * 7. Form Elements
 * 8. Country Selector
 * 9. Wheel Component
 * 10. Results Screen
 * 11. Side Trigger Button
 * 12. Countdown Timer
 * 13. Branding
 * 14. Animations
 * 15. Responsive Styles
 * 16. Theme Variants (Halloween)
 */

/* =============================================================================
   1. CSS RESET & BASE
   ============================================================================= */

* {
  box-sizing: border-box;
}

spin-wheel-popup {
  display: flex !important;
}

.ca-sw-modal-overlay *,
.ca-sw-modal-content * {
  box-sizing: border-box;
}

/* =============================================================================
   2. LOADING SPINNER
   ============================================================================= */

.ca-sw-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: ca-sw-spin 1s linear infinite;
  vertical-align: middle;
}

/* =============================================================================
   3. MODAL & OVERLAY
   ============================================================================= */

.ca-sw-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--ca-sw-overlay-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ca-sw-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  overflow: auto;
  max-height: 100vh;
  z-index: 2147483647;
}

.ca-sw-modal-content--wrapper {
  /* background: var(--ca-sw-background-color); */
  padding: 30px;
  border-radius: var(--ca-sw-border-radius);
  box-shadow: var(--ca-sw-box-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ca-sw-modal-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 800px;
  font-family: inherit;
}

.ca-sw-modal-content *:focus-visible {
  outline: 0.2rem solid rgba(18, 18, 18, 0.5);
  outline-offset: 3px;
  box-shadow: 0 0 0 0.3rem rgb(255, 255, 255), 0 0 0.5rem 0.4rem rgba(18, 18, 18, 0.3);
}

.ca-sw-modal-content input:focus-visible {
  outline: 0.7px solid var(--ca-sw-text-color) !important;
  outline-offset: 0;
  box-shadow: none;
}

/* =============================================================================
   4. CLOSE BUTTON
   ============================================================================= */

.ca-sw-close-button {
  position: sticky;
  top: 20px;
  width: var(--ca-sw-close-button-size);
  height: var(--ca-sw-close-button-size);
  border: none;
  background-color: var(--ca-sw-background-color);
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  margin-left: auto;
  margin-bottom: calc(-1 * var(--ca-sw-close-button-size));
  z-index: 1000;
  /* transform: translateX(15px) translateY(-15px); */
  transform: translate(10px, -32px);
  transition: background-color 0.3s ease-in-out;
}

.ca-sw-close-button:hover {
  background-color: var(--ca-sw-button-color);
}

.ca-sw-close-button::before,
.ca-sw-close-button::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ca-sw-text-color);
  top: 50%;
  left: 50%;
  transition: background-color 0.2s ease-in-out;
}

.ca-sw-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ca-sw-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ca-sw-close-button:hover::before,
.ca-sw-close-button:hover::after {
  background-color: var(--ca-sw-button-text-color);
}

/* =============================================================================
   5. CONTENT LAYOUT
   ============================================================================= */

.ca-sw-modal-content--text {
  max-width: 400px;
  width: 100%;
  padding: 20px;
}

.ca-sw-initial-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ca-sw-modal-content--text__header {
  display: flex;
  flex-direction: column;
}

.ca-sw-section-container .ca-sw-modal-content--wrapper {
  box-shadow: none;
}

/* =============================================================================
   6. TYPOGRAPHY
   ============================================================================= */

.ca-sw-modal-title {
  color: var(--ca-sw-heading-color);
  font-size: 32px;
  line-height: 38px;
  font-weight: bold;
  padding: 0;
  margin: 0 0 20px;
}

.ca-sw-modal-text {
  font-size: 16px;
  line-height: 22px;
  color: var(--ca-sw-text-color);
  white-space: pre-wrap;
}

/* Help tooltip */
.ca-sw-help-inline-row {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
}

.ca-sw-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: var(--ca-sw-text-color);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
  font-family: inherit;
}

.ca-sw-help-btn:hover,
.ca-sw-help-btn:focus-visible {
  opacity: 1;
  outline: none;
}

.ca-sw-help-text {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ca-sw-text-color);
  text-align: left;
  white-space: pre-wrap;
}

.ca-sw-email-info {
  font-size: 14px;
  color: var(--ca-sw-text-color);
  margin-top: 0.5rem;
  line-height: 20px;
  white-space: pre-wrap;
}

.ca-sw-error-message {
  color: #dc3545;
  font-size: 16px;
  margin-top: 0.5rem;
  line-height: 1.2;
}

/* =============================================================================
   7. FORM ELEMENTS
   ============================================================================= */

.ca-sw-email-form {
  display: flex;
  flex-direction: column;
}

.ca-sw-form-group {
  margin: 10px 0;
}

.ca-sw-email-input {
  font-family: inherit;
  box-shadow: none;
  outline: none;
  border: 1px solid var(--ca-sw-text-color);
  background-color: var(--ca-sw-background-color);
  width: 100%;
  font-weight: 400;
  font-size: 16px;
  padding: 0 8px;
  line-height: 48px;
  color: var(--ca-sw-text-color);
  border-radius: 6px;
}

/* Consent Checkbox */
.ca-sw-consent-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  border-radius: 6px;
}

.ca-sw-consent-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--ca-sw-button-color);
  cursor: pointer;
}

.ca-sw-consent-label {
  color: var(--ca-sw-text-color);
  cursor: pointer;
  line-height: 1.4;
}

/* Buttons */
.ca-sw-modal-spin-btn,
.ca-sw--button {
  background: var(--ca-sw-button-color);
  color: var(--ca-sw-button-text-color);
  width: 100%;
  height: 50px;
  line-height: 50px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 18px;
  user-select: none;
  cursor: pointer;
  text-align: center;
  word-break: break-word;
  margin-top: 5px;
  padding: 0 10px;
  overflow-x: clip;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ca-sw-button-color);
  outline: none;
}

.ca-sw-modal-spin-btn:hover {
  opacity: 0.9;
}

.ca-sw--button--link {
  color: var(--ca-sw-text-color);
  background: transparent;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ca-sw-text-color);
  text-decoration-skip-ink: none;
  width: auto;
  margin: 0 auto;
}

.ca-sw-success-buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media screen and (max-width: 768px) {

  .ca-sw-modal-spin-btn,
  .ca-sw--button {
    margin-top: 0px;
  }
}

/* =============================================================================
   8. COUNTRY SELECTOR
   ============================================================================= */

.ca-sw-phone-input-wrapper {
  display: flex;
  gap: 8px;
  width: 100%;
}

.ca-sw-country-selector-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ca-sw-country-selector-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 48px;
  background-color: var(--ca-sw-background-color);
  border: 1px solid var(--ca-sw-text-color);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--ca-sw-text-color);
  transition: all 0.2s ease;
}

.ca-sw-country-selector-button:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: var(--ca-sw-button-color);
}

.ca-sw-country-selector-button:focus {
  outline: 0.7px solid var(--ca-sw-text-color);
  outline-offset: 0;
}

.ca-sw-country-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 15px;
}

.ca-sw-country-flag img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.ca-sw-country-code {
  font-weight: 500;
  font-size: 15px;
  display: none;
}

.ca-sw-dropdown-arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
  color: var(--ca-sw-text-color);
  opacity: 0.7;
}

.ca-sw-country-selector-button[aria-expanded="true"] .ca-sw-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.ca-sw-country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 320px;
  max-height: 300px;
  background: var(--ca-sw-background-color);
  border: 1px solid var(--ca-sw-text-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ca-sw-country-dropdown[hidden] {
  display: none;
}

.ca-sw-country-search-wrapper {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--ca-sw-background-color);
  position: sticky;
  top: 0;
  z-index: 1;
}

.ca-sw-country-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--ca-sw-text-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ca-sw-text-color);
  background-color: var(--ca-sw-background-color);
  outline: none;
}

.ca-sw-country-search:focus {
  border-color: var(--ca-sw-button-color);
  outline: 0.7px solid var(--ca-sw-button-color);
  outline-offset: 0;
}

.ca-sw-country-list {
  overflow-y: auto;
  max-height: 240px;
}

.ca-sw-country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--ca-sw-text-color);
}

.ca-sw-country-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.ca-sw-country-item:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.08);
}

.ca-sw-country-item-flag {
  width: 20px;
  height: 15px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
}

.ca-sw-country-item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 400;
}

.ca-sw-country-item-code {
  font-size: 14px;
  font-weight: 500;
  color: var(--ca-sw-text-color);
  opacity: 0.7;
}

.ca-sw-phone-input {
  flex: 1;
  min-width: 0;
}

/* Scrollbar Styling */
.ca-sw-country-list::-webkit-scrollbar {
  width: 6px;
}

.ca-sw-country-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.ca-sw-country-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.ca-sw-country-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   9. WHEEL COMPONENT
   ============================================================================= */

.ca-sw-wheel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  border: 10px solid var(--ca-sw-wheel-circle-color);
  border-radius: 50%;
}

.ca-sw-wheel-wrapper--classic {
  border-width: 15px;
}

.ca-sw-wheel-direction {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  right: -29px;
  z-index: 123;
}

.ca-sw-ui-wheel-of-fortune {
  all: unset;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  direction: ltr;
  display: grid;
  position: relative;
  width: 333px;
  padding: 0;
  margin: 0;
  border: none;
  --ca-sw-wheel-width: 333px;
}

.ca-sw-ui-wheel-of-fortune>* {
  position: absolute;
}

/* Wheel List */
.ca-sw-ui-wheel-of-fortune ul {
  all: unset;
  clip-path: inset(0 0 0 0 round 50%);
  display: grid;
  inset: 0;
  place-content: center start;
  border-radius: 50%;
  overflow: hidden;
}

.ca-sw-ui-wheel-of-fortune ul li {
  align-content: center;
  aspect-ratio: var(--ca-sw-aspect-ratio, 1 / 1);
  clip-path: polygon(0% 3%, 100% 50%, 0% 100%);
  display: grid;
  font-size: calc(var(--ca-sw-wheel-width) * 0.05);
  grid-area: 1 / -1;
  padding-left: 2ch;
  padding-right: 3ch;
  transform: rotate(calc(360deg / var(--_items) * calc(var(--_idx) - 1)));
  transform-origin: center right;
  user-select: none;
  width: calc(var(--ca-sw-wheel-width) * 0.5);
}

/* Segment index variables */
.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(1) {
  --_idx: 1;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(2) {
  --_idx: 2;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(3) {
  --_idx: 3;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(4) {
  --_idx: 4;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(5) {
  --_idx: 5;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(6) {
  --_idx: 6;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(7) {
  --_idx: 7;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(8) {
  --_idx: 8;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(9) {
  --_idx: 9;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(10) {
  --_idx: 10;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(11) {
  --_idx: 11;
}

.ca-sw-ui-wheel-of-fortune ul li:nth-of-type(12) {
  --_idx: 12;
}

/* Segment colors */
.ca-sw-ui-wheel-of-fortune ul li:nth-child(even) {
  background: var(--ca-sw-wheel-first-color);
  color: var(--ca-sw-wheel-text-color);
}

.ca-sw-ui-wheel-of-fortune ul li:nth-child(odd) {
  background: var(--ca-sw-wheel-second-color);
  color: var(--ca-sw-wheel-second-text-color);
}

/* Special segment counts */
.ca-sw-ui-wheel-of-fortune ul[data-itemcount="1"] li {
  aspect-ratio: 1 / 1;
  display: block;
  rotate: 0;
  clip-path: none;
  width: calc(var(--ca-sw-wheel-width) * 1);
}

.ca-sw-ui-wheel-of-fortune ul[data-itemcount="2"] li {
  height: calc(var(--ca-sw-wheel-width) * 1);
  clip-path: none;
}

.ca-sw-ui-wheel-of-fortune ul[data-itemcount="3"] li {
  aspect-ratio: 1 / 2;
  clip-path: polygon(-35% -100%, 100% 50%, 0% 145%);
}

.ca-sw-ui-wheel-of-fortune ul[data-itemcount="6"] li:nth-of-type(4) .ca-sw-discount-text {
  transform: rotate(180deg);
  text-align: right;
}

/* Discount text */
.ca-sw-discount-text {
  transform: rotate(180deg);
  text-align: right;
}

/* Center dot */
.ca-sw-ui-wheel-of-fortune .ca-sw-center-dot {
  aspect-ratio: 1 / 1;
  background: var(--ca-sw-wheel-circle-color);
  border-radius: 50%;
  cursor: pointer;
  font-size: 5cqi;
  place-self: center;
  width: calc(var(--ca-sw-wheel-width) * 0.11);
  padding: 0;
}

.ca-sw-ui-wheel-of-fortune .ca-sw-no-logo-center-dot {
  border: 8px solid var(--ca-sw-background-color);
}

/* Circle overlay */
.ca-sw-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--ca-sw-background-color);
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Classic wheel style */
.ca-sw-ui-wheel-of-fortune--classic ul li {
  display: unset !important;
  padding: 0 !important;
}

.ca-sw-ui-wheel-of-fortune--classic .ca-sw-discount-text {
  width: 100%;
  height: min(100%, calc(var(--_items) * 16%));
  display: inline-block;
  transform: rotate(270deg) !important;
  transform-origin: center !important;
  padding: 30px;
  text-align: center !important;
  line-height: 1.3;
}

.ca-sw-ui-wheel-of-fortune--classic .ca-sw-center-dot {
  width: calc(var(--ca-sw-wheel-width) * 0.31) !important;
  /* Explicit height prevents iOS Safari from computing an incorrect height via
     aspect-ratio alone when the element is also a flex container with padding,
     which causes the "egg" shape on mobile WebKit. */
  height: calc(var(--ca-sw-wheel-width) * 0.31) !important;
  overflow: hidden;
}

.ca-sw-ui-wheel-of-fortune--classic .ca-sw-logo-center-dot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.ca-sw-ui-wheel-of-fortune--classic .ca-sw-logo-center-dot img {
  width: 100%;
  /* height: auto !important; */
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
}

.ca-sw-ui-wheel-of-fortune--classic.ca-sw-ui-wheel-of-fortune--8 .ca-sw-discount-text {
  padding: 0 45px !important;
}

/* =============================================================================
   10. RESULTS SCREEN
   ============================================================================= */

.ca-sw-code-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ca-sw-discount-code {
  font-size: 24px;
  border: 3px dashed var(--ca-sw-button-color);
  color: var(--ca-sw-text-color);
  padding: 0 20px;
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ca-sw-copy-code {
  background: var(--ca-sw-button-color);
  color: var(--ca-sw-button-text-color);
  border: none;
  padding: 0 20px;
  font-family: inherit;
  font-size: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Email sent message */
.ca-sw-email-sent-message {
  margin: 20px 0;
  padding-bottom: 20px;
  text-align: start;
}

.ca-sw-email-sent-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
}

.ca-sw-email-icon {
  width: 40px;
  height: 40px;
  color: var(--ca-sw-text-color);
  opacity: 0.7;
}

.ca-sw-email-sent-text {
  margin: 0;
  font-size: 19px;
  line-height: 22px;
  color: var(--ca-sw-text-color);
  font-weight: 500;
}

/* =============================================================================
   11. SIDE TRIGGER BUTTON
   ============================================================================= */

.ca-sw-side-button {
  display: none;
  position: fixed;
  top: 50%;
  transform: rotate(-90deg);
  transform-origin: left top;
  background: var(--ca-sw-button-color);
  color: var(--ca-sw-button-text-color);
  padding: 5px 15px;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  gap: 10px;
  padding-right: 10px;
}

.ca-sw-side-button.ca-sw-side-button-right {
  left: auto !important;
  right: 0;
  border-radius: 0 0 10px 10px;
}

.ca-sw-side-button.ca-sw-side-button-right.ca-sw-side-button-text-mode {
  transform: rotate(90deg) translateX(50%);
  transform-origin: right top;
}

.ca-sw-side-button.ca-sw-side-button-left {
  left: 0 !important;
  right: auto !important;
  border-radius: 0 0 10px 10px;
}

.ca-sw-side-button.ca-sw-side-button-left.ca-sw-side-button-text-mode {
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.ca-sw-side-button-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  margin: 0;
  position: relative;
  height: 20px;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ca-sw-button-text-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.ca-sw-side-button-close:hover {
  background: var(--ca-sw-button-text-color);
  color: var(--ca-sw-button-color);
}

.ca-sw-side-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.ca-sw-side-button-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.ca-sw-side-button-icon svg path {
  stroke: currentColor;
  fill: none;
}

/* Icon mode */
.ca-sw-side-button-icon-mode {
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  padding: 9px !important;
  gap: 0 !important;
  justify-content: center !important;
  top: auto !important;
  bottom: 20px !important;
  transform: rotate(0deg);
}

.ca-sw-side-button-icon-mode.ca-sw-side-button-left {
  left: 20px !important;
  right: auto !important;
}

.ca-sw-side-button-icon-mode.ca-sw-side-button-right {
  right: 20px !important;
  left: auto !important;
}

.ca-sw-side-button-close-icon {
  position: absolute !important;
  top: -10px !important;
  right: -12px !important;
  height: 16px !important;
  width: 16px !important;
  display: none !important;
  background-color: var(--ca-sw-button-color) !important;
  color: var(--ca-sw-button-text-color) !important;
  border: 1px solid var(--ca-sw-button-text-color) !important;
  padding: 2px !important;
}

.ca-sw-side-button-icon-mode:hover .ca-sw-side-button-close-icon {
  display: flex !important;
}

.ca-sw-side-button-icon-mode:hover {
  animation-play-state: paused !important;
}

/* =============================================================================
   12. COUNTDOWN TIMER
   ============================================================================= */

.ca-sw-discount-expiration-countdown {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: -2px;
  background: var(--ca-sw-button-color);
  color: var(--ca-sw-button-text-color);
  padding: 12px 16px;
  border-radius: 0 0 10px 10px;
  z-index: 1000;
  line-height: 1.2;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-right: 30px;
}

.ca-sw-discount-expiration-countdown-text {
  font-size: 16px;
  color: var(--ca-sw-button-text-color);
}

.ca-sw-discount-expiration-countdown-counter {
  font-size: 16px;
  color: var(--ca-sw-button-text-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ca-sw-discount-expiration-countdown-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  margin: 0;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ca-sw-button-text-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.ca-sw-discount-expiration-countdown-close:hover {
  background: var(--ca-sw-button-text-color);
  color: var(--ca-sw-button-color);
}

/* Countdown position variants */
.ca-sw-discount-expiration-countdown.ca-sw-top-center {
  top: 0;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
}

.ca-sw-discount-expiration-countdown.ca-sw-top-center.ca-sw-announcement-bar {
  left: 0px !important;
}

.ca-sw-discount-expiration-countdown.ca-sw-bottom-center {
  top: auto;
  bottom: 20px;
  transform: translateX(-50%);
  border-radius: 7px;
}

.ca-sw-discount-expiration-countdown.ca-sw-top-left {
  top: 0;
  transform: translateX(-50%) translateY(-100%);
  border-radius: 10px 10px 0 0;
}

.ca-sw-discount-expiration-countdown.ca-sw-bottom-left {
  top: 100%;
  transform: translateX(-50%);
  border-radius: 10px 10px 0 0;
}

.ca-sw-discount-expiration-countdown.ca-sw-top-right {
  top: 0;
  transform: translateY(-100%);
  border-radius: 10px 10px 0 0;
}

.ca-sw-discount-expiration-countdown.ca-sw-bottom-right {
  top: 100%;
  transform: none;
  border-radius: 10px 10px 0 0;
}

/* Discount code in countdown */
.ca-sw-discount-code-container {
  display: flex;
  align-items: center;
  margin-left: 15px;
  border: 1px dashed var(--ca-sw-button-text-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ca-sw-discount-expiration-code {
  padding: 0 12px;
  color: var(--ca-sw-button-text-color);
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  border: none;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 0;
  flex: 1;
}

.ca-sw-discount-copy-button {
  background: transparent;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ca-sw-button-text-color);
  transition: all 0.3s ease;
  position: relative;
}

.ca-sw-copy-icon,
.ca-sw-check-icon {
  transition: all 0.3s ease;
}

.ca-sw-check-icon {
  display: none;
}

.ca-sw-discount-copy-button.copied .ca-sw-copy-icon {
  display: none;
}

.ca-sw-discount-copy-button.copied .ca-sw-check-icon {
  display: block !important;
}

/* Countdown boxes */
.ca-sw-countdown-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.ca-sw-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ca-sw-countdown-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.ca-sw-countdown-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 4px;
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ca-sw-countdown-separator {
  font-size: 12px;
  font-weight: 600;
  margin: 0 2px;
  opacity: 0.7;
}

@media screen and (max-width: 768px) {

  .ca-sw-discount-expiration-countdown.ca-sw-top-center.ca-sw-overlay,
  .ca-sw-discount-expiration-countdown.ca-sw-bottom-center {
    left: 0px;
  }
}

/* =============================================================================
   13. ORDER SPIN NOTIFICATION
   ============================================================================= */

.ca-sw-order-spin-notification {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ca-sw-button-color);
  color: var(--ca-sw-button-text-color);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--ca-sw-box-shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.2px;
}

.ca-sw-order-spin-notification::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #45a049;
}

.ca-sw-order-spin-notification.ca-sw-notification-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  animation: ca-sw-notification-pulse 2s ease-in-out 0.5s;
}

.ca-sw-notification-text {
  flex: 1;
}

.ca-sw-notification-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.ca-sw-notification-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Notification position for left/right triggers */
.ca-sw-side-button-left .ca-sw-order-spin-notification {
  left: 100%;
  bottom: auto;
  top: 50%;
  transform: translateX(8px) translateY(-50%) translateX(10px);
}

.ca-sw-side-button-left .ca-sw-order-spin-notification.ca-sw-notification-visible {
  transform: translateX(8px) translateY(-50%) translateX(0);
}

.ca-sw-side-button-left .ca-sw-order-spin-notification::after {
  top: 50%;
  left: auto;
  right: 100%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: #45a049;
  border-top-color: transparent;
}

.ca-sw-side-button-right .ca-sw-order-spin-notification {
  left: auto;
  right: 100%;
  bottom: auto;
  top: 50%;
  transform: translateX(-8px) translateY(-50%) translateX(-10px);
}

.ca-sw-side-button-right .ca-sw-order-spin-notification.ca-sw-notification-visible {
  transform: translateX(-8px) translateY(-50%) translateX(0);
}

.ca-sw-side-button-right .ca-sw-order-spin-notification::after {
  top: 50%;
  left: 100%;
  right: auto;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #45a049;
  border-top-color: transparent;
}

/* =============================================================================
   14. BRANDING
   ============================================================================= */

.ca-sw-branding {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: none;
}

.ca-sw-branding a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  line-height: 1;
}

.ca-sw-branding img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
}

.ca-sw-branding-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ca-sw-powered {
  font-size: 12px;
  color: var(--ca-sw-text-color);
}

.ca-sw-branding-name {
  font-size: 14px;
  color: var(--ca-sw-text-color);
  font-weight: 600;
}

/* =============================================================================
   15. ANIMATIONS
   ============================================================================= */

@keyframes ca-sw-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinWheel {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(var(--target-rotation));
  }
}

/* Side button animations */
.ca-sw-side-button-icon-mode.ca-sw-animation-pulse {
  animation: ca-sw-pulse-icon 2s ease-in-out infinite;
}

@keyframes ca-sw-pulse-icon {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.ca-sw-side-button-icon-mode.ca-sw-animation-shake {
  animation: ca-sw-shake-icon 4s ease-in-out infinite;
}

@keyframes ca-sw-shake-icon {

  0%,
  15%,
  50%,
  100% {
    transform: translateX(0);
  }

  18% {
    transform: translateX(-5px);
  }

  22% {
    transform: translateX(5px);
  }

  26% {
    transform: translateX(-4px);
  }

  30% {
    transform: translateX(4px);
  }

  34%,
  35%,
  55% {
    transform: translateX(0);
  }

  58% {
    transform: translateX(-5px);
  }

  62% {
    transform: translateX(5px);
  }

  66% {
    transform: translateX(-4px);
  }

  70% {
    transform: translateX(4px);
  }

  74% {
    transform: translateX(0);
  }
}

.ca-sw-side-button-icon-mode.ca-sw-animation-bounce {
  animation: ca-sw-bounce-icon 2s ease-in-out infinite;
}

@keyframes ca-sw-bounce-icon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.ca-sw-side-button-icon-mode.ca-sw-animation-glow {
  animation: ca-sw-glow-icon 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes ca-sw-glow-icon {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2), 0 0 0px var(--ca-sw-button-color);
  }

  50% {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2), 0 0 10px var(--ca-sw-button-color), 0 0 25px var(--ca-sw-button-color);
  }
}

@keyframes ca-sw-notification-pulse {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(0) scale(1.03);
  }
}

@keyframes flipAnimation {
  0% {
    transform: rotateX(0deg);
  }

  50% {
    transform: rotateX(90deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

/* =============================================================================
   16. RESPONSIVE STYLES
   ============================================================================= */

@media screen and (max-width: 768px) {
  .ca-sw-modal-overlay {
    align-items: center;
    justify-content: center;
  }

  .ca-sw-modal-content {
    width: 100%;
    margin-top: auto;
    overflow: auto;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox, Safari 18.2+, Chromium 121+ */
  }


  .ca-sw-modal-content::-webkit-scrollbar {
    display: none;
    /* Older Safari and Chromium */
  }

  .ca-sw-modal-overlay .ca-sw-modal-content--wrapper {
    margin-top: 0px;
    max-height: 90%;
    max-width: 90%;
    overflow: auto;
    padding: 20px;
  }

  .ca-sw-ui-wheel-of-fortune {
    width: 280px;
    --ca-sw-wheel-width: 280px;
  }

  .ca-sw-modal-content--text {
    min-width: 200px;
  }

  .ca-sw-section-container .ca-sw-modal-content--text,
  .ca-sw-section-container .ca-sw-modal-content--wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .ca-sw-wheel-direction {
    right: -24px;
    width: 30px;
  }

  .ca-sw-ui-wheel-of-fortune ul li {
    font-size: calc(var(--ca-sw-wheel-width) * 0.055);
  }

  .ca-sw-ui-wheel-of-fortune--classic .ca-sw-discount-text {
    padding: 20px !important;
  }

  .ca-sw-side-button-icon-mode {
    padding: 6px !important;
    height: 36px !important;
    width: 36px !important;
  }

  .ca-sw-side-button-icon-mode .ca-sw-side-button-close-icon {
    display: flex !important;
    height: 14px !important;
    width: 14px !important;
    top: -9px !important;
    right: -10px !important;
  }

  .ca-sw-discount-expiration-countdown {
    left: 0;
    transform: translateX(0%) !important;
    width: 100%;
    border-radius: 0 !important;
    padding: 10px 12px;
  }

  .ca-sw-countdown-container {
    gap: 4px;
  }

  .ca-sw-countdown-box {
    min-width: 28px;
    padding: 4px 6px;
    font-size: 12px;
  }

  .ca-sw-countdown-label {
    font-size: 8px;
  }

  .ca-sw-countdown-separator {
    font-size: 10px;
    margin: 0 1px;
  }

  .ca-sw-discount-expiration-countdown-text {
    font-size: 11px;
  }

  .ca-sw-discount-code-container {
    margin-left: 10px;
    border-radius: 7px;
  }

  .ca-sw-discount-expiration-code {
    font-size: 12px;
    padding: 0 10px;
  }

  .ca-sw-discount-copy-button {
    min-width: 32px;
    height: 32px;
    padding: 7px;
  }

  .ca-sw-discount-copy-button svg {
    width: 14px;
    height: 14px;
  }

  .ca-sw-ui-wheel-of-fortune--classic.ca-sw-ui-wheel-of-fortune--8 .ca-sw-discount-text {
    padding: 0 27px !important;
  }
}

@media screen and (max-width: 685px) {
  .ca-sw-ui-wheel-of-fortune {
    width: 240px;
    --ca-sw-wheel-width: 240px;
  }

  .ca-sw-modal-title {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 10px;
  }

  .ca-sw-modal-text {
    font-size: 14px;
    line-height: 20px;
  }

  .ca-sw-email-info {
    font-size: 12px;
  }

  .ca-sw-email-input,
  .ca-sw-modal-spin-btn,
  .ca-sw--button {
    font-size: 15px;
  }
}

@media screen and (max-width: 600px) {
  .ca-sw-modal-content {
    flex-direction: column;
  }

  .ca-sw-wheel-wrapper {
    border-width: 7px;
  }

  .ca-sw-modal-content--text {
    padding: 0px 10px;
    gap: 8px;
  }

  .ca-sw-country-dropdown {
    width: 280px;
  }

  .ca-sw-phone-input-wrapper {
    flex-direction: row;
  }

  .ca-sw-country-selector-button {
    min-width: auto;
  }

  .ca-sw-copy-code {
    margin-top: 5px;
  }
}

@media screen and (max-width: 480px) {
  .ca-sw-discount-expiration-countdown {
    padding: 8px 10px;
  }

  .ca-sw-countdown-container {
    gap: 3px;
  }

  .ca-sw-countdown-box {
    min-width: 24px;
    padding: 3px 4px;
    font-size: 10px;
  }

  .ca-sw-countdown-label {
    font-size: 7px;
  }

  .ca-sw-countdown-separator {
    font-size: 8px;
    margin: 0;
  }

  .ca-sw-discount-expiration-countdown-text {
    font-size: 10px;
  }

  .ca-sw-discount-code-container {
    margin-left: 6px;
    border-radius: 6px;
  }

  .ca-sw-discount-expiration-code {
    font-size: 10px;
    padding: 0 8px;
  }

  .ca-sw-discount-copy-button {
    min-width: 28px;
    height: 28px;
    padding: 6px;
  }

  .ca-sw-discount-copy-button svg {
    width: 12px;
    height: 12px;
  }
}

@media screen and (min-width: 768px) {
  .ca-sw-discount-code-container {
    margin-left: 25px;
  }
}

/* =============================================================================
   17. THEME VARIANTS - HALLOWEEN
   ============================================================================= */

[class*="spider"] {
  position: absolute;
  height: 40px;
  width: 50px;
  border-radius: 50%;
  margin: 40px 0 0 0;
  background: var(--ca-sw-button-color);
  z-index: 999;
}

[class*="spider"] *,
[class*="spider"]::before,
[class*="spider"]::after,
[class*="spider"] ::after,
[class*="spider"] ::before {
  position: absolute;
  content: "";
}

[class*="spider"]::before {
  width: 1px;
  background: #aaa;
  left: 50%;
  top: -320px;
  height: 320px;
}

[class*="spider"] .eye {
  top: 16px;
  height: 14px;
  width: 12px;
  background: #fff;
  border-radius: 50%;
}

[class*="spider"] .eye::after {
  top: 6px;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: black;
}

[class*="spider"] .eye.left {
  left: 14px;
}

[class*="spider"] .eye.left::after {
  right: 3px;
}

[class*="spider"] .eye.right {
  right: 14px;
}

[class*="spider"] .eye.right::after {
  left: 3px;
}

[class*="spider"] .leg {
  top: 6px;
  height: 12px;
  width: 14px;
  border-top: 2px solid var(--ca-sw-text-color);
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  z-index: -1;
}

[class*="spider"] .leg.left {
  left: -8px;
  transform-origin: top right;
  transform: rotate(36deg) skewX(-20deg);
  border-left: 2px solid #110d04;
  border-radius: 60% 0 0 0;
  animation: ca-sw-legs-wriggle-left 1s 0s infinite;
}

[class*="spider"] .leg.right {
  right: -8px;
  transform-origin: top left;
  transform: rotate(-36deg) skewX(20deg);
  border-right: 2px solid #110d04;
  border-radius: 0 60% 0 0;
  animation: ca-sw-legs-wriggle-right 1s 0.2s infinite;
}

[class*="spider"] .leg:nth-of-type(2) {
  top: 14px;
  left: -11px;
  animation: ca-sw-legs-wriggle-left 1s 0.8s infinite;
}

[class*="spider"] .leg:nth-of-type(3) {
  top: 22px;
  left: -12px;
  animation: ca-sw-legs-wriggle-left 1s 0.2s infinite;
}

[class*="spider"] .leg:nth-of-type(4) {
  top: 31px;
  left: -10px;
  animation: ca-sw-legs-wriggle-left 1s 0.4s infinite;
}

[class*="spider"] .leg:nth-of-type(6) {
  top: 14px;
  right: -11px;
  animation: ca-sw-legs-wriggle-right 1s 0.4s infinite;
}

[class*="spider"] .leg:nth-of-type(7) {
  top: 22px;
  right: -12px;
  animation: ca-sw-legs-wriggle-right 1s 0.7s infinite;
}

[class*="spider"] .leg:nth-of-type(8) {
  top: 31px;
  right: -10px;
  animation: ca-sw-legs-wriggle-right 1s 0.3s infinite;
}

.spider_0 {
  left: 5%;
  animation: ca-sw-spider-move-0 5s infinite;
}

.spider_1 {
  left: 20%;
  animation: ca-sw-spider-move-1 5s infinite;
}

.spider_2 {
  left: 35%;
  animation: ca-sw-spider-move-2 5s infinite;
}

.spider_3 {
  right: 35%;
  margin-top: 160px;
  animation: ca-sw-spider-move-3 5s infinite;
}

.spider_4 {
  right: 20%;
  margin-top: 50px;
  animation: ca-sw-spider-move-4 5s infinite;
}

.spider_5 {
  right: 5%;
  margin-top: 210px;
  animation: ca-sw-spider-move-5 5s infinite;
}

.web-right {
  position: absolute;
  height: 200px;
  width: auto;
  right: -10px;
  top: -10px;
  z-index: -1;
  opacity: 0.2;
}

.web-left {
  position: absolute;
  left: -10px;
  top: -10px;
  transform: rotate(-90deg);
  z-index: -1;
  opacity: 0.2;
}

/* Halloween animations */
@keyframes ca-sw-legs-wriggle-left {

  0%,
  100% {
    transform: rotate(36deg) skewX(-20deg);
  }

  25%,
  75% {
    transform: rotate(15deg) skewX(-20deg);
  }

  50% {
    transform: rotate(45deg) skewX(-20deg);
  }
}

@keyframes ca-sw-legs-wriggle-right {

  0%,
  100% {
    transform: rotate(-36deg) skewX(20deg);
  }

  25%,
  75% {
    transform: rotate(-15deg) skewX(20deg);
  }

  50% {
    transform: rotate(-45deg) skewX(20deg);
  }
}

@keyframes ca-sw-spider-move-0 {

  0%,
  100% {
    margin-top: 0;
  }

  63% {
    margin-top: calc(100px + 50px);
  }
}

@keyframes ca-sw-spider-move-1 {

  0%,
  100% {
    margin-top: 50px;
  }

  40% {
    margin-top: calc(50px + 89px);
  }
}

@keyframes ca-sw-spider-move-2 {

  0%,
  100% {
    margin-top: 30px;
  }

  64% {
    margin-top: calc(30px + 49px);
  }
}

@keyframes ca-sw-spider-move-3 {

  0%,
  100% {
    margin-top: 32px;
  }

  52% {
    margin-top: calc(32px + 43px);
  }
}

@keyframes ca-sw-spider-move-4 {

  0%,
  100% {
    margin-top: 10px;
  }

  32% {
    margin-top: calc(10px + 66px);
  }
}

@keyframes ca-sw-spider-move-5 {

  0%,
  100% {
    margin-top: 10px;
  }

  45% {
    margin-top: calc(120px + 29px);
  }
}

@keyframes flicker {

  0%,
  6%,
  12% {
    text-shadow: none;
    color: #111;
  }

  3%,
  9% {
    text-shadow: 0 0 8px rgba(250, 103, 1, 0.6);
    color: #fa6701;
  }

  60%,
  100% {
    text-shadow: 0 0 8px rgba(250, 103, 1, 0.6), 0 0 16px rgba(250, 103, 1, 0.4), 0 0 20px rgba(255, 0, 84, 0.2), 0 0 22px rgba(255, 0, 84, 0.1);
    color: #fa6701;
  }
}

/* Pumpkin */
.pumpkin {
  position: absolute;
  width: var(--pumpkin-size, 120px);
  height: var(--pumpkin-size, 120px);
  background: radial-gradient(circle at 50% 30%, #ff7f00, #e65c00);
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
  animation: ca-sw-sway 3s ease-in-out infinite alternate;
  box-shadow: 0 0 calc(var(--pumpkin-size, 120px) * 0.125) rgba(255, 140, 0, 0.6);
  z-index: 1;
}

.pumpkin-1 {
  --pumpkin-size: 60px;
}

.pumpkin-2 {
  --pumpkin-size: 50px;
}

.stem {
  position: absolute;
  top: calc(var(--pumpkin-size, 120px) * -0.166);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--pumpkin-size, 120px) * 0.166);
  height: calc(var(--pumpkin-size, 120px) * 0.208);
  background: #3b2e00;
  border-radius: 5px;
  transform-origin: bottom center;
  animation: ca-sw-stem-sway 3s ease-in-out infinite alternate;
}

.face {
  position: absolute;
  top: calc(var(--pumpkin-size, 120px) * 0.333);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--pumpkin-size, 120px) * 0.583);
  height: calc(var(--pumpkin-size, 120px) * 0.416);
}

.face .eye {
  position: absolute;
  top: 0;
  width: calc(var(--pumpkin-size, 120px) * 0.125);
  height: calc(var(--pumpkin-size, 120px) * 0.125);
  background: yellow;
  border-radius: 50%;
  box-shadow: 0 0 calc(var(--pumpkin-size, 120px) * 0.083) yellow;
}

.face .eye.left {
  left: 0;
}

.face .eye.right {
  right: 0;
}

.mouth {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(var(--pumpkin-size, 120px) * 0.333);
  height: calc(var(--pumpkin-size, 120px) * 0.125);
  transform: translateX(-50%);
  border-radius: 0 0 calc(var(--pumpkin-size, 120px) * 0.166) calc(var(--pumpkin-size, 120px) * 0.166);
  background: yellow;
  box-shadow: 0 0 calc(var(--pumpkin-size, 120px) * 0.083) yellow;
}

@keyframes ca-sw-sway {

  0%,
  100% {
    transform: translateX(-50%) rotate(-5deg);
  }

  50% {
    transform: translateX(-50%) rotate(5deg);
  }
}

@keyframes ca-sw-stem-sway {

  0%,
  100% {
    transform: translateX(-50%) rotate(-10deg);
  }

  50% {
    transform: translateX(-50%) rotate(10deg);
  }
}

/* =============================================================================
   17. VALENTINE FALLING HEARTS EFFECT
   ============================================================================= */

/* Container for falling hearts */
.valentine-hearts-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Individual heart */
.heart {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: ca-sw-heart-fall linear infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Hearts animation - falling and swaying */
@keyframes ca-sw-heart-fall {
  0% {
    opacity: 0;
    transform: translateY(-10%) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
    transform: translateY(50vh) rotate(180deg) translateX(20px);
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(360deg) translateX(-20px);
  }
}

/* Different heart variations for natural look */
.heart:nth-child(1) {
  left: 5%;
  animation-duration: 8s;
  animation-delay: 0s;
  font-size: 18px;
}

.heart:nth-child(2) {
  left: 15%;
  animation-duration: 10s;
  animation-delay: 1s;
  font-size: 22px;
}

.heart:nth-child(3) {
  left: 25%;
  animation-duration: 9s;
  animation-delay: 2s;
  font-size: 16px;
}

.heart:nth-child(4) {
  left: 35%;
  animation-duration: 11s;
  animation-delay: 0.5s;
  font-size: 20px;
}

.heart:nth-child(5) {
  left: 45%;
  animation-duration: 8.5s;
  animation-delay: 1.5s;
  font-size: 24px;
}

.heart:nth-child(6) {
  left: 55%;
  animation-duration: 10.5s;
  animation-delay: 2.5s;
  font-size: 18px;
}

.heart:nth-child(7) {
  left: 65%;
  animation-duration: 9.5s;
  animation-delay: 0.8s;
  font-size: 21px;
}

.heart:nth-child(8) {
  left: 75%;
  animation-duration: 11.5s;
  animation-delay: 1.8s;
  font-size: 17px;
}

.heart:nth-child(9) {
  left: 85%;
  animation-duration: 8.8s;
  animation-delay: 2.2s;
  font-size: 23px;
}

.heart:nth-child(10) {
  left: 95%;
  animation-duration: 10.2s;
  animation-delay: 0.3s;
  font-size: 19px;
}

.heart:nth-child(11) {
  left: 10%;
  animation-duration: 9.8s;
  animation-delay: 3s;
  font-size: 20px;
}

.heart:nth-child(12) {
  left: 30%;
  animation-duration: 10.8s;
  animation-delay: 3.5s;
  font-size: 22px;
}

.heart:nth-child(13) {
  left: 50%;
  animation-duration: 9.2s;
  animation-delay: 4s;
  font-size: 18px;
}

.heart:nth-child(14) {
  left: 70%;
  animation-duration: 11.2s;
  animation-delay: 4.5s;
  font-size: 21px;
}

.heart:nth-child(15) {
  left: 90%;
  animation-duration: 8.3s;
  animation-delay: 5s;
  font-size: 19px;
}

/* Additional hearts with pink color variations */
.heart.pink-light {
  color: #ffb3d9;
}

.heart.pink-medium {
  color: #ff69b4;
}

.heart.pink-deep {
  color: #ff1493;
}

.heart.red-soft {
  color: #ff6b9d;
}

.heart.red-rose {
  color: #c41e3a;
}