/*
 * Cursos AB — página de checkout / carrito
 */

body.checkout-shortcode-only .site-header,
body.has-cursos-ab-checkout .site-header {
    position: relative;
    z-index: 2;
}

body.checkout-shortcode-only #site-main,
body.has-cursos-ab-checkout #site-main.site-main--checkout {
    padding: 0 !important;
}

body.checkout-shortcode-only .entry-title,
body.checkout-shortcode-only .checkout-shortcode-page .entry-title {
    display: none;
}

.cursos-ab-checkout {
    position: relative;
    min-height: min(100vh, 100dvh);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    padding-inline: clamp(1rem, 4vw, 2rem);
    isolation: isolate;
    overflow: hidden;
}

.cursos-ab-checkout__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.04);
    pointer-events: none;
}

.cursos-ab-checkout__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(36rem, 100%);
    margin-inline: auto;
}

.cursos-ab-checkout__card {
    background: var(--ab-white, #fff);
}

.cursos-ab-checkout__badge {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bs-primary);
    background: rgba(92, 20, 24, 0.08);
    border-radius: var(--bs-border-radius-lg);
    padding: 0.5rem 0.85rem;
    display: inline-block;
}

.cursos-ab-checkout__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--ab-secondary, #1f1f1f);
    letter-spacing: -0.02em;
}

.cursos-ab-checkout__lead {
    font-family: var(--font-sans);
    font-size: var(--fs-body, 1.0625rem);
    line-height: 1.55;
}

.cursos-ab-checkout__summary {
    background: var(--ab-cream-panel, #f7f5f2);
}

.cursos-ab-checkout__product {
    font-family: var(--font-sans);
    font-size: var(--fs-body-lg, 1.125rem);
    color: var(--ab-text, #2b2b2b);
}

.cursos-ab-checkout__product-note {
    font-family: var(--font-sans);
    line-height: 1.5;
}

.checkout-payment-area .btn,
.checkout-payment-area button[type='submit'],
.checkout-payment-area input[type='submit'],
.checkout-payment-area input[type='button'] {
    border-radius: var(--bs-border-radius-pill);
}

.checkout-payment-empty {
    line-height: 1.55;
}

.cursos-ab-checkout__back-link {
    font-family: var(--font-sans);
    font-size: var(--fs-small, 0.8125rem);
    font-weight: 600;
    color: var(--bs-primary);
    text-decoration: none;
}

.cursos-ab-checkout__back-link:hover {
    text-decoration: underline;
}
