/* ============================================================
   Capa de aislamiento — prevalece sobre temas de WordPress
   Cargar siempre DESPUÉS de frontend.css
   ============================================================ */

.aacb-checkout.aacb-isolated {
    isolation: isolate;
    position: relative;
    z-index: 0;
}

:where(
    .entry-content,
    .wp-block-post-content,
    .wp-block-group,
    .wp-site-blocks,
    .is-layout-constrained,
    h1, h2, h3, h4, h5, h6,
    p, li, ol, ul, figure, blockquote
) .aacb-checkout.aacb-isolated {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    color: var(--aacb-dark) !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-align: left !important;
}

.aacb-checkout.aacb-isolated *,
.aacb-checkout.aacb-isolated *::before,
.aacb-checkout.aacb-isolated *::after {
    box-sizing: border-box !important;
}

.aacb-checkout.aacb-isolated ol,
.aacb-checkout.aacb-isolated ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aacb-checkout.aacb-isolated li {
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.aacb-checkout.aacb-isolated button,
.aacb-checkout.aacb-isolated input,
.aacb-checkout.aacb-isolated select,
.aacb-checkout.aacb-isolated textarea {
    font: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.aacb-checkout.aacb-isolated button {
    appearance: none !important;
    -webkit-appearance: none !important;
}

.aacb-checkout.aacb-isolated .aacb-checkout-steps,
.aacb-checkout.aacb-isolated .progress-steps {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aacb-checkout.aacb-isolated .aacb-checkout-steps::before,
.aacb-checkout.aacb-isolated .progress-steps::before {
    display: none !important;
}

.aacb-checkout.aacb-isolated .aacb-step-pill,
.aacb-checkout.aacb-isolated .progress-steps .step {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 40px !important;
    padding: 8px 14px !important;
    border: 1px solid #b8b8b8 !important;
    border-radius: 999px !important;
    background: transparent !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--aacb-gray) !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.aacb-checkout.aacb-isolated .aacb-step-pill-num,
.aacb-checkout.aacb-isolated .step-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    border: 1px solid currentColor !important;
    border-radius: 50% !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    background: transparent !important;
}

.aacb-checkout.aacb-isolated .aacb-step-pill.is-active,
.aacb-checkout.aacb-isolated .aacb-step-pill.active,
.aacb-checkout.aacb-isolated .progress-steps .step.active {
    border-color: var(--aacb-accent) !important;
    background: var(--aacb-accent) !important;
    color: var(--aacb-black) !important;
    font-weight: 600 !important;
}

.aacb-checkout.aacb-isolated .aacb-step-pill.is-done,
.aacb-checkout.aacb-isolated .aacb-step-pill.completed,
.aacb-checkout.aacb-isolated .progress-steps .step.completed {
    border-color: var(--aacb-black) !important;
    background: var(--aacb-black) !important;
    color: var(--aacb-white) !important;
    font-weight: 600 !important;
}

.aacb-checkout.aacb-isolated .aacb-checkout-intro-title,
.aacb-checkout.aacb-isolated .form-title {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 12px !important;
    margin: 0 0 6px !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--aacb-black) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
}

.aacb-checkout.aacb-isolated .form-section h3 {
    margin: 0 !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--aacb-black) !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.aacb-checkout.aacb-isolated .aacb-section-header .aacb-step-num {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: var(--aacb-black) !important;
    color: var(--aacb-white) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    border: none !important;
}

.aacb-checkout.aacb-isolated .btn-primary.btn-submit,
.aacb-checkout.aacb-isolated .aacb-btn-pay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 16px 24px !important;
    border: none !important;
    background: var(--aacb-accent) !important;
    color: var(--aacb-black) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.aacb-checkout.aacb-isolated .form-section {
    background: var(--aacb-white) !important;
    border-radius: var(--aacb-radius-card) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
}

.aacb-checkout.aacb-isolated .form-group input[type="text"],
.aacb-checkout.aacb-isolated .form-group input[type="email"],
.aacb-checkout.aacb-isolated .form-group input[type="tel"],
.aacb-checkout.aacb-isolated .form-group input[type="date"],
.aacb-checkout.aacb-isolated .form-group select {
    display: block !important;
    width: 100% !important;
    border: none !important;
    border-radius: var(--aacb-radius-input) !important;
    padding: 14px 16px !important;
    min-height: 48px !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: var(--aacb-black) !important;
    background: var(--aacb-gray-light) !important;
    box-shadow: none !important;
}

@media (max-width: 520px) {
    .aacb-checkout.aacb-isolated .aacb-checkout-steps,
    .aacb-checkout.aacb-isolated .progress-steps {
        gap: 6px !important;
    }

    .aacb-checkout.aacb-isolated .aacb-step-pill,
    .aacb-checkout.aacb-isolated .progress-steps .step {
        gap: 6px !important;
        min-height: 34px !important;
        padding: 6px 10px !important;
        font-size: 0.6875rem !important;
    }

    .aacb-checkout.aacb-isolated .aacb-step-pill-num,
    .aacb-checkout.aacb-isolated .step-number {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.625rem !important;
    }

    .aacb-checkout.aacb-isolated .aacb-checkout-intro-title,
    .aacb-checkout.aacb-isolated .form-title {
        font-size: 1.625rem !important;
    }
}
