/* LYA v18: popup stacking, profile outline, and red campaign video frame. */
/* Keep every feature popup above the sticky header and centered inside the viewport. */
.site-shell .feature-backdrop {
  z-index: 1000 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
  overflow: auto !important;
}
.site-shell .feature-backdrop .account-modal,
.site-shell .feature-backdrop .checkout-modal {
  z-index: 1001 !important;
  flex: 0 1 auto !important;
  width: min(650px, 100%) !important;
  max-width: 650px !important;
  max-height: calc(100dvh - 32px) !important;
  margin: auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: #b3132b !important;
  background: #ffffff !important;
  border: 1px solid #c51632 !important;
  box-shadow: 0 18px 60px #b3132b55 !important;
}
.site-shell .feature-backdrop .profile-modal,
.site-shell .feature-backdrop .account-modal {
  width: min(560px, 100%) !important;
  padding: clamp(24px, 5vw, 55px) clamp(18px, 5vw, 42px) !important;
}
.site-shell .feature-backdrop .modal-close,
.site-shell .feature-backdrop .offer-close {
  z-index: 10 !important;
  color: #c51632 !important;
  background: #ffffff !important;
  border: 2px solid #c51632 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  opacity: 1 !important;
}
.site-shell .feature-backdrop .modal-close svg,
.site-shell .feature-backdrop .offer-close svg { stroke: #c51632 !important; }
.site-shell .feature-backdrop .account-modal h2,
.site-shell .feature-backdrop .account-modal p,
.site-shell .feature-backdrop .account-modal .eyebrow,
.site-shell .feature-backdrop .checkout-modal h2,
.site-shell .feature-backdrop .checkout-modal p,
.site-shell .feature-backdrop .account-modal label {
  color: #b3132b !important;
}
.site-shell .feature-backdrop .account-mode-switch {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  border: 1px solid #c51632 !important;
  padding: 4px !important;
  background: #ffffff !important;
}
.site-shell .feature-backdrop .account-mode-switch button,
.site-shell .feature-backdrop .account-modal button[type="submit"],
.site-shell .feature-backdrop .checkout-submit {
  color: #ffffff !important;
  background: #c51632 !important;
  border: 1px solid #c51632 !important;
  opacity: 1 !important;
}
.site-shell .feature-backdrop .account-mode-switch button:not(.is-active) {
  color: #c51632 !important;
  background: #ffffff !important;
}
.site-shell .feature-backdrop .account-modal input,
.site-shell .feature-backdrop .account-modal select,
.site-shell .feature-backdrop .account-modal textarea,
.site-shell .feature-backdrop .checkout-modal input,
.site-shell .feature-backdrop .checkout-modal select,
.site-shell .feature-backdrop .checkout-modal textarea {
  color: #b3132b !important;
  background: #ffffff !important;
  border: 1px solid #c51632 !important;
}
.site-shell .feature-backdrop .account-modal input::placeholder,
.site-shell .feature-backdrop .checkout-modal input::placeholder,
.site-shell .feature-backdrop .account-modal textarea::placeholder { color: #c51632 !important; opacity: .72 !important; }
/* The cart drawer remains docked to the right, while account/checkout modals stay centered. */
.site-shell .feature-backdrop:has(.cart-drawer) { align-items: stretch !important; justify-content: flex-end !important; padding: 0 !important; }
.site-shell .feature-backdrop .cart-drawer { z-index: 1001 !important; align-self: stretch !important; }
/* Profile: no filled background; red outline around the icon and red label. */
.site-shell .header-actions .profile-action,
.site-shell .profile-action {
  color: #c51632 !important;
  background: transparent !important;
  border: 1px solid #c51632 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  min-height: 46px !important;
  padding: 5px 10px !important;
}
.site-shell .header-actions .profile-action *,
.site-shell .profile-action * { color: #c51632 !important; }
.site-shell .profile-action svg,
.site-shell .profile-action img,
.site-shell .profile-action .profile-icon {
  color: #c51632 !important;
  stroke: #c51632 !important;
  fill: none !important;
  background: transparent !important;
  border: 1px solid #c51632 !important;
  border-radius: 50% !important;
  padding: 5px !important;
  box-sizing: border-box !important;
}
.site-shell .profile-action-label { color: #c51632 !important; text-shadow: none !important; }
/* Campaigns: centered video with a true LYA red frame around it. */
.site-shell #campaigns.campaign-section {
  color: #ffffff !important;
  background: #c51632 !important;
  border-top: 1px solid #c51632 !important;
  border-bottom: 1px solid #c51632 !important;
}
.site-shell #campaigns.campaign-section .section-heading,
.site-shell #campaigns.campaign-section .section-heading h2,
.site-shell #campaigns.campaign-section .section-heading .eyebrow { color: #ffffff !important; }
.site-shell #campaigns .campaign-layout { display: grid !important; place-items: center !important; width: 100% !important; }
.site-shell #campaigns .campaign-media {
  width: 100% !important;
  min-height: clamp(360px, 70vh, 720px) !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  padding: clamp(12px, 2.4vw, 30px) !important;
  overflow: hidden !important;
  background: #c51632 !important;
  border: 1px solid #ffffff !important;
  border-radius: 18px !important;
}
.site-shell #campaigns .campaign-media video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: min(78vh, 860px) !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #c51632 !important;
  border-radius: 12px !important;
}
.site-shell #campaigns .campaign-placeholder {
  width: 100% !important;
  min-height: clamp(320px, 62vh, 680px) !important;
  color: #ffffff !important;
  background: #c51632 !important;
  border: 1px solid #ffffff !important;
}
@media (max-width: 760px) {
  .site-shell .feature-backdrop { padding: 12px !important; }
  .site-shell .feature-backdrop .account-modal,
  .site-shell .feature-backdrop .checkout-modal { max-height: calc(100dvh - 24px) !important; }
  .site-shell .feature-backdrop .account-modal h2,
  .site-shell .feature-backdrop .checkout-modal h2 { font-size: clamp(34px, 10vw, 52px) !important; }
  .site-shell .profile-action { min-height: 40px !important; padding: 4px 7px !important; }
  .site-shell .profile-action svg,
  .site-shell .profile-action img,
  .site-shell .profile-action .profile-icon { width: 32px !important; height: 32px !important; }
  .site-shell #campaigns.campaign-section { padding: 48px 14px !important; }
  .site-shell #campaigns .campaign-media { min-height: clamp(340px, 68svh, 620px) !important; border-radius: 12px !important; }
  .site-shell #campaigns .campaign-media video { max-height: 100% !important; border-radius: 8px !important; }
}
@media (max-width: 420px) {
  .site-shell .feature-backdrop { padding: 8px !important; }
  .site-shell .feature-backdrop .account-modal,
  .site-shell .feature-backdrop .checkout-modal { width: 100% !important; max-height: calc(100dvh - 16px) !important; }
  .site-shell .feature-backdrop .modal-close { width: 34px !important; height: 34px !important; top: 9px !important; right: 9px !important; }
  .site-shell #campaigns.campaign-section { padding: 38px 8px !important; }
  .site-shell #campaigns .campaign-media { min-height: 320px !important; padding: 10px !important; }
}
