 :root {

    --bg: #f5f5f2;
    --surface: #ffffff;

    --text: #151515;
    --muted: #707070;

    --line: #e5e5df;

    --dark: #171717;
    --soft: #f0f0eb;

    --danger: #9d1c1c;
    --success: #176a3a;

    --radius: 18px;

}


* {

    box-sizing: border-box;

}


body {

    margin: 0;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);

    color: var(--text);

}


.hidden {

    display: none !important;

}


/* PÁGINA */

.checkout-page {

    min-height: 100vh;

    padding: 48px 20px;

}


.checkout-shell {

    width: min(1180px, 100%);

    margin: 0 auto;

}


/* MARCA */

.brand {

    margin-bottom: 28px;

}


.brand-name {

    font-weight: 900;

    letter-spacing: .12em;

    font-size: 28px;

}


.brand p {

    margin: 6px 0 0;

    color: var(--muted);

}


/* GRID */

.checkout-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(340px, .8fr);

    gap: 24px;

    align-items: start;

}


/* PAINEL */

.panel {

    background: var(--surface);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    padding: 32px;

    box-shadow:
        0 12px 40px
        rgba(0, 0, 0, .04);

}


.eyebrow {

    display: block;

    font-size: 12px;

    letter-spacing: .12em;

    font-weight: 800;

    color: var(--muted);

    margin-bottom: 12px;

}


h1 {

    margin: 0;

    font-size:
        clamp(
            28px,
            4vw,
            44px
        );

    line-height: 1.05;

}


.intro {

    color: var(--muted);

    margin:
        14px
        0
        28px;

}


/* CAMPOS */

.fields-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

}


.field {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.field-full {

    grid-column:
        1 / -1;

}


label {

    font-size: 14px;

    font-weight: 700;

}


input {

    width: 100%;

    border:
        1px solid
        #d8d8d2;

    border-radius: 10px;

    background: #fff;

    min-height: 48px;

    padding:
        0 14px;

    font: inherit;

    outline: none;

}


input:focus {

    border-color: #777;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, .06);

}


/* PAGAMENTO */

.payment-panel {

    position: sticky;

    top: 24px;

}


.summary-row,
.total-row {

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

}


.summary-row {

    margin-bottom: 20px;

}


.total-row {

    font-size: 20px;

    margin:
        24px 0;

}


hr {

    border: 0;

    border-top:
        1px solid
        var(--line);

    margin:
        24px 0;

}


/* PIX */

.pix-warning {

    padding: 14px;

    border-radius: 10px;

    background: #fff7df;

    line-height: 1.5;

    margin-bottom: 20px;

}


.qr-code {

    width: 220px;

    min-height: 220px;

    margin:
        8px auto 20px;

    display: grid;

    place-items: center;

}


.qr-code canvas,
.qr-code img {

    max-width: 100%;

    height: auto;

}


.copy-row {

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 8px;

    margin-top: 8px;

}


/* BOTÕES */

.secondary-button,
.primary-button {

    border: 0;

    border-radius: 10px;

    font: inherit;

    font-weight: 800;

    cursor: pointer;

}


.secondary-button {

    padding:
        0 18px;

    background: var(--soft);

    color: var(--text);

}


.primary-button {

    width: 100%;

    min-height: 54px;

    background: var(--dark);

    color: #fff;

    padding:
        0 20px;

}


.primary-button:disabled {

    opacity: .55;

    cursor: wait;

}


/* TEXTOS */

.payment-help,
.security-note,
.receipt-box small {

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;

}


/* COMPROVANTE */

.receipt-box {

    margin-top: 24px;

    padding: 18px;

    border:
        1px dashed
        #cfcfc8;

    border-radius: 12px;

}


.receipt-box input {

    border: 0;

    padding:
        12px 0 4px;

    min-height: auto;

}


/* MENSAGENS */

.message {

    padding:
        16px 18px;

    border-radius: 12px;

    margin-bottom: 20px;

    background: #fff;

    border:
        1px solid
        var(--line);

}


.message.error {

    color: var(--danger);

    border-color: #e4b6b6;

}


.message.success {

    color: var(--success);

    border-color: #afd3bd;

}


/* RESPONSIVO */

@media (max-width: 850px) {

    .checkout-page {

        padding:
            28px 14px;

    }


    .checkout-grid {

        grid-template-columns:
            1fr;

    }


    .payment-panel {

        position: static;

    }

}


@media (max-width: 560px) {

    .panel {

        padding:
            22px 18px;

    }


    .fields-grid {

        grid-template-columns:
            1fr;

    }


    .field-full {

        grid-column: auto;

    }


    .copy-row {

        grid-template-columns:
            1fr;

    }


    .secondary-button {

        min-height: 46px;

    }

}

/* Integração WooCommerce / Rede Itaú */
.card-simulator-box {
    margin-top: 10px;
    padding: 18px;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    background: #fafbfc;
}
.card-simulator-box > strong {
    display: block;
    margin-bottom: 7px;
}
.card-simulator-box > p {
    margin: 0 0 16px;
    color: #6d737c;
    font-size: 13px;
    line-height: 1.5;
}

/* Cupom de desconto */
.coupon-box { margin: 20px 0 14px; }
.coupon-box label { display: block; margin-bottom: 8px; font-weight: 600; }
.coupon-input-row { display: flex; gap: 8px; }
.coupon-input-row input { flex: 1; min-width: 0; padding: 12px; border: 1px solid #d3d8de; border-radius: 6px; }
.coupon-box small { display: block; margin-top: 8px; line-height: 1.5; }
@media(max-width:420px){.coupon-input-row{flex-wrap:wrap}.coupon-input-row button{width:100%}}
