/* XANY UI Contract — Checkout final (xany-final-checkout-*) */

/* ─── vista layout ─── */
.xany-final-checkout-view {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: clamp(24px, 3vw, 38px) !important;
  min-height: 650px;
  align-items: stretch !important;
}

.xany-final-checkout-view:not(.is-active):not(.is-leaving) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.xany-final-checkout-shell {
  width: min(100%, 1220px);
  display: grid;
  gap: 18px;
  align-content: start;
}

/* ─── surface compartida hero / cart / payment ─── */
.xany-final-checkout-hero,
.xany-final-checkout-cart,
.xany-secure-payment-block {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, .14);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,250,255,.90));
  box-shadow: 0 18px 48px rgba(15,23,42,.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ─── hero ─── */
.xany-final-checkout-hero {
  min-height: 220px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, .72fr);
  gap: 24px;
  align-items: stretch;
  isolation: isolate;
}

.xany-final-checkout-hero::before,
.xany-final-checkout-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.xany-final-checkout-hero::before {
  width: 430px;
  height: 430px;
  right: -110px;
  top: -190px;
  background: radial-gradient(circle, rgba(30,185,255,.19), rgba(139,92,246,.10) 48%, transparent 70%);
}

.xany-final-checkout-hero::after {
  width: 370px;
  height: 370px;
  left: -130px;
  bottom: -230px;
  background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%);
}

.xany-final-checkout-hero-copy,
.xany-final-checkout-hero-badge {
  position: relative;
  z-index: 1;
}

.xany-final-checkout-kicker {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(139,92,246,.12);
  color: #7c3aed;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.xany-final-checkout-hero h1 {
  margin: 18px 0 10px !important;
  color: #0f172a !important;
  font-size: clamp(42px, 5vw, 70px) !important;
  line-height: .92 !important;
  letter-spacing: -.065em !important;
  font-weight: 1000 !important;
}

.xany-final-checkout-hero p {
  max-width: 690px;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
}

.xany-final-checkout-hero-badge {
  align-self: stretch;
  padding: 24px;
  border-radius: 28px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(245,243,255,.82));
  border: 1px solid rgba(139,92,246,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 14px 30px rgba(109,40,217,.08);
}

.xany-final-checkout-hero-badge span,
.xany-final-checkout-cart-head > div > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.xany-final-checkout-hero-badge strong {
  color: #111827;
  font-size: 28px;
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: -.05em;
}

.xany-final-checkout-hero-badge small {
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
}

/* ─── cart + payment block ─── */
.xany-final-checkout-cart,
.xany-secure-payment-block {
  padding: 18px;
  border-radius: 30px;
}

.xany-final-checkout-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px 16px;
}

.xany-final-checkout-cart-head h2 {
  margin: 4px 0 0 !important;
  color: #111827 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
  letter-spacing: -.045em !important;
}

.xany-final-checkout-close {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(109,40,217,.07);
}

.xany-final-checkout-mixed-notice {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,247,237,.96), rgba(245,243,255,.92));
  border: 1px solid rgba(251,146,60,.32);
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

/* ─── items + summary ─── */
.xany-final-checkout-items,
.xany-final-checkout-summary {
  display: grid;
  gap: 14px;
}

.xany-final-checkout-group {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(139,92,246,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.84));
}

.xany-final-checkout-group-head {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(226,232,240,.9);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(248,250,252,.82);
}

.xany-final-checkout-group-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 1000;
}

.xany-final-checkout-group-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.xany-final-checkout-item {
  min-height: 94px;
  padding: 16px 18px;
  border-top: 1px solid rgba(226,232,240,.72);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.78);
}

.xany-final-checkout-item:first-of-type {
  border-top: 0;
}

.xany-final-checkout-thumb {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  color: #6d28d9;
  font-size: 14px;
  font-weight: 1000;
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(30,185,255,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
}

.xany-final-checkout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xany-final-checkout-item-info {
  min-width: 0;
}

.xany-final-checkout-item-info strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 1000;
}

.xany-final-checkout-item-info span,
.xany-final-checkout-item-info small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.xany-final-checkout-item-type {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9e7ff;
  color: #6d28d9;
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
}

.xany-final-checkout-item-type.is-pavos {
  background: #e0f2fe;
  color: #0369a1;
}

.xany-final-checkout-item-price {
  color: #111827;
  font-size: 14px;
  font-weight: 1000;
}

.xany-final-checkout-remove {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(239, 68, 68, .26);
  border-radius: 999px;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 1000;
  cursor: pointer;
}

.xany-final-checkout-remove:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.xany-final-checkout-remove[hidden] {
  display: none !important;
}

.xany-final-checkout-empty {
  min-height: 210px;
  padding: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(139,92,246,.20);
  background: linear-gradient(180deg, rgba(248,250,252,.92), rgba(255,255,255,.84));
  color: #64748b;
}

.xany-final-checkout-empty strong {
  color: #111827;
  font-size: 18px;
  font-weight: 1000;
}

/* ─── summary card + secure payment state (surface) ─── */
.xany-final-checkout-summary-card,
.xany-secure-payment-state {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(139,92,246,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.84));
}

.xany-final-checkout-summary-card h3,
.xany-secure-payment-state strong {
  display: block;
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -.03em;
}

/* ─── pay button ─── */
.xany-final-checkout-pay {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 16px 32px rgba(109,40,217,.20);
}

.xany-secure-payment-state small {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.xany-final-checkout-summary-card {
  margin-top: 14px;
}

/* ─── summary lines ─── */
.xany-final-checkout-summary-line {
  min-height: 42px;
  border-top: 1px solid rgba(226,232,240,.80);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.xany-final-checkout-summary-line:first-of-type {
  border-top: 0;
}

.xany-final-checkout-summary-line strong {
  color: #111827;
  font-size: 14px;
  font-weight: 1000;
}

.xany-final-checkout-summary-line.is-total {
  margin-top: 8px;
  min-height: 58px;
  padding-top: 8px;
}

.xany-final-checkout-summary-line.is-total span,
.xany-final-checkout-summary-line.is-total strong {
  color: #6d28d9;
  font-size: 20px;
  font-weight: 1000;
}

/* ─── secure payment block ─── */
.xany-secure-payment-block {
  border-color: rgba(30,185,255,.18);
}

.xany-secure-payment-state {
  min-height: 142px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(circle at 12% 32%, rgba(30,185,255,.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.84));
}

.xany-secure-payment-loading,
.xany-secure-payment-redirect_fallback,
.xany-secure-payment-mixed_cart,
.xany-secure-payment-empty,
.xany-secure-payment-error {
  grid-template-columns: minmax(0, 1fr);
}

.xany-secure-payment-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, #8b5cf6, #1eb9ff);
  box-shadow: 0 16px 34px rgba(30,185,255,.20);
  animation: xanySecurePayPulse 1.2s ease-in-out infinite;
}

@keyframes xanySecurePayPulse {
  0%, 100% { transform: scale(1); opacity: .82; }
  50% { transform: scale(1.06); opacity: 1; }
}

.xany-final-checkout-pay.is-disabled,
.xany-final-checkout-pay[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

/* ─── sidebar ordering en modo checkout ─── */
.xany-home-v2-platform.is-final-checkout-mode #xanyPavosnowCartSlot {
  order: 1 !important;
}

.xany-home-v2-platform.is-final-checkout-mode #xanyRightProfileSlot {
  order: 2 !important;
}

.xany-home-v2-platform.is-final-checkout-mode .xany-ranking-card {
  order: 3 !important;
}

/* ─── responsive base ─── */
@media (max-width: 1180px) {
  .xany-final-checkout-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .xany-final-checkout-view {
    padding: 18px !important;
    min-height: auto;
  }

  .xany-final-checkout-hero h1 {
    font-size: clamp(36px, 11vw, 52px) !important;
  }

  .xany-final-checkout-cart-head,
  .xany-final-checkout-group-head {
    flex-direction: column;
    align-items: stretch;
  }

  .xany-final-checkout-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .xany-final-checkout-item-type,
  .xany-final-checkout-item-price {
    grid-column: 2;
  }

  .xany-secure-payment-state {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xany-secure-payment-icon,
  .xany-final-checkout-item,
  .xany-final-checkout-pay {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── estados preparing / payment / error ─── */
.xany-final-checkout-preparing,
.xany-final-checkout-payment,
.xany-final-checkout-error {
  width: 100%;
  min-height: clamp(360px, 48vh, 560px);
  border-radius: 32px;
  border: 1px solid rgba(139,92,246,.16);
  background:
    radial-gradient(circle at 18% 18%, rgba(30,185,255,.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(139,92,246,.18), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
  box-shadow: 0 28px 70px rgba(15,23,42,.08);
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .26s ease, transform .26s ease;
}

.xany-final-checkout-preparing[hidden],
.xany-final-checkout-payment[hidden],
.xany-final-checkout-error[hidden] {
  display: none !important;
}

.xany-home-v2-platform.is-final-checkout-step-preparing [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-step-payment-ready [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-step-mixed [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-step-empty [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-step-error [data-xany-checkout-review-panel] {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.xany-final-checkout-preparing > *,
.xany-final-checkout-payment > *,
.xany-final-checkout-error > * {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.xany-final-checkout-preparing h2,
.xany-final-checkout-payment h2,
.xany-final-checkout-error h2 {
  margin: 14px 0 10px;
  color: #111827;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 1000;
}

.xany-final-checkout-preparing p,
.xany-final-checkout-payment p,
.xany-final-checkout-error p {
  margin: 0 auto;
  color: #64748b;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  font-weight: 850;
}

.xany-final-checkout-preparing small,
.xany-final-checkout-payment small,
.xany-final-checkout-error small {
  display: block;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
}

/* ─── loader ─── */
.xany-checkout-loader {
  width: 82px;
  height: 82px;
  border-radius: 28px;
  display: inline-flex;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #8b5cf6, #1eb9ff);
  box-shadow: 0 26px 55px rgba(109,40,217,.22), 0 0 0 14px rgba(139,92,246,.07);
  animation: xanyCheckoutLoaderPulse 1.2s ease-in-out infinite;
}

.xany-checkout-loader::before,
.xany-checkout-loader::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 34px;
  border: 1px solid rgba(139,92,246,.22);
  animation: xanyCheckoutLoaderRing 1.35s ease-out infinite;
}

.xany-checkout-loader::after {
  inset: -24px;
  animation-delay: .28s;
  border-color: rgba(30,185,255,.20);
}

@keyframes xanyCheckoutLoaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes xanyCheckoutLoaderRing {
  0% { opacity: .85; transform: scale(.92); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* ─── step actions ─── */
.xany-final-checkout-step-actions {
  width: min(100%, 560px);
  margin: 26px auto 0;
  display: grid;
  gap: 12px;
}

.xany-final-checkout-secondary {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(139,92,246,.18);
  background: rgba(255,255,255,.86);
  color: #6d28d9;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.xany-final-checkout-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(139,92,246,.30);
  box-shadow: 0 16px 34px rgba(109,40,217,.10);
}

.xany-secure-payment-idle .xany-final-checkout-pay-start {
  width: 100%;
  margin-top: 16px;
}

.xany-final-checkout-payment .xany-final-checkout-pay,
.xany-final-checkout-error .xany-final-checkout-pay {
  min-height: 52px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .xany-final-checkout-preparing,
  .xany-final-checkout-payment,
  .xany-final-checkout-error {
    min-height: 320px;
    border-radius: 26px;
    padding: 28px 18px;
  }

  .xany-checkout-loader {
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xany-final-checkout-preparing,
  .xany-final-checkout-payment,
  .xany-final-checkout-error,
  .xany-checkout-loader,
  .xany-checkout-loader::before,
  .xany-checkout-loader::after,
  .xany-final-checkout-secondary {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── hero collapse / transición ─── */
.xany-final-checkout-hero {
  max-height: clamp(170px, 24vh, 310px);
  transition:
    opacity .26s ease,
    transform .26s ease,
    max-height .34s ease,
    margin .34s ease,
    padding .34s ease,
    border-color .26s ease,
    box-shadow .26s ease;
  will-change: opacity, transform, max-height;
}

.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-preparing .xany-final-checkout-hero,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-payment-ready .xany-final-checkout-hero,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-mixed .xany-final-checkout-hero,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-empty .xany-final-checkout-hero,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-error .xany-final-checkout-hero {
  max-height: 0;
  margin-block: 0 !important;
  padding-block: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  opacity: 0;
  transform: translateY(-14px) scale(.985);
  overflow: hidden;
  pointer-events: none;
}

.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-preparing .xany-final-checkout-shell,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-payment-ready .xany-final-checkout-shell,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-mixed .xany-final-checkout-shell,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-empty .xany-final-checkout-shell,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-error .xany-final-checkout-shell {
  gap: clamp(18px, 2.2vw, 28px);
}

.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-preparing .xany-final-checkout-preparing,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-payment-ready .xany-final-checkout-payment,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-mixed .xany-final-checkout-payment,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-empty .xany-final-checkout-payment,
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-error .xany-final-checkout-error {
  min-height: clamp(460px, 62vh, 720px);
  animation: xanyFinalCheckoutFocusIn .34s cubic-bezier(.2,.75,.2,1) both;
}

.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-preparing [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-payment-ready [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-mixed [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-empty [data-xany-checkout-review-panel],
.xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-error [data-xany-checkout-review-panel] {
  max-height: 0;
  margin-block: 0 !important;
  padding-block: 0 !important;
  overflow: hidden;
}

@keyframes xanyFinalCheckoutFocusIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1180px) {
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-preparing .xany-final-checkout-view,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-payment-ready .xany-final-checkout-view,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-mixed .xany-final-checkout-view,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-empty .xany-final-checkout-view,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-error .xany-final-checkout-view {
    padding-top: clamp(18px, 2.4vh, 34px) !important;
  }
}

@media (max-width: 720px) {
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-preparing .xany-final-checkout-preparing,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-payment-ready .xany-final-checkout-payment,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-mixed .xany-final-checkout-payment,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-empty .xany-final-checkout-payment,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-error .xany-final-checkout-error {
    min-height: clamp(390px, 58vh, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xany-final-checkout-hero,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-preparing .xany-final-checkout-preparing,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-payment-ready .xany-final-checkout-payment,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-mixed .xany-final-checkout-payment,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-empty .xany-final-checkout-payment,
  .xany-home-v2-platform.is-final-checkout-mode.is-final-checkout-step-error .xany-final-checkout-error {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── animaciones de entrada a la vista ─── */
.xany-final-checkout-view.is-final-checkout-entering .xany-final-checkout-hero,
.xany-final-checkout-view.is-final-checkout-entering [data-xany-checkout-review-panel] {
  animation: xanyFinalCheckoutSectionRise .52s cubic-bezier(.2,.8,.2,1) both;
}

.xany-final-checkout-view.is-final-checkout-entering [data-xany-checkout-review-panel]:nth-of-type(2) {
  animation-delay: 90ms;
}

.xany-final-checkout-view.is-final-checkout-entering .xany-secure-payment-block {
  animation-delay: 160ms;
}

@keyframes xanyFinalCheckoutSectionRise {
  0% { opacity: 0; transform: translateY(18px) scale(.992); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ─── modo checkout — layout del shell ─── */
.xany-home-v2-platform.is-final-checkout-mode,
.xany-home-v2-platform[data-xany-current-view="checkout"],
.xany-home-v2-platform.is-final-checkout-mode .xany-home-layout,
.xany-home-v2-platform[data-xany-current-view="checkout"] .xany-home-layout,
.xany-home-v2-platform.is-final-checkout-mode .xany-home-main,
.xany-home-v2-platform[data-xany-current-view="checkout"] .xany-home-main,
.xany-home-v2-platform.is-final-checkout-mode .xany-home-hero,
.xany-home-v2-platform[data-xany-current-view="checkout"] .xany-home-hero,
.xany-home-v2-platform.is-final-checkout-mode .xany-home-hero-inner,
.xany-home-v2-platform[data-xany-current-view="checkout"] .xany-home-hero-inner {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.xany-home-v2-platform.is-final-checkout-mode .xany-home-hero-view:not([data-xany-hero-view="checkout"]),
.xany-home-v2-platform[data-xany-current-view="checkout"] .xany-home-hero-view:not([data-xany-hero-view="checkout"]) {
  display: none !important;
}

.xany-home-v2-platform.is-final-checkout-mode .xany-final-checkout-view,
.xany-home-v2-platform[data-xany-current-view="checkout"] .xany-final-checkout-view {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: clamp(86px, 12vh, 150px) !important;
}
