.tca-checkout-modal[hidden],
.tca-checkout-step[hidden],
.tca-checkout-other-email[hidden],
.tca-checkout-login-note[hidden] {
    display: none !important;
}

body.tca-checkout-is-open {
    overflow: hidden;
}

.tca-checkout-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tca-checkout-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(4, 4, 7, .82);
    border: 0;
    backdrop-filter: blur(9px);
    cursor: default;
}

.tca-checkout-modal__panel {
    --tca-checkout-accent: #ff9100;
    --tca-checkout-purple: #6c06eb;
    --tca-checkout-border: rgba(255,255,255,.13);
    position: relative;
    overflow: auto;
    width: min(calc(100vw - 32px), 620px);
    max-height: min(92vh, 760px);
    padding: clamp(24px, 3vw, 34px);
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgba(108,6,235,.25), transparent 34%),
        radial-gradient(circle at 5% 100%, rgba(255,145,0,.08), transparent 30%),
        linear-gradient(145deg, #202024, #111113);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 24px;
    box-shadow: 0 34px 90px rgba(0,0,0,.58);
}

.tca-checkout-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: rgba(255,255,255,.74);
    background: rgba(255,255,255,.06);
    border: 1px solid var(--tca-checkout-border);
    border-radius: 50%;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.tca-checkout-modal__close:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.tca-checkout-step h2 {
    max-width: 580px;
    margin: 5px 42px 10px 0;
    color: #fff;
    font-size: clamp(1.55rem, 3.4vw, 2.05rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.tca-checkout-eyebrow {
    display: inline-block;
    color: #ffc56f;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.tca-checkout-lead {
    margin: 0 0 24px;
    color: rgba(255,255,255,.7);
    font-size: .98rem;
    line-height: 1.55;
}

.tca-checkout-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tca-checkout-method {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 164px;
    padding: 20px 18px 18px;
    color: #fff;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--tca-checkout-border);
    border-radius: 17px;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.tca-checkout-method:hover,
.tca-checkout-method:focus-visible {
    transform: translateY(-2px);
    background: rgba(255,255,255,.075);
    border-color: rgba(255,145,0,.58);
}

.tca-checkout-method.is-recommended {
    border-color: rgba(255,145,0,.5);
    box-shadow: inset 0 0 0 1px rgba(255,145,0,.08);
}

.tca-checkout-method__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    color: #191919;
    background: var(--tca-checkout-accent);
    border-radius: 999px;
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tca-checkout-method__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    background: rgba(108,6,235,.2);
    border: 1px solid rgba(148,85,255,.28);
    border-radius: 13px;
    font-size: 1.35rem;
}

.tca-checkout-method strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 1.03rem;
}

.tca-checkout-method small {
    color: rgba(255,255,255,.62);
    font-size: .82rem;
    line-height: 1.5;
}

.tca-checkout-security {
    margin: 20px 0 0;
    color: rgba(255,255,255,.55);
    font-size: .75rem;
    line-height: 1.45;
    text-align: center;
}

.tca-checkout-back {
    margin: 0 0 18px;
    padding: 0;
    color: rgba(255,255,255,.72);
    background: transparent;
    border: 0;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
}

.tca-checkout-back:hover {
    color: var(--tca-checkout-accent);
}

.tca-checkout-card-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tca-checkout-field {
    min-width: 0;
}

.tca-checkout-field.is-wide,
.tca-checkout-card-form .is-wide {
    grid-column: 1 / -1;
}

.tca-checkout-field label,
.tca-checkout-other-email label {
    display: block;
    margin: 0 0 7px;
    color: rgba(255,255,255,.75);
    font-size: .73rem;
    font-weight: 800;
}

.tca-checkout-card-form input,
.tca-checkout-card-form select,
.tca-checkout-account-form input[type="email"],
.tca-checkout-sdk-field {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    color: #fff;
    background: #29292e;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    font: inherit;
}

.tca-checkout-card-form input {
    caret-color: #fff;
}

.tca-checkout-sdk-field,
.tca-checkout-sdk-field > div,
.tca-checkout-sdk-field iframe {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

.tca-checkout-sdk-field {
    overflow: hidden !important;
}

.tca-checkout-sdk-field > div,
.tca-checkout-sdk-field iframe {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.tca-checkout-sdk-field {
    padding: 13px;
}

.tca-checkout-card-form select option {
    color: #171717;
}

.tca-checkout-card-form input:focus,
.tca-checkout-card-form select:focus,
.tca-checkout-account-form input[type="email"]:focus,
.tca-checkout-sdk-field:focus-within {
    outline: 2px solid var(--tca-checkout-accent);
    outline-offset: 1px;
    border-color: transparent;
}

.tca-checkout-account-form {
    display: grid;
    gap: 11px;
}

.tca-checkout-radio,
.tca-checkout-confirm {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px;
    color: #fff;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--tca-checkout-border);
    border-radius: 12px;
    cursor: pointer;
}

.tca-checkout-radio input,
.tca-checkout-confirm input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--tca-checkout-accent);
}

.tca-checkout-radio strong,
.tca-checkout-radio small {
    display: block;
}

.tca-checkout-radio strong {
    font-size: .88rem;
}

.tca-checkout-radio small,
.tca-checkout-confirm span {
    color: rgba(255,255,255,.62);
    font-size: .76rem;
    line-height: 1.45;
}

.tca-checkout-other-email {
    padding: 4px 1px 5px;
}

.tca-checkout-feedback {
    min-height: 0;
    color: rgba(255,255,255,.76);
    font-size: .8rem;
    line-height: 1.45;
}

.tca-checkout-feedback:not(:empty) {
    padding: 11px 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--tca-checkout-border);
    border-radius: 9px;
}

.tca-checkout-feedback.is-error {
    color: #ffd5da;
    background: rgba(255,62,85,.1);
    border-color: rgba(255,96,113,.36);
}

.tca-checkout-feedback.is-success {
    color: #c8ffe2;
    background: rgba(28,190,111,.1);
    border-color: rgba(56,215,135,.35);
}

.tca-payment-method-entry {
    display: inline-flex;
    max-width: 100%;
}

.tca-payment-method-entry .tca-ui-button {
    width: auto !important;
}

.tca-payment-method-unavailable {
    display: inline-block;
    max-width: 620px;
    color: rgba(255,255,255,.62);
    font-size: .75rem;
    line-height: 1.5;
}

.tca-payment-method-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: -5px 0 20px;
    padding: 12px 14px;
    color: rgba(255,255,255,.68);
    background: rgba(108,6,235,.10);
    border: 1px solid rgba(148,85,255,.22);
    border-radius: 11px;
    font-size: .78rem;
    line-height: 1.45;
}

.tca-payment-method-summary strong {
    color: #fff;
}

.tca-checkout-visually-hidden {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tca-checkout-modal .tca-ui-button[disabled] {
    opacity: .62;
    cursor: wait !important;
    transform: none !important;
}

/*
 * Aislamiento defensivo. El shortcode puede insertarse dentro de landings
 * que aplican estilos globales con !important a todos los botones, inputs e
 * iframes. Estas reglas describen por completo los controles del checkout y
 * evitan que una regla comercial convierta el backdrop, la X o Volver en un
 * CTA de ancho completo.
 */
.tca-checkout-modal,
.tca-checkout-modal *,
.tca-checkout-modal *::before,
.tca-checkout-modal *::after {
    box-sizing: border-box !important;
}

.tca-checkout-modal {
    position: fixed !important;
    z-index: 999999 !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 16px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.tca-checkout-modal button.tca-checkout-modal__backdrop {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: transparent !important;
    background: rgba(4, 4, 7, .82) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    cursor: default !important;
    appearance: none !important;
}

.tca-checkout-modal__panel {
    position: relative !important;
    z-index: 1 !important;
    isolation: isolate !important;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    width: min(calc(100vw - 32px), 620px) !important;
    max-width: 620px !important;
    max-height: min(92vh, 760px) !important;
    max-height: min(92dvh, 760px) !important;
    margin: 0 !important;
    padding: clamp(24px, 3vw, 34px) !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(108,6,235,.25), transparent 34%),
        radial-gradient(circle at 5% 100%, rgba(255,145,0,.08), transparent 30%),
        linear-gradient(145deg, #202024, #111113) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 22px !important;
    box-shadow: 0 34px 90px rgba(0,0,0,.58) !important;
    transform: none !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255,255,255,.35) transparent !important;
}

.tca-checkout-modal button.tca-checkout-modal__close {
    position: absolute !important;
    z-index: 3 !important;
    top: 13px !important;
    right: 13px !important;
    inset-inline-start: auto !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    color: rgba(255,255,255,.78) !important;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font: 500 1.55rem/1 Arial, sans-serif !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
    cursor: pointer !important;
    appearance: none !important;
}

.tca-checkout-modal button.tca-checkout-modal__close:hover,
.tca-checkout-modal button.tca-checkout-modal__close:focus-visible {
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    border-color: rgba(255,145,0,.55) !important;
    transform: none !important;
}

.tca-checkout-modal button.tca-checkout-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    height: auto !important;
    min-height: 34px !important;
    max-height: none !important;
    margin: 0 0 14px !important;
    padding: 6px 9px !important;
    color: rgba(255,255,255,.72) !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font: 750 .82rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
    cursor: pointer !important;
    appearance: none !important;
}

.tca-checkout-modal button.tca-checkout-back:hover,
.tca-checkout-modal button.tca-checkout-back:focus-visible {
    color: #ffb34d !important;
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(255,145,0,.42) !important;
    transform: none !important;
}

.tca-checkout-modal button.tca-checkout-method {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 164px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 20px 18px 18px !important;
    color: #fff !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
    cursor: pointer !important;
    appearance: none !important;
}

.tca-checkout-modal button.tca-checkout-method.is-recommended {
    border-color: rgba(255,145,0,.55) !important;
    box-shadow: inset 0 0 0 1px rgba(255,145,0,.08) !important;
}

.tca-checkout-modal button.tca-checkout-method:hover,
.tca-checkout-modal button.tca-checkout-method:focus-visible {
    color: #fff !important;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,145,0,.68) !important;
    box-shadow: none !important;
    transform: translateY(-2px) !important;
}

.tca-checkout-modal .tca-checkout-method strong,
.tca-checkout-modal .tca-checkout-method small {
    width: auto !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left !important;
    text-transform: none !important;
}

.tca-checkout-modal .tca-checkout-method strong {
    display: block !important;
    margin-bottom: 6px !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
}

.tca-checkout-modal .tca-checkout-method small {
    display: block !important;
    color: rgba(255,255,255,.64) !important;
    font-size: .79rem !important;
    font-weight: 500 !important;
    line-height: 1.42 !important;
}

.tca-checkout-modal .tca-checkout-method__icon {
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: rgba(108,6,235,.2) !important;
    border: 1px solid rgba(148,85,255,.28) !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

.tca-checkout-modal .tca-checkout-method__badge {
    top: 10px !important;
    right: 10px !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 5px 8px !important;
    color: #191919 !important;
    background: #ff9100 !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: .58rem !important;
    line-height: 1.1 !important;
}

.tca-checkout-modal .tca-checkout-step h2 {
    max-width: 520px !important;
    margin: 5px 46px 10px 0 !important;
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    font: 850 clamp(1.55rem, 3.4vw, 2.05rem)/1.12 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: -.035em !important;
    text-align: left !important;
    text-transform: none !important;
}

.tca-checkout-modal .tca-checkout-eyebrow {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffc56f !important;
    background: transparent !important;
    border: 0 !important;
    font-size: .69rem !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    letter-spacing: .11em !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

.tca-checkout-modal .tca-checkout-lead {
    margin: 0 0 20px !important;
    padding: 0 !important;
    color: rgba(255,255,255,.7) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: .94rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.tca-checkout-modal .tca-checkout-card-form input:not(.tca-checkout-visually-hidden),
.tca-checkout-modal .tca-checkout-card-form select:not(.tca-checkout-visually-hidden),
.tca-checkout-modal .tca-checkout-account-form input[type="email"],
.tca-checkout-modal .tca-checkout-sdk-field {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 12px 13px !important;
    color: #fff !important;
    background: #29292e !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font: 500 .94rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-align: left !important;
    transform: none !important;
    appearance: auto !important;
}

.tca-checkout-modal .tca-checkout-sdk-field {
    overflow: hidden !important;
    padding: 0 12px !important;
}

.tca-checkout-modal .tca-checkout-sdk-field > div,
.tca-checkout-modal .tca-checkout-sdk-field iframe {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.tca-checkout-modal .tca-checkout-radio input,
.tca-checkout-modal .tca-checkout-confirm input {
    flex: 0 0 auto !important;
    display: inline-block !important;
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    accent-color: #ff9100 !important;
}

.tca-checkout-modal button.tca-ui-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 48px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    color: #171717 !important;
    background: #ff9100 !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font: 850 .9rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
    cursor: pointer !important;
    appearance: none !important;
}

.tca-checkout-modal button.tca-ui-button:hover,
.tca-checkout-modal button.tca-ui-button:focus-visible {
    color: #ff9100 !important;
    background: #171717 !important;
    border-color: #ff9100 !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 620px) {
    .tca-checkout-modal {
        align-items: end;
        padding: 0;
    }

    .tca-checkout-modal__panel {
        width: 100%;
        max-height: 94vh;
        padding: 28px 18px calc(24px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }

    .tca-checkout-methods,
    .tca-checkout-card-form {
        grid-template-columns: 1fr;
    }

    .tca-checkout-method {
        min-height: 145px;
    }

    .tca-checkout-field.is-wide,
    .tca-checkout-card-form .is-wide {
        grid-column: auto;
    }

    .tca-checkout-modal .tca-ui-button {
        width: 100% !important;
    }
}

@media (max-width: 620px) {
    .tca-checkout-modal {
        align-items: end !important;
        justify-items: stretch !important;
        padding: 0 !important;
    }

    .tca-checkout-modal__panel {
        width: 100% !important;
        max-width: none !important;
        max-height: 94vh !important;
        max-height: 94dvh !important;
        padding: 26px 18px calc(22px + env(safe-area-inset-bottom)) !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .tca-checkout-modal .tca-checkout-methods,
    .tca-checkout-modal .tca-checkout-card-form {
        grid-template-columns: 1fr !important;
    }

    .tca-checkout-modal button.tca-checkout-method {
        min-height: 128px !important;
        padding: 17px !important;
    }

    .tca-checkout-modal .tca-checkout-step h2 {
        margin-right: 42px !important;
        font-size: clamp(1.45rem, 7.2vw, 1.9rem) !important;
    }

    .tca-checkout-modal .tca-checkout-field.is-wide,
    .tca-checkout-modal .tca-checkout-card-form .is-wide {
        grid-column: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tca-checkout-method {
        transition: none;
    }
}
