/**
 * LightningArrows — Snipcart theme
 * Brand: #3893f8. Variables on html + snipcart roots so they always inherit.
 */

/* Put tokens on html so ANY Snipcart node inherits, even if mounted outside #snipcart */
html.la-snipcart-layout-popout,
html.la-snipcart-layout-side,
#snipcart,
.snipcart,
.snipcart-modal,
.snipcart-modal__container {
  /* Fonts — match Typhoon / site.css */
  font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  /* ----------------- Colors ----------------- */
  --color-default: #111827;
  --color-alt: #6b7280;
  --color-icon: #3893f8;
  --color-success: #059669;
  --color-error: #dc2626;

  --color-link: #3893f8;
  --color-link-hover: #1e6fd9;
  --color-link-active: #1e6fd9;
  --color-link-focus: #3893f8;

  --color-input: #111827;
  --color-input-hover: #111827;
  --color-input-focus: #111827;
  --color-input-checked: #ffffff;
  --color-input-disabled: #9ca3af;
  --color-input-error: #dc2626;
  --color-inputLabel: #374151;
  --color-inputLabel-hover: #111827;
  --color-inputLabel-focus: #111827;
  --color-inputIcon: #6b7280;
  --color-inputIcon-hover: #3893f8;
  --color-inputIcon-focus: #3893f8;
  --color-inputIcon-checked: #ffffff;
  --color-inputIcon-error: #dc2626;
  --color-inputPlaceholder: #9ca3af;

  --color-buttonPrimary: #ffffff;
  --color-buttonPrimary-hover: #ffffff;
  --color-buttonPrimary-active: #ffffff;
  --color-buttonPrimary-focus: #ffffff;
  --color-buttonPrimary-disabled: #e5e7eb;
  --color-buttonPrimary-success: #ffffff;
  --color-buttonPrimary-error: #ffffff;

  --color-buttonSecondary: #3893f8;
  --color-buttonSecondary-hover: #1e6fd9;
  --color-buttonSecondary-active: #1e6fd9;
  --color-buttonSecondary-focus: #3893f8;
  --color-buttonSecondary-disabled: #9ca3af;
  --color-buttonSecondary-success: #059669;
  --color-buttonSecondary-error: #dc2626;

  --color-buttonDanger: #dc2626;
  --color-buttonDanger-hover: #b91c1c;
  --color-buttonDanger-active: #b91c1c;
  --color-buttonDanger-focus: #dc2626;
  --color-buttonDanger-disabled: #9ca3af;
  --color-buttonDanger-success: #ffffff;
  --color-buttonDanger-error: #ffffff;

  --color-badge: #3893f8;
  --color-badge-active: #ffffff;
  --color-badge-disabled: #9ca3af;

  /* ----------------- Borders ----------------- */
  --borderColor-default: rgba(56, 147, 248, 0.18);
  --borderColor-error: #fca5a5;

  --borderColor-link: currentColor;
  --borderColor-link-hover: currentColor;
  --borderColor-link-active: currentColor;
  --borderColor-link-focus: currentColor;

  --borderColor-input: #d1d5db;
  --borderColor-input-hover: #3893f8;
  --borderColor-input-focus: #3893f8;
  --borderColor-input-checked: #3893f8;
  --borderColor-input-disabled: #e5e7eb;
  --borderColor-input-error: #dc2626;

  --borderColor-buttonPrimary: transparent;
  --borderColor-buttonPrimary-hover: transparent;
  --borderColor-buttonPrimary-focus: transparent;
  --borderColor-buttonPrimary-disabled: transparent;
  --borderColor-buttonPrimary-success: transparent;
  --borderColor-buttonPrimary-error: transparent;

  --borderColor-buttonSecondary: rgba(56, 147, 248, 0.45);
  --borderColor-buttonSecondary-hover: #3893f8;
  --borderColor-buttonSecondary-focus: #3893f8;
  --borderColor-buttonSecondary-disabled: #e5e7eb;
  --borderColor-buttonSecondary-success: transparent;
  --borderColor-buttonSecondary-error: transparent;

  --borderColor-badge: transparent;
  --borderColor-badge-active: transparent;
  --borderColor-badge-disabled: transparent;

  /* ----------------- Backgrounds ----------------- */
  --bgColor-default: #ffffff;
  --bgColor-alt: #f8fafc;
  --bgColor-success: #ecfdf5;
  --bgColor-error: #fef2f2;
  --bgColor-info: rgba(56, 147, 248, 0.08);

  --bgColor-modal: #ffffff;
  --bgColor-modalVeil: rgba(15, 23, 42, 0.55);

  --bgColor-link: none;
  --bgColor-link-hover: none;
  --bgColor-link-active: none;
  --bgColor-link-focus: rgba(56, 147, 248, 0.08);

  --bgColor-input: #ffffff;
  --bgColor-input-hover: #ffffff;
  --bgColor-input-focus: #ffffff;
  --bgColor-input-checked: #3893f8;
  --bgColor-input-disabled: #f3f4f6;
  --bgColor-input-error: #ffffff;
  --bgColor-input-autofill: #ffffff;

  --bgColor-buttonPrimary: #3893f8;
  --bgColor-buttonPrimary-hover: #1e6fd9;
  --bgColor-buttonPrimary-active: #0760c3;
  --bgColor-buttonPrimary-focus: #3893f8;
  --bgColor-buttonPrimary-disabled: #93c5fd;
  --bgColor-buttonPrimary-success: #059669;
  --bgColor-buttonPrimary-error: #dc2626;

  --bgColor-buttonSecondary: #ffffff;
  --bgColor-buttonSecondary-hover: rgba(56, 147, 248, 0.08);
  --bgColor-buttonSecondary-active: rgba(56, 147, 248, 0.12);
  --bgColor-buttonSecondary-focus: #ffffff;
  --bgColor-buttonSecondary-disabled: #f3f4f6;
  --bgColor-buttonSecondary-success: #ecfdf5;
  --bgColor-buttonSecondary-error: #fef2f2;

  --bgColor-buttonDanger: #fef2f2;
  --bgColor-buttonDanger-hover: #fee2e2;
  --bgColor-buttonDanger-active: #fecaca;
  --bgColor-buttonDanger-focus: #fef2f2;
  --bgColor-buttonDanger-disabled: #f3f4f6;
  --bgColor-buttonDanger-success: #059669;
  --bgColor-buttonDanger-error: #dc2626;

  --bgColor-badge: rgba(56, 147, 248, 0.1);
  --bgColor-badge-active: #3893f8;
  --bgColor-badge-disabled: #f3f4f6;

  /* ----------------- Shadows ----------------- */
  --shadow-default: 0 20px 40px -16px rgba(15, 23, 42, 0.28);
  --shadow-tooltip: 0 8px 20px rgba(56, 147, 248, 0.18);

  --shadow-link-focus: 0 0 0 3px rgba(56, 147, 248, 0.25);

  --shadow-input-hover: none;
  --shadow-input-focus: 0 0 0 3px rgba(56, 147, 248, 0.22);
  --shadow-input-checked: none;

  --shadow-buttonPrimary-hover: 0 10px 20px -8px rgba(56, 147, 248, 0.55);
  --shadow-buttonPrimary-active: none;
  --shadow-buttonPrimary-focus: 0 0 0 3px rgba(56, 147, 248, 0.35);

  --shadow-buttonSecondary-hover: 0 6px 14px -8px rgba(15, 23, 42, 0.15);
  --shadow-buttonSecondary-active: none;
  --shadow-buttonSecondary-focus: 0 0 0 3px rgba(56, 147, 248, 0.25);

  --shadow-buttonDanger-hover: 0 6px 14px -8px rgba(220, 38, 38, 0.25);
  --shadow-buttonDanger-active: none;
  --shadow-buttonDanger-focus: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

/* Hard-lock primary actions to LA blue — match site .la-cs-btn-primary hover */
.snipcart-button-primary,
button.snipcart-button-primary,
a.snipcart-button-primary,
.snipcart .snipcart-button-primary,
#snipcart .snipcart-button-primary,
.snipcart-cart__footer .snipcart-button-primary,
.snipcart-modal .snipcart-button-primary {
  background-color: #3893f8 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #3893f8 !important;
  border-radius: 0.65rem !important;
  font-weight: 700 !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease, filter 0.15s ease !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.snipcart-button-primary:hover,
button.snipcart-button-primary:hover,
a.snipcart-button-primary:hover,
.snipcart .snipcart-button-primary:hover,
#snipcart .snipcart-button-primary:hover,
.snipcart-cart__footer .snipcart-button-primary:hover,
.snipcart-modal .snipcart-button-primary:hover,
.snipcart-button-primary:focus-visible,
button.snipcart-button-primary:focus-visible {
  background-color: #1e6fd9 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #1e6fd9 !important;
  box-shadow: 0 10px 20px -8px rgba(56, 147, 248, 0.55) !important;
  filter: brightness(1.02) !important;
  transform: translateY(-1px) !important;
}

.snipcart-button-primary:active,
button.snipcart-button-primary:active,
a.snipcart-button-primary:active {
  background-color: #0760c3 !important;
  border-color: #0760c3 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
  filter: none !important;
}

.snipcart-button-secondary,
button.snipcart-button-secondary,
a.snipcart-button-secondary,
.snipcart .snipcart-button-secondary {
  color: #3893f8 !important;
  border: 1px solid rgba(56, 147, 248, 0.55) !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-radius: 0.65rem !important;
  font-weight: 600 !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease !important;
  cursor: pointer !important;
}

.snipcart-button-secondary:hover,
button.snipcart-button-secondary:hover,
a.snipcart-button-secondary:hover,
.snipcart .snipcart-button-secondary:hover,
.snipcart-button-secondary:focus-visible {
  background-color: #3893f8 !important;
  color: #ffffff !important;
  border-color: #3893f8 !important;
  box-shadow: 0 8px 18px -8px rgba(56, 147, 248, 0.45) !important;
  transform: translateY(-1px) !important;
}

.snipcart-button-secondary:active {
  background-color: #1e6fd9 !important;
  border-color: #1e6fd9 !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Text / icon buttons in cart */
.snipcart-button-link,
button.snipcart-button-link,
.snipcart .snipcart-button-link {
  color: #3893f8 !important;
  transition: color 0.15s ease, opacity 0.15s ease !important;
  cursor: pointer !important;
}
.snipcart-button-link:hover,
button.snipcart-button-link:hover {
  color: #1e6fd9 !important;
  text-decoration: underline !important;
}

.snipcart a,
.snipcart .snipcart__actions--link,
.snipcart-flash-message__action {
  color: #3893f8 !important;
  transition: color 0.15s ease !important;
}
.snipcart a:hover,
.snipcart .snipcart__actions--link:hover,
.snipcart-flash-message__action:hover {
  color: #1e6fd9 !important;
}

.snipcart__box--badge,
.snipcart__box--badge-highlight {
  color: #3893f8 !important;
  background-color: rgba(56, 147, 248, 0.12) !important;
}

/* =========================================================
   Payment / credit card step — match white LA fields
   (iframe fields are styled via LA_applyPaymentFormTheme;
   outer shells styled here so they are not gray/yellow)
   ========================================================= */

.snipcart-payment,
.snipcart-payment-card-form,
.snipcart-payment-card-form__container,
.snipcart-payment__form-container--loading,
.snipcart-payment-methods-list__container,
.snipcart-payment-info,
.snipcart-payment-info__details-ctn,
.snipcart-payment-details,
.snipcart-cart__featured-payment-methods-container,
.snipcart-featured-payment-methods,
.snipcart__box {
  background-color: #ffffff !important;
  background-image: none !important;
}

.snipcart-payment-card-form iframe,
.snipcart-update-payment-method-form iframe {
  background: #ffffff !important;
  border-radius: 0.5rem !important;
}

.snipcart-payment-methods-list-item__button {
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.65rem !important;
  color: #111827 !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease !important;
  cursor: pointer !important;
}

.snipcart-payment-methods-list-item__button:hover {
  border-color: #3893f8 !important;
  background-color: rgba(56, 147, 248, 0.08) !important;
  box-shadow: 0 8px 18px -10px rgba(56, 147, 248, 0.4) !important;
  transform: translateY(-1px) !important;
  color: #111827 !important;
}

.snipcart-payment-methods-list-item__button:hover .snipcart-payment-methods-list-item__arrow,
.snipcart-payment-methods-list-item__button:hover .snipcart-payment-methods-list-item__label {
  color: #3893f8 !important;
}

.snipcart-payment-methods-list-item__arrow,
.snipcart-payment-methods-list-item__icon {
  color: #3893f8 !important;
}

.snipcart-featured-payment-methods__title,
.snipcart-cart__featured-payment-methods-title {
  background-color: #ffffff !important;
  color: #374151 !important;
}

/* Payment section boxes use default gray (#f1f2f4) — force clean white */
.snipcart-payment .snipcart__box,
.snipcart-payment .snipcart__box--gray,
.snipcart-payment-card-form .snipcart__box {
  background-color: #ffffff !important;
  border: 1px solid rgba(56, 147, 248, 0.14) !important;
  border-radius: 0.75rem !important;
}

/* =========================================================
   Billing / form fields — ALL the same (name, city, apt, zip
   often get browser autofill and look “stuck white”)
   ========================================================= */

/* Detect Chrome autofill (used by JS + optional animation hook) */
@keyframes la-on-autofill-start { from {} to {} }
@keyframes la-on-autofill-cancel { from {} to {} }

.snipcart-form__field .snipcart-input,
.snipcart-form__field .snipcart-typeahead,
.snipcart-form__address-autocomplete .snipcart-input,
.snipcart-form__address-autocomplete .snipcart-typeahead,
.snipcart-input,
.snipcart-input--readonly,
.snipcart-typeahead,
.snipcart-form__select,
.snipcart-form__select-wrapper,
.snipcart-textbox,
#snipcart .snipcart-input,
#snipcart .snipcart-typeahead,
#snipcart .snipcart-form__select {
  color: #111827 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
}

.snipcart-input:hover,
.snipcart-typeahead:hover,
.snipcart-form__select:hover,
.snipcart-form__field .snipcart-input:hover {
  border-color: #3893f8 !important;
  background-color: #ffffff !important;
  color: #111827 !important;
}

.snipcart-input:focus-within,
.snipcart-input--focus,
.snipcart-textbox--focus,
.snipcart-typeahead:focus-within,
.snipcart-form__select:focus,
.snipcart-form__field .snipcart-input:focus-within {
  border-color: #3893f8 !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 0 3px rgba(56, 147, 248, 0.22) !important;
  -webkit-box-shadow: 0 0 0 3px rgba(56, 147, 248, 0.22) !important;
}

/* Wrapper stays white when child is autofilled */
.snipcart-input:has(.snipcart-input__input:-webkit-autofill),
.snipcart-input:has(.snipcart-input__input:autofill),
.snipcart-typeahead:has(input:-webkit-autofill),
.snipcart-typeahead--autofilled,
.snipcart-form__address-autocomplete .snipcart-input:has(input:-webkit-autofill) {
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

/* Inner text — never transparent text / never browser yellow */
.snipcart-input__input,
.snipcart-textbox--hidden,
.snipcart-form__select,
.snipcart-typeahead input,
.snipcart-typeahead select,
.snipcart-form__address-autocomplete input,
.snipcart-form__field input,
.snipcart-form__field select,
.snipcart-form__field textarea,
#snipcart input,
#snipcart select,
#snipcart textarea,
.snipcart input,
.snipcart select,
.snipcart textarea {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  caret-color: #111827 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-clip: padding-box !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Placeholders only gray when empty */
.snipcart-input__input::placeholder,
.snipcart-input__input::-webkit-input-placeholder,
.snipcart-form__field input::placeholder,
#snipcart input::placeholder,
.snipcart input::placeholder {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
  opacity: 1 !important;
}

/* Filled (not placeholder) — keep dark text */
.snipcart-input__input:not(:placeholder-shown),
.snipcart-form__field input:not(:placeholder-shown),
.snipcart input:not(:placeholder-shown) {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background-color: #ffffff !important;
}

/*
 * Autofill (Chrome/Edge/Safari): browsers ignore background-color.
 * Use huge inset shadow + text-fill so Name/City/Apt/ZIP match other fields.
 */
.snipcart-input__input:-webkit-autofill,
.snipcart-input__input:-webkit-autofill:hover,
.snipcart-input__input:-webkit-autofill:focus,
.snipcart-input__input:-webkit-autofill:active,
.snipcart-input__input:autofill,
.snipcart-form__select:-webkit-autofill,
.snipcart-form__hidden-autofill:-webkit-autofill,
.snipcart-typeahead input:-webkit-autofill,
.snipcart-form__field input:-webkit-autofill,
.snipcart-form__field input:-webkit-autofill:hover,
.snipcart-form__field input:-webkit-autofill:focus,
.snipcart-form__field input:-webkit-autofill:active,
.snipcart-form__address-autocomplete input:-webkit-autofill,
#snipcart input:-webkit-autofill,
#snipcart input:-webkit-autofill:hover,
#snipcart input:-webkit-autofill:focus,
#snipcart input:-webkit-autofill:active,
#snipcart select:-webkit-autofill,
#snipcart textarea:-webkit-autofill,
.snipcart input:-webkit-autofill,
.snipcart input:-webkit-autofill:hover,
.snipcart input:-webkit-autofill:focus,
.snipcart input:-webkit-autofill:active,
.snipcart select:-webkit-autofill,
.snipcart textarea:-webkit-autofill {
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;
  caret-color: #111827 !important;
  border-color: transparent !important;
  /* Paint solid white over browser autofill yellow/white */
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-clip: content-box !important;
  transition: background-color 99999s ease-out 0s, color 99999s ease-out 0s !important;
  filter: none !important;
  /* Helps some Chrome versions fire autofill events */
  animation-name: la-on-autofill-start !important;
  animation-duration: 0.001s !important;
}

.snipcart-typeahead--autofilled,
.snipcart-typeahead--autofilled .snipcart-form__select,
.snipcart-typeahead--autofilled input {
  background-color: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Common billing autocomplete names (Full Name, City, Apt, ZIP) */
.snipcart input[name="name"],
.snipcart input[name="fullName"],
.snipcart input[name="address1"],
.snipcart input[name="address2"],
.snipcart input[name="city"],
.snipcart input[name="postalCode"],
.snipcart input[name="postal_code"],
.snipcart input[autocomplete="name"],
.snipcart input[autocomplete="shipping name"],
.snipcart input[autocomplete="billing name"],
.snipcart input[autocomplete="address-line1"],
.snipcart input[autocomplete="address-line2"],
.snipcart input[autocomplete="address-level2"],
.snipcart input[autocomplete="postal-code"] {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background-color: #ffffff !important;
  caret-color: #111827 !important;
}

/* Labels */
.snipcart-form__label,
.snipcart-input__label,
#snipcart label,
.snipcart label {
  color: #374151 !important;
}

/* Dark site: form fields stay light card style */
.dark .snipcart-input,
.dark .snipcart-typeahead,
.dark .snipcart-form__select,
html.dark .snipcart-input,
html.dark .snipcart-typeahead,
html.dark .snipcart-form__field .snipcart-input {
  background-color: #ffffff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}

.dark .snipcart-input__input,
.dark .snipcart-form__select,
html.dark .snipcart-input__input,
html.dark .snipcart input,
html.dark #snipcart input {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background-color: #ffffff !important;
}

/* =========================================================
   Cart layout modes (plugins.la-snipcart.cart_layout)
   - popout (default): centered Secure-checkout style
   - side: keep Snipcart’s native right slide-in

   html.la-snipcart-layout-popout  → force centered card
   html.la-snipcart-layout-side    → leave slide-in alone
   ========================================================= */

/* ----- SIDE mode: keep native slide-in (no popout overrides) ----- */
html.la-snipcart-layout-side .snipcart-transition--slide-in-enter-active {
  /* Snipcart default slideIn animation preserved */
}

/* ----- POPOUT mode only ----- */

/* Kill right→left side-cart animation when using centered popout */
html.la-snipcart-layout-popout .snipcart-transition--slide-in-enter-active,
html.la-snipcart-layout-popout .snipcart-transition--slide-in-leave-active,
html.la-snipcart-layout-popout .snipcart-transition--slide-in-enter-active *,
html.la-snipcart-layout-popout .snipcart-transition--slide-in-leave-active * {
  animation: none !important;
  -webkit-animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Soft fade for open instead of slide (popout only) */
@keyframes la-snip-pop {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#snipcart,
.snipcart,
.snipcart-modal__container,
.snipcart-cart,
.snipcart-modal {
  font-family: inherit;
}

/*
 * Responsive popout stage
 * - Phone: nearly full-bleed sheet, safe-area padding
 * - Tablet: centered card ~92vw
 * - Desktop: max 880px like Secure checkout
 * - Tall/short viewports: scroll inside stage, never clip totals
 */
html.la-snipcart-layout-popout .snipcart-modal__container,
html.la-snipcart-layout-popout .snipcart-modal__container--tablet-up,
html.la-snipcart-layout-popout #snipcart .snipcart-modal__container,
html.la-snipcart-layout-popout #snipcart .snipcart-modal__container--tablet-up {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  height: 100dvh !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* adaptive padding: clamp between phone and desktop */
  padding:
    max(0.5rem, env(safe-area-inset-top, 0px))
    max(0.5rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.5rem, env(safe-area-inset-left, 0px)) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: transparent !important;
  z-index: 100000 !important;
  box-sizing: border-box !important;
  transform: none !important;
  animation: none !important;
}

/* Backdrop — full viewport */
html.la-snipcart-layout-popout .snipcart-modal__overlay,
html.la-snipcart-layout-popout #snipcart .snipcart-modal__overlay {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(2px);
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
}

/* Floating card — fluid width, never wider than viewport */
html.la-snipcart-layout-popout .snipcart-modal,
html.la-snipcart-layout-popout #snipcart .snipcart-modal {
  position: relative !important;
  /* 100% of stage minus padding; cap at Secure-checkout 880px */
  width: min(880px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0.5rem auto 1.5rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  border-radius: 1rem !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  max-height: none !important;
  height: auto !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
  background: #ffffff !important;
  border: 1px solid rgba(56, 147, 248, 0.4);
  box-sizing: border-box !important;
  transform: none !important;
  animation: la-snip-pop 0.22s ease-out !important;
}

html.la-snipcart-layout-popout .snipcart-layout,
html.la-snipcart-layout-popout .snipcart-layout__content,
html.la-snipcart-layout-popout .snipcart-layout__content--side,
html.la-snipcart-layout-popout #snipcart .snipcart-layout,
html.la-snipcart-layout-popout #snipcart .snipcart-layout__content,
html.la-snipcart-layout-popout #snipcart .snipcart-layout__content--side {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
}

/* Inner columns / boxes never force horizontal scroll */
html.la-snipcart-layout-popout .snipcart-layout__cols,
html.la-snipcart-layout-popout .snipcart-layout__col,
html.la-snipcart-layout-popout .snipcart-layout__col--large,
html.la-snipcart-layout-popout .snipcart__box,
html.la-snipcart-layout-popout .snipcart-item-line,
html.la-snipcart-layout-popout .snipcart-form__row,
html.la-snipcart-layout-popout .snipcart-form__cell--large,
html.la-snipcart-layout-popout .snipcart-form__cell--tidy,
html.la-snipcart-layout-popout .snipcart-form__cell--1st-half,
html.la-snipcart-layout-popout .snipcart-form__cell--2nd-half {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html.la-snipcart-layout-popout .snipcart-form__row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
}

html.la-snipcart-layout-popout .snipcart-form__cell--large,
html.la-snipcart-layout-popout .snipcart-form__cell--tidy,
html.la-snipcart-layout-popout .snipcart-form__cell--1st-half,
html.la-snipcart-layout-popout .snipcart-form__cell--2nd-half {
  flex: 1 1 12rem !important;
  width: auto !important;
}

html.la-snipcart-layout-popout .snipcart-layout__cols {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  align-items: flex-start !important;
  justify-content: stretch !important;
}

html.la-snipcart-layout-popout .snipcart-layout__col,
html.la-snipcart-layout-popout .snipcart-layout__col--large {
  flex: 1 1 16rem !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Payment iframe scales with card */
html.la-snipcart-layout-popout .snipcart-payment-card-form,
html.la-snipcart-layout-popout .snipcart-payment-card-form__container,
html.la-snipcart-layout-popout .snipcart-payment-card-form iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Order confirmation page — show full summary + thank-you */
html.la-snipcart-layout-popout .snipcart-order,
html.la-snipcart-layout-popout .snipcart-order__details,
html.la-snipcart-layout-popout .snipcart-order__box,
html.la-snipcart-layout-popout .snipcart-order__footer,
html.la-snipcart-layout-popout .snipcart-order__product-ctn,
html.la-snipcart-layout-popout .snipcart-cart-summary,
html.la-snipcart-layout-popout .snipcart-cart__content {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

html.la-snipcart-layout-popout .snipcart-order {
  padding-bottom: 1.5rem !important;
}

/* Totals row must not clip */
html.la-snipcart-layout-popout .snipcart-cart-summary,
html.la-snipcart-layout-popout .snipcart-summary,
html.la-snipcart-layout-popout [class*='cart-summary'] {
  overflow: visible !important;
  padding-bottom: 1rem !important;
  margin-bottom: 0.5rem !important;
}

/* =========================================================
   Typography — match Typhoon / LA site (Inter, zinc grays,
   primary blue) instead of Snipcart Montserrat/Open Sans
   ========================================================= */

.snipcart,
.snipcart-modal,
.snipcart-modal__container,
#snipcart,
.snipcart * {
  font-family: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif !important;
}

/* Kill Snipcart secondary display faces */
.snipcart__font--secondary,
.snipcart__font--subtitle,
.snipcart__font--subtitle-small {
  font-family: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

/* Body / default copy — do NOT set color on .snipcart root (washes out theme).
   Target Snipcart font utility classes only. */
.snipcart__font--std,
.snipcart__font--regular,
.snipcart__font--slim {
  color: #4b5563 !important; /* gray-600 */
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}
.snipcart,
.snipcart-modal {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.snipcart__font--small,
.snipcart__font--tiny {
  color: #6b7280 !important; /* gray-500 */
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

.snipcart__font--large,
.snipcart__font--xlarge {
  color: #111827 !important;
  font-weight: 700 !important;
}

.snipcart__font--bold,
.snipcart__font--black {
  color: #111827 !important;
  font-weight: 700 !important;
}

/* Headings — match Secure checkout h2 */
.snipcart-cart-header__title,
.snipcart-modal__title,
.snipcart-modal__header-summary-title,
.snipcart-order__title,
.snipcart-order__header-title,
.snipcart-order__step-title,
.snipcart-order__details-title,
.snipcart-payment-completed__title,
.snipcart-billing-completed__title,
.snipcart-cart__secondary-header-title,
.snipcart h1,
.snipcart h2,
.snipcart h3,
#snipcart h1,
#snipcart h2,
#snipcart h3 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #111827 !important; /* gray-900 */
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  margin: 0.35rem 0 0.75rem !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  text-transform: none !important;
}

/* Confirmation thank-you slightly larger */
.snipcart-order__title,
.snipcart-order__header-title {
  font-size: 1.35rem !important;
  margin: 0.5rem 0 1rem !important;
}

/* Labels — site form labels */
.snipcart-form__label,
.snipcart-input__label,
.snipcart label,
.snipcart__font--subtitle-small {
  color: #374151 !important; /* gray-700 */
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  line-height: 1.4 !important;
}

/* Item names / product lines */
.snipcart-item-line__title,
.snipcart-item-line .snipcart__font--secondary,
.snipcart-item-line__header__title,
.snipcart-order__product-ctn .snipcart__font--secondary {
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em !important;
}

.snipcart-item-line__description,
.snipcart-item-line .snipcart__font--small,
.snipcart-item-quantity,
.snipcart-order__invoice-number {
  color: #6b7280 !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}

/* Prices / totals — strong gray-900 */
.snipcart-item-line__price,
.snipcart-summary,
.snipcart-cart-summary,
.snipcart-cart-summary-fees,
.snipcart-cart-summary-fees__title,
.snipcart-cart-summary-fees__amount,
.snipcart-order__details,
.snipcart-order__footer,
.snipcart-total,
[class*='summary-fees'] {
  color: #111827 !important;
  font-variant-numeric: tabular-nums;
}

.snipcart-cart-summary-fees__title,
.snipcart-summary__title {
  color: #4b5563 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}

.snipcart-cart-summary-fees__amount,
.snipcart-summary__amount,
.snipcart-total-price {
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

/* Final total emphasis */
.snipcart-cart-summary-fees--highlight,
.snipcart-cart-summary-fees:last-child,
.snipcart-summary--total,
.snipcart-cart-summary .snipcart__font--xlarge,
.snipcart-cart-summary .snipcart__font--large {
  color: #111827 !important;
  font-weight: 800 !important;
  font-size: 1.125rem !important;
}

/* Invoice / meta */
.snipcart-order__invoice-number,
.snipcart-order__invoice-number--highlight,
.snipcart-order__status,
.snipcart-order__header-item {
  color: #4b5563 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

.snipcart-order__invoice-number--highlight {
  color: #3893f8 !important;
  font-weight: 700 !important;
}

/* Links already themed blue */
.snipcart a,
.snipcart .snipcart__actions--link {
  font-weight: 600 !important;
  text-decoration: none !important;
}

.snipcart a:hover,
.snipcart .snipcart__actions--link:hover {
  color: #1e6fd9 !important;
  text-decoration: underline !important;
}

/* Buttons — match la-cs-btn-primary */
.snipcart-button-primary,
button.snipcart-button-primary,
a.snipcart-button-primary {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.25 !important;
}

.snipcart-button-secondary,
button.snipcart-button-secondary {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.snipcart-cart-header,
.snipcart-modal__header,
#snipcart .snipcart-cart-header,
#snipcart .snipcart-modal__header {
  /* Match Secure checkout head — white, dark title */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff !important;
  background-image: none !important;
  color: #0b1220 !important;
  padding: 1.15rem 1.2rem 1rem !important;
}

.snipcart-button-primary,
button.snipcart-button-primary,
.snipcart__box--badge,
#snipcart .snipcart-button-primary {
  border-radius: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.snipcart-button-secondary,
button.snipcart-button-secondary {
  border-radius: 0.65rem !important;
  font-weight: 600 !important;
}

.snipcart input,
.snipcart select,
.snipcart textarea,
.snipcart-input,
.snipcart-textbox {
  border-radius: 0.5rem !important;
}

.snipcart-item-line,
.snipcart__box {
  border-radius: 0.75rem;
  border-color: rgba(56, 147, 248, 0.14) !important;
}

.snipcart-cart__content,
.snipcart-layout__content {
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  padding-bottom: 1.25rem !important;
}

/* No blue accent bar — Secure checkout has plain white head */
.snipcart-cart-header::before,
.snipcart-modal__header::before {
  content: none !important;
  display: none !important;
}

/* Close like .la-cs-checkout-close */
.snipcart-modal__close {
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0b1220 !important;
  width: 2rem !important;
  height: 2rem !important;
  opacity: 0.85 !important;
  border: 0 !important;
}
.snipcart-modal__close:hover {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.1) !important;
}

/* Hide shipping chrome */
.snipcart-shipping-rates,
[class*='snipcart-shipping-rates'],
.snipcart-cart__shipping,
.snipcart-checkout-step--shipping {
  display: none !important;
}

/* Side-cart body class leftovers */
body.snipcart-sidecart--opened,
html.snipcart-sidecart--opened {
  overflow: hidden !important;
}

/* ----- Large desktop: roomy stage, 880px card ----- */
@media (min-width: 1024px) {
  html.la-snipcart-layout-popout .snipcart-modal__container,
  html.la-snipcart-layout-popout .snipcart-modal__container--tablet-up {
    padding: 1.5rem 1.25rem 2rem !important;
    align-items: flex-start !important;
  }
  html.la-snipcart-layout-popout .snipcart-modal {
    width: min(880px, 100%) !important;
    margin: 1rem auto 2rem !important;
    border-radius: 1rem !important;
  }
  html.la-snipcart-layout-popout .snipcart-layout__content {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }
}

/* ----- Tablet: slightly narrower card, more padding ----- */
@media (min-width: 641px) and (max-width: 1023px) {
  html.la-snipcart-layout-popout .snipcart-modal__container,
  html.la-snipcart-layout-popout .snipcart-modal__container--tablet-up {
    padding: 1rem 0.85rem 1.5rem !important;
  }
  html.la-snipcart-layout-popout .snipcart-modal {
    width: min(720px, 100%) !important;
    margin: 0.65rem auto 1.5rem !important;
    border-radius: 0.95rem !important;
  }
}

/* ----- Phone: full-width sheet, safe areas, tighter type ----- */
@media (max-width: 640px) {
  html.la-snipcart-layout-popout .snipcart-modal__container,
  html.la-snipcart-layout-popout .snipcart-modal__container--tablet-up {
    padding:
      max(0.35rem, env(safe-area-inset-top, 0px))
      max(0.35rem, env(safe-area-inset-right, 0px))
      max(0.5rem, env(safe-area-inset-bottom, 0px))
      max(0.35rem, env(safe-area-inset-left, 0px)) !important;
    align-items: stretch !important;
  }
  html.la-snipcart-layout-popout .snipcart-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.25rem 0 0.75rem !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32) !important;
  }
  html.la-snipcart-layout-popout .snipcart-layout__content,
  html.la-snipcart-layout-popout .snipcart-cart__content {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    padding-bottom: 1rem !important;
  }
  html.la-snipcart-layout-popout .snipcart-cart-header,
  html.la-snipcart-layout-popout .snipcart-modal__header {
    padding: 0.85rem 0.9rem !important;
  }
  /* Stack form halves on small screens */
  html.la-snipcart-layout-popout .snipcart-form__cell--large,
  html.la-snipcart-layout-popout .snipcart-form__cell--tidy,
  html.la-snipcart-layout-popout .snipcart-form__cell--1st-half,
  html.la-snipcart-layout-popout .snipcart-form__cell--2nd-half,
  html.la-snipcart-layout-popout .snipcart-layout__col,
  html.la-snipcart-layout-popout .snipcart-layout__col--large {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Adaptive type scale */
  html.la-snipcart-layout-popout .snipcart-order__title,
  html.la-snipcart-layout-popout .snipcart-order__header-title,
  html.la-snipcart-layout-popout .snipcart-cart-header__title,
  html.la-snipcart-layout-popout .snipcart-modal__title,
  html.la-snipcart-layout-popout h1,
  html.la-snipcart-layout-popout h2 {
    font-size: 1.125rem !important;
  }
  html.la-snipcart-layout-popout .snipcart,
  html.la-snipcart-layout-popout .snipcart__font--std {
    font-size: 0.9rem !important;
  }
  html.la-snipcart-layout-popout .snipcart-button-primary,
  html.la-snipcart-layout-popout button.snipcart-button-primary {
    width: 100% !important;
    min-height: 2.75rem !important;
    font-size: 0.95rem !important;
  }
  html.la-snipcart-layout-popout .snipcart-input,
  html.la-snipcart-layout-popout .snipcart-typeahead {
    min-height: 2.75rem !important;
  }
  /* Prevent iOS zoom-jump: keep 16px inputs */
  html.la-snipcart-layout-popout .snipcart-input__input,
  html.la-snipcart-layout-popout input,
  html.la-snipcart-layout-popout select,
  html.la-snipcart-layout-popout textarea {
    font-size: 16px !important;
  }
}

/* ----- Very small phones ----- */
@media (max-width: 380px) {
  html.la-snipcart-layout-popout .snipcart-modal {
    border-radius: 0.65rem !important;
  }
  html.la-snipcart-layout-popout .snipcart-layout__content,
  html.la-snipcart-layout-popout .snipcart-cart__content {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* ----- Short viewports (landscape phones / small laptops) ----- */
@media (max-height: 560px) {
  html.la-snipcart-layout-popout .snipcart-modal__container,
  html.la-snipcart-layout-popout .snipcart-modal__container--tablet-up {
    align-items: flex-start !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.5rem !important;
  }
  html.la-snipcart-layout-popout .snipcart-modal {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }
}

/* ----- Prefer reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html.la-snipcart-layout-popout .snipcart-modal {
    animation: none !important;
  }
}

/* Dark site mode — keep cart chrome themed, but billing fields always
   light card style so text never disappears on autofill/focus */
.dark #snipcart,
html.dark #snipcart,
.dark .snipcart-modal,
html.dark .snipcart-modal {
  --color-default: #111827;
  --color-alt: #6b7280;
  /* Form fields always dark text on white */
  --color-input: #111827;
  --color-input-hover: #111827;
  --color-input-focus: #111827;
  --color-inputLabel: #374151;
  --color-inputPlaceholder: #9ca3af;
  --borderColor-default: rgba(56, 147, 248, 0.18);
  --borderColor-input: #d1d5db;
  --bgColor-default: #ffffff;
  --bgColor-alt: #f8fafc;
  --bgColor-modal: #ffffff;
  --bgColor-modalVeil: rgba(2, 6, 23, 0.72);
  --bgColor-input: #ffffff;
  --bgColor-input-hover: #ffffff;
  --bgColor-input-focus: #ffffff;
  --bgColor-input-autofill: #ffffff;
  --bgColor-buttonSecondary: #ffffff;
  --bgColor-info: rgba(56, 147, 248, 0.08);
}

.dark #snipcart .snipcart-cart-header__title,
.dark #snipcart .snipcart-modal__title,
.dark .snipcart-modal h1,
.dark .snipcart-modal h2,
.dark .snipcart-modal h3 {
  color: #111827;
}

.dark #snipcart .snipcart-cart-header,
.dark #snipcart .snipcart-modal__header,
.dark .snipcart-modal__header {
  /* Keep cart panel white like Secure checkout even in dark site mode */
  background: #ffffff !important;
  background-image: none !important;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
