/* GrünFlex checkout — look matching Apple-blue mockup (#0071E3) */
.gf-checkout-page {
    --gf-ch-primary: #0071e3;
    --gf-ch-primary-hover: #0077ed;
    --gf-ch-accent: #0071e3;
    --gf-ch-violet: #0071e3;
    --gf-ch-cta-start: #0071e3;
    --gf-ch-cta-mid: #147ce5;
    --gf-ch-cta-end: #0071e3;
    --gf-ch-success: #16a34a;
    --gf-ch-bg: #eef3f9;
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    position: relative;
    background-color: #0b1220;
    background-image: none;
    overflow: hidden;
}

.gf-checkout-page > * {
    position: relative;
    z-index: 1;
}

/* Warzone wallpaper behind form + trust banner (navbar stays outside this block) */
.gf-checkout-page::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #0b1220;
    background-image: url("../img/checkout-bg.jpg?v=3");
    background-position: center 28%;
    background-size: cover;
    background-repeat: no-repeat;
}

.gf-checkout-main {
    position: relative;
    isolation: isolate;
    background-color: transparent;
}

.gf-checkout-main::before {
    display: none;
}

/* Hide legacy Carrito / Pago / Confirmación strip — wizard is the real stepper */
.gf-checkout-steps-bar {
    display: none !important;
}

.gf-checkout-main {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.gf-checkout-wizard {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.gf-checkout-wizard__steps {
    max-width: 420px;
    margin: 0 auto 1.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 42, 78, 0.06);
}

.gf-checkout-wizard__steps li.is-current .gf-checkout-wizard__num,
.gf-checkout-wizard__steps li.is-active .gf-checkout-wizard__num {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.35);
}

.gf-checkout-wizard__steps li.is-current .gf-checkout-wizard__label {
    color: #0071e3 !important;
    font-weight: 700;
}

.gf-checkout-wizard__kicker {
    display: none;
}

.gf-checkout-wizard__panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

/* —— Step 1 card —— */
.gf-ch-step1-form {
    animation: none !important;
    background: #fff !important;
    border: 1px solid #e4eaf2 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(16, 42, 78, 0.1) !important;
    padding: 1.65rem 1.5rem 1.4rem !important;
}

.gf-ch-step1-form::before,
.gf-ch-step1-form::after {
    display: none !important;
}

.gf-ch-step1-form__head {
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1.15rem !important;
    padding-bottom: 1.1rem !important;
    border-bottom: 1px solid #e8eef5 !important;
}

.gf-ch-step1-form__icon {
    animation: none !important;
    width: 52px !important;
    height: 52px !important;
    background: #0071e3 !important;
    box-shadow: 0 10px 22px rgba(0, 113, 227, 0.32) !important;
    border-radius: 14px !important;
    font-size: 1.25rem !important;
}

.gf-ch-step1-form__title {
    margin: 0 0 0.2rem !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0b1f3a !important;
}

.gf-ch-step1-form__subtitle {
    margin: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.gf-ch-step1-form__trust {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    list-style: none !important;
}

.gf-ch-step1-form__trust li {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem !important;
    padding: 0.9rem 0.85rem !important;
    border-radius: 14px !important;
    background: #f5f8fc !important;
    border: 1px solid #e2eaf3 !important;
    box-shadow: none !important;
    color: #0f2a4e !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    font-size: 0.75rem !important;
    line-height: 1.35;
    min-height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gf-ch-step1-form__trust li:hover {
    border-color: #c9dbf5 !important;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.08) !important;
}

.gf-ch-step1-form__trust li i {
    color: #0071e3;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.gf-ch-step1-form__trust li i.fa-whatsapp {
    color: #25d366 !important;
}

.gf-ch-step1-form__trust strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0b1f3a;
    letter-spacing: -0.01em;
}

.gf-ch-step1-form__trust small {
    display: block;
    font-size: 0.71875rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
}

.gf-ch-step1-input:hover,
.gf-ch-step1-input:focus {
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18) !important;
    transform: none !important;
}

.gf-ch-phone-row {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}

.gf-ch-phone-row .gf-ch-phone-group {
    flex: 1 1 auto;
    min-width: 0;
}

.gf-ch-phone-group {
    display: flex !important;
    align-items: stretch;
    width: 100%;
}

.gf-ch-phone-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.gf-ch-phone-flag__emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.gf-ch-phone-group .gf-ch-step1-input {
    border-radius: 0 12px 12px 0 !important;
}

.gf-ch-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    padding: 0 1rem;
    min-height: 3.15rem;
    border: 0;
    border-radius: 12px;
    background: #25d366;
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    transition: background 0.15s ease, transform 0.15s ease;
}

.gf-ch-wa-btn:hover {
    background: #1ebe57;
    color: #fff !important;
    transform: translateY(-1px);
}

.gf-ch-wa-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803d;
}

.gf-ch-wa-hint i {
    color: #16a34a;
}

.gf-ch-step1-field-hint {
    background: #eef6ff !important;
    border-color: #c9e0ff !important;
    color: #0b4ea2 !important;
    box-shadow: none !important;
}

.gf-ch-step1-field-hint i {
    color: #0071e3 !important;
}

.gf-ch-step1-actions::before {
    display: none !important;
}

.gf-ch-step1-cta {
    animation: none !important;
    background: #0071e3 !important;
    background-size: auto !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(0, 113, 227, 0.35) !important;
}

.gf-ch-step1-cta::before,
.gf-ch-step1-cta::after {
    display: none !important;
}

.gf-ch-step1-cta:hover,
.gf-ch-step1-cta:focus {
    background: #0077ed !important;
    filter: none;
    box-shadow: 0 14px 32px rgba(0, 113, 227, 0.42) !important;
}

.gf-ch-step1-cta__main .fa-lock {
    animation: none !important;
}

.gf-ch-step1-footnote {
    border-radius: 12px !important;
}

/* —— Sidebar —— */
.gf-checkout-summary {
    border-radius: 20px !important;
    border-color: #e4eaf2 !important;
    box-shadow: 0 12px 40px rgba(16, 42, 78, 0.1) !important;
}

.gf-checkout-summary__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gf-checkout-summary__title i {
    color: #0071e3;
}

.gf-checkout-totals .row-total .gf-ch-total-num {
    color: #0071e3 !important;
}

.gf-checkout-ship-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d !important;
    font-size: 0.75rem;
    font-weight: 800;
}

.gf-checkout-cuotas {
    flex-direction: column;
    gap: 0.65rem;
    background: #f7fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.gf-checkout-cuotas__text {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.4;
}

.gf-checkout-cuotas__text i {
    color: #0071e3;
    margin-top: 0.15rem;
}

.gf-checkout-pay-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.gf-checkout-pay-logos span,
.gf-checkout-pay-logos img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 0.55rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1e293b;
}

.gf-checkout-pay-logos img {
    height: 22px;
    width: auto;
    padding: 2px 6px;
    background: #111827;
}

.gf-checkout-secure-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.gf-checkout-secure-badge__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f2ff;
    color: #0071e3;
}

.gf-checkout-secure-badge strong {
    display: block;
    font-size: 0.875rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.gf-checkout-secure-badge p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Primary CTAs elsewhere in checkout */
.gf-btn-checkout,
.gf-checkout-wizard__next {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
}

.gf-btn-checkout:hover,
.gf-checkout-wizard__next:hover {
    background: #0077ed !important;
    border-color: #0077ed !important;
}

.gf-checkout-trust {
    display: none !important;
}

.gf-checkout-cuotas--banner {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    margin-top: 0.85rem !important;
}

.gf-checkout-cuotas-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* Payment method image cards */
.gf-flow-pay-option--banner {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 0.85rem !important;
    overflow: visible !important;
}

.gf-flow-pay-option__row--banner {
    display: block !important;
    position: relative;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 8px 22px rgba(15, 42, 78, 0.1);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gf-flow-pay-option__row--banner:hover {
    box-shadow: 0 12px 28px rgba(0, 113, 227, 0.16);
    transform: translateY(-1px);
}

.gf-flow-pay-option__row--banner:has(.gf-flow-pay-option__radio:checked),
.gf-flow-pay-option__row--banner:has(input:checked) {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18), 0 12px 28px rgba(0, 113, 227, 0.18);
}

/* Real radio is hidden; the banner art already shows the radio circle.
   Selection is shown with the blue border/ring on the card. */
.gf-flow-pay-option__row--banner .gf-flow-pay-option__radio {
    position: absolute !important;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    padding: 0;
}

.gf-flow-pay-banner {
    display: block;
    width: 100%;
    height: auto;
    max-height: 148px;
    object-fit: cover;
    object-position: left center;
    vertical-align: top;
}

@media (max-width: 767.98px) {
    .gf-flow-pay-banner {
        max-height: 120px;
        object-position: left center;
    }
}

@media (max-width: 991.98px) {
    .gf-checkout-page::before {
        background-position: center 22%;
    }

    .gf-ch-step1-form__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gf-ch-phone-row {
        flex-direction: column;
    }

    .gf-ch-wa-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .gf-ch-step1-form__trust {
        grid-template-columns: 1fr 1fr;
    }

    .gf-checkout-wizard__steps {
        border-radius: 16px;
        max-width: none;
    }
}
