/* Carenli Direct Checkout 2.2.1 — clean responsive Checkout Block layout */
body.carenli-checkout .site-main,
body.carenli-checkout main {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

body.carenli-checkout .carenli-checkout-intro {
    max-width: 1080px;
    margin: 30px auto 18px;
    padding: 0 20px;
}

body.carenli-checkout .carenli-checkout-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

body.carenli-checkout .carenli-checkout-intro h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

body.carenli-checkout .carenli-checkout-lead {
    margin: 9px 0 0;
    font-size: 17px;
    line-height: 1.5;
    opacity: .76;
}

body.carenli-checkout .carenli-checkout-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

body.carenli-checkout .wc-block-checkout {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/*
 * Desktop geometry: keep the form and summary side-by-side without fixed
 * percentage widths. min-width:0 prevents intrinsic content from forcing wrap.
 */
@media (min-width: 782px) {
    body.carenli-checkout .wc-block-components-sidebar-layout {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: clamp(24px, 3vw, 38px);
    }

    body.carenli-checkout .wc-block-components-sidebar-layout > .wc-block-components-main {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
        padding-right: 0;
    }

    body.carenli-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
        flex: 0 1 390px;
        min-width: 300px;
        width: auto;
        max-width: 390px;
        margin-left: 0;
    }
}

body.carenli-checkout .wc-block-components-sidebar {
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid rgba(20, 54, 45, .12);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(20, 54, 45, .06);
    background: rgba(255, 255, 255, .72);
}

body.carenli-checkout .wc-block-components-main {
    box-sizing: border-box;
}

body.carenli-checkout .wc-block-components-checkout-step {
    margin-bottom: 18px;
}

body.carenli-checkout .wc-block-components-checkout-step__heading {
    margin-bottom: 12px;
}

body.carenli-checkout .wc-block-components-checkout-step__title {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

body.carenli-checkout .wc-block-components-checkout-step__description {
    font-size: 13px;
    line-height: 1.45;
}

body.carenli-checkout .wc-block-components-text-input input,
body.carenli-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.carenli-checkout .wc-block-components-address-form__country select {
    min-height: 48px;
    border-radius: 9px;
}

body.carenli-checkout .wc-block-components-order-summary,
body.carenli-checkout .wc-block-components-totals-wrapper {
    border-radius: 14px;
}

body.carenli-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-weight: 750;
    line-height: 1.3;
}

body.carenli-checkout .wc-block-components-totals-footer-item {
    padding-top: 14px;
    border-top: 1px solid rgba(20, 54, 45, .14);
}

body.carenli-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.carenli-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 19px;
    font-weight: 800;
}

body.carenli-checkout .wc-block-components-checkout-place-order-button {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
}

body.carenli-checkout .wc-block-components-checkout-place-order-button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

body.carenli-checkout .wc-block-components-checkout-return-to-cart-button {
    display: none !important;
}

body.carenli-checkout .wc-block-components-checkout-terms,
body.carenli-checkout .wc-block-components-checkbox__label {
    font-size: 13px;
    line-height: 1.45;
}

body.carenli-checkout .carenli-order-reassurance {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(20, 54, 45, .12);
}

body.carenli-checkout .carenli-order-reassurance__eyebrow {
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    opacity: .62;
}

body.carenli-checkout .carenli-order-reassurance h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

body.carenli-checkout .carenli-order-reassurance ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
}

body.carenli-checkout .carenli-order-reassurance li::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    font-weight: 800;
}

body.carenli-checkout .carenli-order-reassurance__payment {
    margin: 12px 0 0;
    padding-top: 11px;
    border-top: 1px solid rgba(20, 54, 45, .10);
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 781px) {
    body.carenli-checkout .carenli-checkout-intro {
        margin-top: 20px;
        margin-bottom: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    body.carenli-checkout .carenli-checkout-intro h1 {
        font-size: clamp(28px, 9vw, 36px);
    }

    body.carenli-checkout .carenli-checkout-lead {
        font-size: 16px;
    }

    body.carenli-checkout .carenli-checkout-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: 12px;
    }

    body.carenli-checkout .wc-block-checkout {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.carenli-checkout .wc-block-components-sidebar-layout {
        display: block;
    }

    body.carenli-checkout .wc-block-components-main,
    body.carenli-checkout .wc-block-components-sidebar {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    body.carenli-checkout .wc-block-components-sidebar {
        padding: 16px;
        margin-top: 8px;
        border-radius: 14px;
    }

    body.carenli-checkout .carenli-order-reassurance {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    body.carenli-checkout .wc-block-components-checkout-step {
        margin-bottom: 18px;
    }

    body.carenli-checkout .wc-block-components-checkout-place-order-button {
        min-height: 56px;
        width: 100%;
    }
}
