/* ─── Intercept Brasil – Checkout CSS ──────────────────────────────────────── */

/* ─── Tipografia base ────────────────────────────────────────────────────────*/
/* Segue o padrão do site: TIActuBeta → Tahoma → Helvetica → Arial → sans-serif */

.intercept-checkout-wrap,
.intercept-checkout-wrap *,
.checkout-header,
.checkout-header * {
    font-family: TIActuBeta, Tahoma, Helvetica, Arial, sans-serif;
}

/* Textos gerais: preto suave do site em vez de #000 puro */
.intercept-checkout-wrap { color: #1a1a1a; }

/* ─── Header do Checkout ─────────────────────────────────────────────────────*/

.checkout-header {
    width: 100%;
    background: transparent;
}

.checkout-header__banner {
    display: none; /* não usado no novo layout dark */
}

.checkout-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* alinha com o layout interno (max-width 1060px + padding lateral da wrap) */
    max-width: calc(1060px + 2.5rem);
    margin: 0 auto;
    padding: 1.25rem 1.25rem 0;
    background: transparent;
    border-bottom: none;
    position: relative;
    min-height: 0;
}

/* Sem perfil circular no novo layout */
.checkout-header__profile {
    display: none;
}

.checkout-header__back {
    font-size: .8125rem;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .25rem;
    transition: color .2s;
    white-space: nowrap;
}

.checkout-header__back:hover {
    color: #fff;
    text-decoration: none;
}

.checkout-header__logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* Logo SVG — branca sobre fundo dark */
.checkout-header__logo {
    width: auto;
    height: clamp(44px, 5.5vw, 64px);
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1); /* força branco independente da cor do SVG */
}

/* ─── Google Translate ───────────────────────────────────────────────────────*/

.checkout-header__translate .goog-te-gadget-simple {
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 4px !important;
    padding: .25rem .5rem !important;
    font-size: .8125rem !important;
    background: rgba(255,255,255,.08) !important;
    cursor: pointer;
}

.checkout-header__translate .goog-te-gadget-simple span,
.checkout-header__translate .goog-te-gadget-simple a {
    color: rgba(255,255,255,.7) !important;
    font-family: inherit !important;
    text-decoration: none !important;
}

/* Esconde só a barra "Traduzido por Google" no topo — preserva o dropdown */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ─── Fundo dark da página de checkout ──────────────────────────────────────*/

body.woocommerce-checkout {
    background: #000;
    color: #fff;
}

/* ─── Wrapper da página ──────────────────────────────────────────────────────*/

.intercept-checkout-wrap {
    /* Em telas comuns: ocupa quase 100vh.
       Em telas muito altas (>1080px): limita a 1080px e centraliza verticalmente
       para não criar área preta vazia no rodapé. */
    min-height: clamp(600px, calc(100vh - 130px), 1080px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem 4rem;
    background: #000000;
}

/* Layout duas colunas: hero (esquerda) + card (direita) */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 460px);
    gap: 60px;
    align-items: start;
    width: 100%;
    max-width: 1060px;
}

/* Hero — texto de chamada */
.checkout-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

/* Desktop: hero centralizado verticalmente em relação ao card */
@media (min-width: 901px) {
    .checkout-hero {
        align-self: stretch; /* estica até a altura do card no grid */
        min-height: 100%;
    }
}

.checkout-hero__title {
    font-size: clamp(1.25rem, 4.5vw, 2.75rem);
    font-family: TIActuBeta, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0;
    max-width: 22ch; /* permite "você torna isso possível." caber em uma linha */
}

/* Linha branca e linha roxa — display block para quebrar */
.checkout-hero__title-line {
    display: block;
    color: #fff;
}

/* No mobile, ignora os <br> dentro do título — texto quebra natural */
@media (max-width: 900px) {
    .checkout-hero__title-line br,
    .checkout-hero__title-accent br { display: none; }
}

.checkout-hero__title-accent {
    display: block;
    color: #6653ff;
    margin-top: 0.18em;
}

.checkout-hero__desc {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,.7);
    margin: 20px 0 0;
    max-width: 26rem;
}

/* Card do formulário */
.intercept-checkout-wrap .checkout-card {
    background: #F3F1F6;
    border-radius: 28px;
    padding: 0;
    width: 100%;
    border: none;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    overflow: hidden;
    color: #111;
}

/* Área interna do card (abaixo do header roxo) */
.intercept-checkout-wrap .checkout-card > form,
.intercept-checkout-wrap .checkout-card > .woocommerce {
    padding: 1.25rem 1.5rem 1.75rem;
}

/* ─── Título — header roxo do card ──────────────────────────────────────────*/

.checkout-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #5648f5, #6a5bff);
    padding: 1.125rem 1.5rem;
    /* puxa para fora do padding do <form> e cola no topo do card */
    margin-top: -1.25rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: 1.5rem;
    /* arredonda apenas os cantos superiores */
    border-radius: 28px 28px 0 0;
}

/* ─── Abas Pontual / Mensal ──────────────────────────────────────────────────*/

.checkout-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border: 1px solid #cfd2da;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .75rem;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

/* Texto explicativo logo abaixo das abas — pill roxo centralizado */
.checkout-tab-helper {
    width: fit-content;
    max-width: 100%;
    background: linear-gradient(90deg, #5d4fff, #6f5bff);
    color: #ffffff;
    font-size: .8125rem;
    font-weight: 500;
    text-align: center;
    padding: .5rem 1.125rem;
    border-radius: 9999px;
    margin: 0 auto 1.25rem;
    line-height: 1.4;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(107, 70, 193, .25);
}

.tab-btn {
    min-height: 48px;
    padding: .75rem 1rem;
    font-size: .9375rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #6653ff;
    cursor: pointer;
    transition: background .18s, color .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    line-height: 1;
    /* Defesa webview Android (Instagram/FB in-app) */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(102, 83, 255, 0.15);
    user-select: none;
    -webkit-user-select: none;
    font-family: inherit;
    border-radius: 999px;
}

.tab-btn:hover:not(.active) { background: rgba(102,83,255,.07); }

.tab-btn.active {
    background: linear-gradient(90deg, #5d4fff, #6f5bff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(102,83,255,.22);
}

.tab-icon { flex-shrink: 0; }

/* ─── Grid de valores ────────────────────────────────────────────────────────*/

.tab-panel { margin-bottom: 1.25rem; }

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    background: #F0EEF3;
    border-radius: 18px;
    border: 1px solid #d7d3dd;
}

.amount-btn {
    min-height: 56px;
    padding: .875rem .5rem;
    font-size: .9375rem;
    font-weight: 600;
    color: #222;
    background: #fff;
    border: 1px solid #cfd2da;
    border-radius: 14px;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
    /* Defesa webview Android (Instagram/FB in-app) */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(102, 83, 255, 0.15);
    user-select: none;
    -webkit-user-select: none;
}

.amount-btn:hover:not(.selected) {
    border-color: #6653ff;
    color: #6653ff;
}

/* "Outro valor" sempre com borda/cor do hover (mesmo sem hover) */
.amount-btn.amount-custom:not(.selected) {
    border-color: #6653ff;
    color: #222;
}

.amount-btn.amount-custom:not(.selected):hover {
    border-color: #6653ff;
    color: #6653ff;
}

.amount-btn.selected {
    background: linear-gradient(90deg, #5d4fff, #6f5bff);
    border-color: #6653ff;
    color: #fff;
    box-shadow: 0 8px 18px rgba(102,83,255,.2);
}

/* ─── Campo valor customizado ────────────────────────────────────────────────*/

.custom-amount-wrap { margin-bottom: 1.25rem; }

/* Container com borda unificada — foca como um bloco só */
.custom-amount-field {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #cfd2da;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    height: 56px;
}

.custom-amount-field:focus-within {
    border-color: #6653ff;
    box-shadow: 0 0 0 3px rgba(102,83,255,.15);
}

.custom-amount-field.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

/* Prefixo R$ */
.custom-amount-prefix {
    padding: 0 .75rem 0 1.125rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    border-right: 1.5px solid #e5e7eb;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Input em si — sem bordas próprias */
.custom-amount-input {
    flex: 1;
    min-width: 0;
    padding: 0 .75rem;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: inherit;
    color: #111;
    outline: none;
    height: 100%;
    -moz-appearance: textfield;
}

.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-amount-input::placeholder {
    color: #b0b4bb;
    font-weight: 400;
}

/* Hint "mín. R$ 5" à direita */
.custom-amount-hint {
    padding: 0 1rem 0 .25rem;
    font-size: .75rem;
    color: #aaa;
    white-space: nowrap;
    flex-shrink: 0;
}

.custom-amount-input.input-error {
    color: #ef4444;
}

/* ─── Disclaimer de privacidade WC ──────────────────────────────────────────*/
.woocommerce-privacy-policy-text { display: none !important; }

/* ─── CEP (assinatura cartão) ────────────────────────────────────────────────*/

.intercept-cep-wrap {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d1d5db;
}

/* Label dentro do payment_box: bg cinza para não rasgar a borda */
.woocommerce-checkout #payment div.payment_box .form-row > label,
.intercept-cep-wrap .form-row > label {
    background: #fafafa;
}

.intercept-cep-feedback {
    display: block;
    font-size: .78rem;
    margin-top: .3rem;
    min-height: 1rem;
}
.intercept-cep-feedback.cep-ok    { color: #10b981; }
.intercept-cep-feedback.cep-error { color: #ef4444; }

/* Cidade e UF lado a lado dentro do CEP manual */
.intercept-cep-inline {
    display: flex;
    gap: .75rem;
}
.intercept-cep-inline .form-row { flex: 1; }

/* ─── Pre-init: oculta elementos até o JS inicializar ───────────────────────*/
/*
 * O <body> começa com a classe `intercept-pre-init` (adicionada via PHP).
 * O CSS com !important sobrepõe inline styles (ex: style="display:block")
 * que o WooCommerce injeta via .show() nos handlers de updated_checkout.
 * O JS remove a classe APÓS ocultar os elementos via inline style,
 * transferindo o controle para o JS sem flash visível.
 */

/* Lista de gateways WC (radios + labels nativos) — substituídos pelos nossos botões */
/* !important permanente: nunca precisamos reexibir estes via JS */
.intercept-checkout-wrap #payment .payment_methods > li > label,
.intercept-checkout-wrap #payment .payment_methods > li > input[type="radio"] {
    display: none !important;
}

/* ─── Esconde overlay translúcido do WC blockUI ─────────────────────────────
 * jQuery BlockUI injeta <div class="blockUI blockOverlay"> sobre #order_review
 * durante AJAX (update_order_review, place_order). Em webview Instagram Meta
 * com event loop saturado, esse overlay pode ficar preso e bloquear cliques
 * nos botões PIX/Cartão. Como DOAR já tem state machine própria (via
 * state.gatewaySelected), esse overlay é desnecessário no nosso fluxo.
 * Mantém .blockUI.blockMsg (spinner) visível pra feedback durante AJAX.
 */
.intercept-checkout-wrap .blockUI.blockOverlay {
    display: none !important;
}

/* Campos de dados e payment_box: ocultos até o JS inicializar */
.intercept-checkout-wrap .woocommerce-billing-fields,
.intercept-checkout-wrap #payment .payment_methods .payment_box {
    display: none;
}

/* Com intercept-pre-init: !important sobrepõe o .show() do WC durante AJAX */
body.intercept-pre-init .intercept-checkout-wrap .woocommerce-billing-fields,
body.intercept-pre-init .intercept-checkout-wrap #payment .payment_methods .payment_box {
    display: none !important;
}

/* Headings desnecessários */
.intercept-checkout-wrap .woocommerce-billing-fields > h3,
.intercept-checkout-wrap .woocommerce-billing-fields__field-wrapper + h3 { display: none !important; }

.intercept-checkout-wrap .col2-set { width: 100%; }
.intercept-checkout-wrap .col2-set .col-1,
.intercept-checkout-wrap .col2-set .col-2 { float: none; width: 100%; }

.intercept-checkout-wrap .woocommerce-additional-fields { display: none !important; }

.intercept-checkout-wrap .col2-set::after {
    content: '';
    display: table;
    clear: both;
}

/* ─── Campos de billing WC — Floating Label ──────────────────────────────────*/

.intercept-checkout-wrap .woocommerce-input-wrapper { display: block; }

.intercept-checkout-wrap .form-row {
    position: relative;
    padding: .625rem 0 0;  /* espaço superior para o label flutuante não ser cortado */
    margin: 0 0 1rem;
}

/* Label flutua sobre a borda do input */
.intercept-checkout-wrap .form-row > label {
    position: absolute;
    left: .7rem;
    /* centrado no input: form-row padding (.625rem) + metade do input (52px/2=26px) */
    top: calc(.625rem + 26px);
    transform: translateY(-50%);
    font-size: .9375rem;
    font-weight: 400;
    color: #9ca3af;
    background: #fff;
    padding: 0 .25rem;
    line-height: 1;
    margin: 0;
    pointer-events: none;
    transition: top .15s ease, font-size .15s ease, color .15s ease, transform .15s ease;
    z-index: 1;
    white-space: nowrap;
}

/* Label flutuado: sobe para cima da borda do input */
.intercept-checkout-wrap .form-row.fl-focused > label,
.intercept-checkout-wrap .form-row.fl-filled > label {
    top: .65rem;
    transform: translateY(-50%);
    font-size: .72rem;
    color: #6b7280;
}

.intercept-checkout-wrap .form-row.fl-focused > label {
    color: #111;
}

.intercept-checkout-wrap .form-row label .required { color: #ef4444; }

/* Aplica a TODOS os inputs — inclui campos do plugin EFI que não usam .input-text */
.intercept-checkout-wrap .form-row input[type="text"],
.intercept-checkout-wrap .form-row input[type="email"],
.intercept-checkout-wrap .form-row input[type="tel"],
.intercept-checkout-wrap .form-row input[type="number"],
.intercept-checkout-wrap .form-row input[type="password"],
.intercept-checkout-wrap .form-row input.input-text,
.intercept-checkout-wrap .form-row select,
.intercept-checkout-wrap .form-row textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #d7d3dd !important;
    border-radius: 16px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1b1b1b;
    background: #fbfbfc;
    box-shadow: none !important;
    transition: border-color .18s, box-shadow .18s, background .18s;
    line-height: 1.4;
    min-height: 52px;
}

.intercept-checkout-wrap .form-row input[type="text"]:focus,
.intercept-checkout-wrap .form-row input[type="email"]:focus,
.intercept-checkout-wrap .form-row input[type="tel"]:focus,
.intercept-checkout-wrap .form-row input[type="number"]:focus,
.intercept-checkout-wrap .form-row input[type="password"]:focus,
.intercept-checkout-wrap .form-row input.input-text:focus,
.intercept-checkout-wrap .form-row select:focus {
    outline: none;
    border-color: rgba(102,83,255,.7) !important;
    box-shadow: 0 0 0 4px rgba(102,83,255,.12) !important;
    background: #fff !important;
}


/* Nome e Sobrenome lado a lado */
.intercept-checkout-wrap .form-row-first,
.intercept-checkout-wrap .form-row-last {
    width: calc(50% - .375rem);
    display: inline-block;
    vertical-align: top;
}
.intercept-checkout-wrap .form-row-first { margin-right: .375rem; }
.intercept-checkout-wrap .form-row-last  { margin-left: .375rem; }

/* ─── Seção de pagamento ─────────────────────────────────────────────────────*/

.intercept-checkout-wrap #order_review,
.intercept-checkout-wrap #order_review_heading { border: none; text-align: center; padding-top: 8px; margin-bottom: 8px; background: transparent; }


/* Oculta conteúdo de <noscript> e textos WC não usados — previne micro-shifts no CLS */
.intercept-checkout-wrap .payment_box .woocommerce-privacy-policy-text,
.intercept-checkout-wrap noscript,
.intercept-checkout-wrap .form-row.place-order noscript,
.intercept-checkout-wrap .form-row.place-order > *:not(#place_order) {
    display: none;
}
/* O botão #place_order é mantido visível (usado pelo nosso JS de submit) */
.intercept-checkout-wrap .form-row.place-order #place_order {
    display: block;
}

.intercept-checkout-wrap #payment {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {display:none;}
#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {background-color: #fafafa; border-radius: 12px;}
#add_payment_method #payment div.payment_box .form-row, .woocommerce-cart #payment div.payment_box .form-row, .woocommerce-checkout #payment div.payment_box .form-row {margin: 0;}
/* Esconde texto descritivo do gateway ("Pagando por Pix...") — mantém forms */
.woocommerce-checkout #payment .payment_box > p,
.woocommerce-checkout #payment .payment_box > .payment_method_description {
    display: none !important;
}
.payment_box p {text-align: center;}

/* Cartão pontual: sempre 1x — esconde select de parcelas e seu label */
.woocommerce-checkout #payment select[name*="installment"],
.woocommerce-checkout #payment #card_installments,
.woocommerce-checkout #payment .form-row:has(select[name*="installment"]),
.woocommerce-checkout #payment .form-row:has(#card_installments) {
    display: none !important;
}

/* ─── Seção de pagamento — separação dos campos de cadastro ─────────────────*/

.intercept-checkout-wrap #payment,
body.woocommerce-checkout #payment {
    margin-top: 1.5rem;
}

#order_review_heading {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6653ff;
}

/* ─── Botões de gateway (Pix / Cartão) ───────────────────────────────────────*/

.gateway-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: #F0EEF3;
    border-radius: 18px;
    border: 1px solid #d7d3dd;
    margin-bottom: 1.5rem;
}

.gateway-btn {
    min-height: 62px;
    padding: 1rem .75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    background: #fff;
    border: 2px solid #d8d8d8;
    border-radius: 18px;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
    text-align: center;
    font-family: inherit;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    /* ── Defesa para webviews Android (Instagram, Facebook in-app) ───────
       touch-action: remove delay de 300ms no toque
       pointer-events: garante que cliques sempre passem (override defensivo)
       tap-highlight: remove flash escuro que pode parecer "travado" */
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(102, 83, 255, 0.15);
    user-select: none;
    -webkit-user-select: none;
}

.gateway-btn__icon {
    flex-shrink: 0;
    display: block;
}

.gateway-btn__label {
    line-height: 1;
}

.gateway-btn:hover:not(.selected) {
    border-color: #6653ff;
    color: #6653ff;
}

.gateway-btn.selected {
    background: linear-gradient(90deg, #5d4fff, #6f5bff);
    border-color: #6653ff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(102,83,255,.22);
}

/* Oculta lista nativa de gateways (radio + label), mantém payment_box */
.intercept-checkout-wrap #payment ul.payment_methods {
    border: none;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
    display: block;
}

.intercept-checkout-wrap #payment .payment_methods > li {
    border: none;
    padding: 0;
}

.intercept-checkout-wrap #payment .payment_methods > li > label,
.intercept-checkout-wrap #payment .payment_methods > li > input[type="radio"] {
    display: none !important;
}

/* Campos do gateway selecionado */
.intercept-checkout-wrap #payment .payment_box {
    animation: fadeIn .2s ease;
    font-size: .875rem;
    color: #6b7280;
    border: 1px solid #d7d3dd;
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: .75rem;
    background: #fff;
}

.intercept-checkout-wrap #payment .payment_box input,
.intercept-checkout-wrap #payment .payment_box select {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #d7d3dd;
    border-radius: 12px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1a202c;
    background: #fbfbfc;
    margin-bottom: .75rem;
    transition: border-color .18s, box-shadow .18s;
}

.intercept-checkout-wrap #payment .payment_box input:focus,
.intercept-checkout-wrap #payment .payment_box select:focus {
    outline: none;
    border-color: rgba(102,83,255,.7);
    box-shadow: 0 0 0 4px rgba(102,83,255,.12);
}

/* ─── Resumo da doação ───────────────────────────────────────────────────────*/

.checkout-summary {
    text-align: center;
    margin: 1.5rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.summary-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    text-align: center;
}

.summary-text strong {
    font-size: 1.25rem;
    display: block;
    margin-top: .25rem;
}

/* ─── Botão Doar ─────────────────────────────────────────────────────────────*/

.intercept-checkout-wrap #payment .place-order { padding: 0; }

.intercept-checkout-wrap #payment #place_order {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    min-height: 56px;
    background: linear-gradient(90deg, #5648f5, #6a5bff);
    color: #fff !important;
    border: none;
    border-radius: 16px;
    font-size: 1.0625rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform .18s, opacity .18s, box-shadow .18s;
    letter-spacing: .01em;
    box-shadow: 0 14px 28px rgba(102,83,255,.24);
}

.intercept-checkout-wrap #payment #place_order:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(102,83,255,.3);
}

.intercept-checkout-wrap #payment #place_order:active:not(:disabled) {
    transform: scale(.99);
}

/* Estado inativo — mantém o gradiente roxo, só reduz opacidade */
.intercept-checkout-wrap #payment #place_order:disabled,
.intercept-checkout-wrap #payment #place_order.btn-disabled {
    background: linear-gradient(90deg, #5648f5, #6a5bff);
    opacity: .45;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ─── Validação CPF ──────────────────────────────────────────────────────────*/

.intercept-checkout-wrap #billing_cpf.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

.cpf-error-msg,
.custom-amount-error {
    display: block;
    color: #ef4444;
    font-size: .8rem;
    margin-top: .25rem;
    font-weight: 400;
}

/* ─── Erros de validação WC ──────────────────────────────────────────────────*/

.intercept-checkout-wrap .woocommerce-error,
.intercept-checkout-wrap .woocommerce-message,
.intercept-checkout-wrap .woocommerce-info {
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: .875rem;
}

/* ─── Loading overlay do WC ──────────────────────────────────────────────────*/

.intercept-checkout-wrap.processing {
    pointer-events: none;
    opacity: .7;
}

/* ─── Animações ──────────────────────────────────────────────────────────────*/

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── PIX container (plugin EFI) ────────────────────────────────────────────*/
/* Cobre tanto o payment_box do checkout quanto a página order-received        */

.pix-container {
    padding-top: .25rem;
}

/* "Escaneie o QrCode abaixo para pagar" — reduz peso visual e adiciona espaço */
.pix-container > p:first-child,
.pix-container > h2:first-child,
.pix-container > h3:first-child,
.pix-container > strong:first-child,
.pix-container > b:first-child {
    margin-top: 1.25rem !important;
    margin-bottom: .875rem;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a202c;
    text-align: center;
}

/* QR Code — centralizado */
.pix-container img,
.pix-container .qr-code {
    display: block;
    margin: 0 auto .75rem;
    max-width: 200px;
    border-radius: 6px;
}

/* Texto auxiliar "Ou copie o Pix…" */
div#pix-container p {font-weight:400 !important;}
.pix-container > p:not(:first-child),
.pix-container > span {
    font-size: .8125rem;
    font-weight: 400 !important;
    color: #6b7280;
    text-align: center;
    display: block;
    white-space: nowrap;
    margin-bottom: .25rem;
}

/* ── Botão copia-e-cola ─────────────────────────────────────────────────────*/

.pix-container button,
.pix-container a.button,
.pix-container .btn-copy-pix,
.pix-container .copy-button {
    display: block !important;
    width: 100% !important;
    padding: .85rem 1.25rem !important;
    margin-top: .625rem !important;
    background: #6653ff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: .9375rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background .2s, transform .1s !important;
    letter-spacing: .01em !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.pix-container button:hover,
.pix-container a.button:hover,
.pix-container .copy-button:hover {
    background: #5747d9 !important;
    color: #fff !important;
}

.pix-container button:active,
.pix-container .copy-button:active {
    transform: scale(.98);
}

/* Input somente-leitura com o código bruto */
.pix-container input[type="text"],
.pix-container textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    font-size: .78rem;
    font-family: monospace;
    color: #6b7280;
    background: #f9fafb;
    resize: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Feedback "Copiado!" */
.pix-container .gn-copy-success,
.pix-container [id*="feedback"],
.pix-container [id*="success"],
.pix-container .copied-feedback {
    display: block;
    text-align: center;
    color: #16a34a;
    font-size: .875rem;
    font-weight: 500;
    margin-top: .5rem;
    animation: fadeIn .2s ease;
}

/* ─── order-received: overview + pix-container ──────────────────────────────*/

/* Overview do pedido — mesmo estilo do donor summary */
ul.woocommerce-order-overview {
    list-style: none;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    background: #F3F1F6;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

ul.woocommerce-order-overview li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: .625rem 1.25rem !important;
    font-size: .9375rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    text-align: left !important;
}

ul.woocommerce-order-overview li:last-child {
    border-bottom: none !important;
}

/* Label (antes dos dois pontos) */
ul.woocommerce-order-overview li > span:not(strong),
ul.woocommerce-order-overview li > .label {
    color: #888 !important;
    font-weight: 500 !important;
}

/* Valor */
ul.woocommerce-order-overview li strong,
ul.woocommerce-order-overview li > strong {
    color: #111 !important;
    font-weight: 600 !important;
    text-align: right !important;
}

/* Esconde o e-mail do overview — já aparece no donor summary abaixo */
ul.woocommerce-order-overview li.woocommerce-order-overview__email,
ul.woocommerce-order-overview li.email {
    display: none !important;
}

div#pix-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

div#pix-container div {
    text-align: center;
    gap: 20px !important;
    display: flex;
    flex-direction: column;
}

div#pix-container h2 {
    font-size: 20px;
}

.gnbtn {
    cursor: pointer;
    background: #6653ff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: .85rem 1.25rem !important;
    font-size: .9375rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    transition: background .2s !important;
}

.gnbtn:hover {
    background: #5747d9 !important;
}

/* ─── order-received: esconde seções desnecessárias para PIX ────────────────*/

/* "Detalhes da doação" — tabela de itens (EFI já mostra QR code) */
.woocommerce-order .woocommerce-order-details { display: none !important; }

/* Linha "Ações:" vazia na tabela de totais */
.woocommerce-table--order-details tfoot tr:has(th:empty),
.woocommerce-table--order-details tfoot tr:has(td:empty),
.woocommerce-order-overview ~ .woocommerce-order .order-actions,
.shop_table.order_details tfoot .order-actions,
.woocommerce-order .actions { display: none !important; }

/* ─── Espaçamento "Seus dados" (billing address na order-received) ──────────*/

.woocommerce-order .woocommerce-customer-details,
.woocommerce-order .woocommerce-column--billing-address {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-order .woocommerce-column--billing-address h2,
.woocommerce-order .woocommerce-customer-details h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: .5rem;
}

/* Billing fields heading no checkout */
.woocommerce-billing-fields > h3,
.woocommerce-billing-fields__field-wrapper > h3 {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

/* ─── Sumário de dados do doador (página de obrigado) ───────────────────────*/

.intercept-donor-summary {
    background: #F3F1F6;
    border-radius: 16px;
    margin: 1.5rem 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.intercept-donor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9375rem;
    gap: 1rem;
    padding: .625rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.intercept-donor-row:last-child {
    border-bottom: none;
}

.intercept-donor-label {
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}

.intercept-donor-value {
    color: #111;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────*/

.checkout-footer {
    background: #F3F1F6;
    border-top: 1px solid rgba(0,0,0,.07);
    padding: 1.75rem 1.25rem;
    text-align: center;
}

.checkout-footer__inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
}

.checkout-footer__logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.checkout-footer__logo {
    height: clamp(22px, 2.5vw, 28px);
    width: auto;
    filter: brightness(0); /* logo preta #000 sobre fundo claro */
    opacity: 1;
    display: block;
}

.checkout-footer__logo-link:hover .checkout-footer__logo {
    opacity: .7;
}

.checkout-footer__copy {
    font-size: .8125rem;
    color: rgba(0,0,0,.4);
    margin: 0;
}

.checkout-footer__links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.checkout-footer__links a {
    font-size: .8125rem;
    color: rgba(0,0,0,.45);
    text-decoration: none;
    transition: color .2s;
}

.checkout-footer__links a:hover {
    color: rgba(0,0,0,.85);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────*/

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .checkout-hero {
        max-width: 560px;
        padding-top: 32px; /* reduz o espaço entre logo e headline no mobile */
    }
}

@media (max-width: 600px) {
    .checkout-header__bar {
        padding: 1.25rem .75rem 0;
    }

    .intercept-checkout-wrap {
        padding: 1rem .75rem 5rem;
    }

    .checkout-hero {
        padding-top: 20px;
    }

    .checkout-hero__title {
        font-size: clamp(1.25rem, 6vw, 2rem);
        max-width: 23ch;
        line-height: 1.25;
    }

    .intercept-checkout-wrap .checkout-card {
        border-radius: 20px;
    }

    /* Corrige border-radius do header do card no mobile */
    .checkout-title {
        border-radius: 20px 20px 0 0;
    }

    /* Remove borda dos boxes internos — a diferença de cor já separa visualmente */
    .amount-grid,
    .gateway-btn-row {
        border: none;
    }

    .amount-grid { gap: 8px; padding: 10px; }

    .amount-btn {
        font-size: .875rem;
        padding: .75rem .25rem;
        min-height: 50px;
        border-radius: 12px;
    }

    .gateway-btn {
        font-size: .9375rem;
        padding: .875rem .5rem;
        min-height: 56px;
        border-radius: 14px;
    }

    .intercept-checkout-wrap .form-row-first,
    .intercept-checkout-wrap .form-row-last {
        width: 100%;
        display: block;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ─── Caixa de status do pagamento — cartão pontual e assinatura ────────────*/

.intercept-card-status {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 16px;
    margin: 1.5rem 0 0;
    background: #fff;
    border: 1px solid #d7d3dd;
    transition: background .35s ease, border-color .35s ease;
}

.intercept-card-status.is-paid {
    background: #e8f7ed;
    border-color: #16a34a;
}

.intercept-card-status.is-failed {
    background: #fee2e2;
    border-color: #ef4444;
}

.intercept-card-status__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 900;
    font-size: 1.25rem;
}

/* Estado pendente — spinner */
.intercept-card-status.is-pending .intercept-card-status__icon {
    border: 3px solid #6653ff;
    border-top-color: transparent;
    background: transparent;
    animation: intercept-card-spin .8s linear infinite;
}

/* Estado pago — check verde */
.intercept-card-status.is-paid .intercept-card-status__icon {
    background: #16a34a;
    color: #fff;
}
.intercept-card-status.is-paid .intercept-card-status__icon::before { content: "\2713"; }

/* Estado falha — X vermelho */
.intercept-card-status.is-failed .intercept-card-status__icon {
    background: #ef4444;
    color: #fff;
}
.intercept-card-status.is-failed .intercept-card-status__icon::before { content: "\2715"; }

@keyframes intercept-card-spin {
    to { transform: rotate(360deg); }
}

.intercept-card-status__text { flex: 1; min-width: 0; }

.intercept-card-status__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .125rem;
}

.intercept-card-status__msg {
    font-size: .875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}
