/* ═══════════════════════════════════════════════════════════════════════
   TOKENS & VARIÁVEIS
   ═══════════════════════════════════════════════════════════════════════ */
:root {
    --preto: #1A1916;
    --cinza-esc: #2E2C28;
    --cinza-med: #5C5A55;
    --cinza-cl: #DDDAD4;
    --cinza-bg: #E8E5DF;
    --papel: #F0EDE7;
    --papel-cl: #F7F5F1;
    --branco: #FFFFFF;

    /* Vermelho Lacre */
    --cera: #8B1F1F;
    --cera-cl: #A52828;
    --cera-rgb: 139, 31, 31;
    --verde-sucesso: #2E7D32;
    --cinza-suave: #F4F3F0;

    /* Fontes */
    --font-display: 'Special Elite', 'Courier New', monospace;
    --font-body: 'Courier Prime', 'Courier New', monospace;

    /* Textura de Papel */
    --texture: url('https://static.wixstatic.com/media/0da768_880a3209e3744cd0a96b66835a01b8c5.png/v1/crop/x_0,y_0,w_256,h_256,q_85,enc_auto/0da768_880a3209e3744cd0a96b66835a01b8c5.png');
}

/* ═══════════════════════════════════════════════════════════════════════
   RESET & CONFIGURAÇÕES GERAIS
   ═══════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--papel);
    background-image: var(--texture);
    background-repeat: repeat;
    background-size: 256px 256px;
    color: var(--preto);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER (Focado / Sem Distrações)
   ═══════════════════════════════════════════════════════════════════════ */
.checkout-header {
    background-color: var(--papel-cl);
    background-image: var(--texture);
    background-size: 256px 256px;
    border-bottom: 2px solid var(--preto);
    padding: 12px 40px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.checkout-logo-img,
.brand-logo img,
.site-logo-nav {
    height: 54px !important;
    max-height: 54px !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
    transform: translateY(-12px) !important;
    object-fit: contain !important;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--cinza-med);
    border: 1px solid var(--cinza-cl);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.3);
}

.lock-icon {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════════════════════════════════════ */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════════
   COLUNA ESQUERDA (FORMULÁRIOS)
   ═══════════════════════════════════════════════════════════════════════ */
.checkout-form-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards do Formulário */
.checkout-card {
    background-color: var(--papel-cl);
    background-image: var(--texture);
    background-size: 256px 256px;
    border: 2px solid var(--preto);
    padding: 32px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-card:hover {
    box-shadow: 4px 4px 0px rgba(26, 25, 22, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    border-bottom: 1px dashed var(--cinza-cl);
    padding-bottom: 16px;
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--preto);
    color: var(--branco);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    /* Lembra uma tecla de máquina de escrever */
    box-shadow: 1px 2px 0px rgba(0, 0, 0, 0.3);
}

.card-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--preto);
    letter-spacing: 0.02em;
}

.shipping-badge {
    position: absolute;
    right: 0;
    top: 2px;
    background: var(--verde-sucesso);
    color: var(--branco);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 2px;
}

/* Campos e Formulários */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--preto);
    margin-bottom: 6px;
}

.label-optional {
    color: var(--cinza-med);
    font-weight: 400;
    text-transform: lowercase;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--branco);
    border: 1px solid var(--cinza-cl);
    border-radius: 0;
    /* Estilo vintage retangular */
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 14px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--preto);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-row .flex-2 {
    flex: 2;
}

.form-row .state-group {
    max-width: 70px;
}

/* Estilo CEP com busca */
.cep-row {
    position: relative;
}

.cep-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.loading-spinner {
    display: none;
    position: absolute;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--preto);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Erros de Validação */
.error-msg {
    display: none;
    color: var(--cera);
    font-size: 11px;
    margin-top: 5px;
    font-weight: bold;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--cera);
    background-color: rgba(139, 31, 31, 0.02);
}

.form-group.has-error .error-msg {
    display: block;
}

/* Nota de envio */
.shipping-notice {
    display: flex;
    gap: 14px;
    background: var(--cinza-bg);
    border: 1px solid var(--cinza-cl);
    padding: 16px;
    margin-top: 10px;
}

.notice-icon {
    font-size: 22px;
    line-height: 1;
}

.shipping-notice p {
    font-size: 12px;
    color: var(--cinza-esc);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGAMENTO: ABAS E DETALHES
   ═══════════════════════════════════════════════════════════════════════ */
.payment-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.tab-btn {
    background: var(--cinza-bg);
    border: 1px solid var(--cinza-cl);
    padding: 12px 6px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--cinza-cl);
}

.tab-btn.active {
    background: var(--preto);
    color: var(--branco);
    border-color: var(--preto);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-btn .badge-discount {
    background: var(--cera);
    color: var(--branco);
    font-size: 9px;
    font-family: var(--font-body);
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

.tab-contents {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ABA CARTÃO - ESTRUTURA DUPLEX */
.card-payment-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.card-inputs {
    display: flex;
    flex-direction: column;
}

/* ABA PIX & BOLETO - ALERTAS */
.pix-notice,
.boleto-notice {
    text-align: center;
    padding: 24px 20px;
    border: 1px dashed var(--cinza-cl);
    background: rgba(255, 255, 255, 0.4);
}

.pix-icon-large,
.boleto-icon-large {
    font-size: 40px;
    margin-bottom: 12px;
}

.pix-notice h3,
.boleto-notice h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--preto);
}

.pix-notice p,
.boleto-notice p {
    font-size: 13px;
    color: var(--cinza-med);
    max-width: 440px;
    margin: 0 auto 20px auto;
}

.pix-benefits,
.boleto-details {
    list-style: none;
    text-align: left;
    display: inline-block;
    max-width: 380px;
    margin: 0 auto;
    font-size: 12px;
    color: var(--cinza-esc);
}

.pix-benefits li,
.boleto-details li {
    padding: 6px 0;
    border-bottom: 1px solid var(--cinza-suave);
}

.pix-benefits li:last-child,
.boleto-details li:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOCKUP INTERATIVO DO CARTÃO (WOW EFFECT)
   ═══════════════════════════════════════════════════════════════════════ */
.card-mockup-container {
    perspective: 1000px;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    aspect-ratio: 1.58 / 1;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotação do cartão no verso */
.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    color: var(--preto);
    font-family: var(--font-display);
    /* Aparência Kraft Paper / Vintage rústico */
    background-color: var(--cinza-bg);
    background-image: var(--texture);
    background-size: 128px 128px;
    border: 2px solid var(--preto);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    padding: 20px 0;
    justify-content: flex-start;
}

.card-chip {
    width: 36px;
    height: 28px;
    background: linear-gradient(135deg, #a18a56 0%, #d8c290 50%, #a18a56 100%);
    border-radius: 4px;
    border: 1px solid var(--preto);
}

.card-flag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.card-number-display {
    font-size: clamp(14px, 1.8vw, 17px);
    letter-spacing: 0.1em;
    margin: 24px 0 10px 0;
    text-align: center;
    white-space: nowrap;
}

.card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder,
.card-expiry-display {
    display: flex;
    flex-direction: column;
}

.display-label {
    font-family: var(--font-body);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 2px;
}

.display-value {
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-expiry-display .display-value {
    font-size: 11px;
}

/* Estilo Verso do Cartão */
.card-magnetic-stripe {
    width: 100%;
    height: 38px;
    background: var(--preto);
    margin-bottom: 18px;
}

.card-signature-area {
    margin: 0 20px;
    background: var(--branco);
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    border: 1px solid var(--preto);
}

.cvv-display {
    font-size: 12px;
    letter-spacing: 0.05em;
}

.card-back-text {
    font-size: 8px;
    text-align: center;
    margin-top: 24px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════════
   BOTÃO SUBMIT (DENTRO DA COLUNA FORM)
   ═══════════════════════════════════════════════════════════════════════ */
.btn-checkout-submit {
    width: 100%;
    background-color: var(--cera);
    color: var(--branco);
    border: 2px solid var(--preto);
    padding: 18px 24px;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    box-shadow: 3px 3px 0px var(--preto);
}

.btn-checkout-submit:hover {
    background-color: var(--cera-cl);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px var(--preto);
}

.btn-checkout-submit:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 0px var(--preto);
}

.btn-lock {
    font-size: 16px;
}

.btn-price-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 700;
}

.submit-disclaimer {
    font-size: 11px;
    color: var(--cinza-med);
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════
   COLUNA DIREITA (RESUMO & PROVA SOCIAL)
   ═══════════════════════════════════════════════════════════════════════ */
.checkout-summary-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 94px;
    /* Altura do header + margem */
}

/* Caixa de Resumo */
.summary-box {
    background-color: var(--papel-cl);
    background-image: var(--texture);
    background-size: 256px 256px;
    border: 2px solid var(--preto);
    padding: 32px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.summary-box h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--preto);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--preto);
    padding-bottom: 10px;
}

/* Seletor de Planos Embutido */
.plan-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.plan-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--cinza-cl);
    padding: 16px;
    cursor: pointer;
    position: relative;
    background: var(--branco);
    transition: all 0.2s ease;
}

.plan-option:hover {
    border-color: var(--preto);
}

.plan-option.selected {
    border: 2px solid var(--cera);
    background: var(--branco);
    box-shadow: 2px 2px 0px rgba(139, 31, 31, 0.15);
}

.plan-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--cinza-cl);
    border-radius: 50%;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--branco);
}

.plan-option input[type="radio"]::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cera);
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
}

.plan-option input[type="radio"]:checked {
    border-color: var(--cera);
}

.plan-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.plan-details {
    display: flex;
    flex-direction: column;
}

.plan-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: bold;
    color: var(--preto);
}

.plan-desc {
    font-size: 11px;
    color: var(--cinza-med);
    margin-top: 2px;
    line-height: 1.3;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: bold;
    text-align: right;
    color: var(--preto);
}

.price-period {
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--cinza-med);
}

/* Badge de Destaque no Plano Anual */
.plan-badge {
    position: absolute;
    top: -9px;
    left: 20px;
    background: var(--cera);
    color: var(--branco);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 1px;
    border: 1px solid var(--preto);
    box-shadow: 1px 1px 0px var(--preto);
}

/* Cupom de desconto */
.coupon-wrapper {
    margin-bottom: 24px;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--cinza-cl);
    background: var(--branco);
    font-size: 13px;
    outline: none;
    text-transform: uppercase;
}

.coupon-input-group input:focus {
    border-color: var(--preto);
}

.coupon-input-group button {
    background: var(--preto);
    color: var(--branco);
    border: 2px solid var(--preto);
    padding: 0 16px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-input-group button:hover {
    background: transparent;
    color: var(--preto);
}

.coupon-feedback {
    font-size: 11px;
    margin-top: 6px;
    font-weight: 700;
}

.coupon-feedback.success {
    color: var(--verde-sucesso);
}

.coupon-feedback.error {
    color: var(--cera);
}

/* Preços Detalhados */
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--cinza-esc);
}

.discount-row {
    color: var(--verde-sucesso);
    font-weight: 700;
}

.free-shipping-text {
    color: var(--verde-sucesso);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.summary-divider {
    border: none;
    border-top: 1px dashed var(--preto);
    margin: 4px 0;
}

.price-row.total-row {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: bold;
    color: var(--preto);
}

/* Inclusões do Kit */
.kit-inclusion-preview {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--cinza-cl);
    padding: 16px;
}

.kit-inclusion-preview h4 {
    font-family: var(--font-display);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kit-inclusion-preview ul {
    list-style: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kit-inclusion-preview li {
    line-height: 1.4;
}

/* Card de Garantia */
.trust-badge-card {
    border: 2px solid var(--preto);
    background-color: var(--papel-cl);
    background-image: var(--texture);
    background-size: 256px 256px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-icon {
    font-size: 28px;
    line-height: 1;
}

.trust-info h4 {
    font-family: var(--font-display);
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--preto);
}

.trust-info p {
    font-size: 12px;
    color: var(--cinza-med);
    line-height: 1.4;
}

/* Depoimentos */
.checkout-testimonial {
    border: 1px solid var(--cinza-cl);
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    position: relative;
}

.testimonial-quotes {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 0.8;
    color: var(--cinza-cl);
    position: absolute;
    top: 10px;
    left: 14px;
    pointer-events: none;
}

.testimonial-text {
    font-size: 12px;
    color: var(--cinza-esc);
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    font-size: 11px;
}

.testimonial-author strong {
    color: var(--preto);
}

.testimonial-author span {
    color: var(--cinza-med);
}

/* Canal de suporte */
.help-box {
    text-align: center;
    font-size: 12px;
    color: var(--cinza-med);
}

.help-box a {
    color: var(--preto);
    font-weight: 700;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER CHECKOUT
   ═══════════════════════════════════════════════════════════════════════ */
.checkout-footer {
    background: var(--preto);
    color: rgba(255, 255, 255, 0.4);
    padding: 30px 40px;
    margin-top: 80px;
    border-top: 2px solid var(--cinza-esc);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.security-logos {
    display: flex;
    gap: 16px;
}

.security-logo-item {
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVIDADE (MEDIA QUERIES)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 20px auto;
    }

    .checkout-form-column {
        order: 2;
    }

    .checkout-summary-column {
        position: static;
        /* Desativa o sticky para fluir livremente */
        order: 1;
        /* Coloca o resumo no topo no mobile */
    }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between !important;
        flex-direction: row !important;
        align-items: center !important;
        height: auto;
    }

    .checkout-header {
        position: relative;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 8px 16px !important;
    }

    .checkout-logo-img,
    .brand-logo img,
    .site-logo-nav {
        height: 44px !important;
        max-height: 44px !important;
        transform: translateY(-8px) !important;
    }

    .security-badge {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }

    .checkout-container {
        margin: 10px auto;
    }

    .checkout-card {
        padding: 20px;
    }

    .card-payment-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-mockup-container {
        order: -1;
        /* O cartão virtual fica acima das entradas de texto no mobile */
        max-width: 260px;
    }

    .payment-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Classe utilitária para manter Cidade/UF e Validade/CVV inline no mobile */
    .form-row-inline {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
    }

    .form-row-inline .form-group {
        margin-bottom: 20px !important;
    }

    .form-row-inline .state-group {
        max-width: 90px !important;
        /* Aumenta ligeiramente para melhor visualização do select no mobile */
        flex: 0 0 90px !important;
    }
}

@media (max-width: 480px) {
    .success-modal-content {
        padding: 24px 16px !important;
    }

    .wax-seal-success {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }

    .success-modal-content h2 {
        font-size: 20px !important;
    }

    .payment-instructions-box {
        padding: 12px !important;
        margin: 12px 0 !important;
    }

    .btn-checkout-submit {
        padding: 14px 16px !important;
        font-size: 14px !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .btn-price-display {
        font-size: 12px !important;
    }

    .modal-logo {
        max-height: 55px !important;
        margin-bottom: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   MODAL DE SUCESSO INTERATIVO (COMPRA FINALIZADA)
   ═══════════════════════════════════════════════════════════════════════ */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 25, 22, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-x-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 26px;
    font-family: inherit;
    color: var(--preto);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.modal-x-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-logo {
    max-height: 75px;
    height: auto;
    width: auto;
    max-width: 80%;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
}

.success-modal-content {
    background-color: var(--papel-cl);
    background-image: var(--texture);
    background-size: 256px 256px;
    border: 2px solid var(--preto);
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3);
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wax-seal-success {
    width: 64px;
    height: 64px;
    background: var(--cera);
    color: var(--branco);
    font-family: var(--font-display);
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(139, 31, 31, 0.4);
    animation: breathe 3s ease-in-out infinite;
}

.success-modal-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--preto);
    margin-bottom: 8px;
}

.greeting-success {
    font-size: 15px;
    color: var(--preto);
    margin-bottom: 12px;
}

.success-modal-content p {
    font-size: 13px;
    color: var(--cinza-esc);
    line-height: 1.6;
    margin-bottom: 16px;
}

.payment-instructions-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--cinza-cl);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.payment-instructions-box p {
    margin-bottom: 12px;
    font-weight: 700;
}

/* Mensagem de boas-vindas no sucesso PIX */
.pix-welcome-message {
    background: #faf9f7;
    border-left: 3px solid var(--preto);
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.pix-welcome-message p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--preto);
    margin: 0 0 10px 0;
}

.pix-welcome-message p:last-child {
    margin-bottom: 0;
}

.pix-welcome-message a {
    color: var(--preto);
    text-decoration: underline;
}

/* Instruções PIX */
.pix-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pix-code-container img {
    border: 1px solid var(--cinza-cl);
    padding: 8px;
    background: white;
}

.pix-key-input {
    width: 100%;
    font-family: monospace;
    font-size: 11px;
    padding: 10px 12px;
    background: var(--cinza-bg);
    border: 1px solid var(--cinza-cl);
    text-align: center;
    outline: none;
    box-sizing: border-box;
    border-radius: 4px;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: ellipsis;
}

.btn-copy-pix,
.btn-print-boleto {
    background: var(--preto);
    color: var(--branco);
    border: 2px solid var(--preto);
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-copy-pix:hover,
.btn-print-boleto:hover {
    background: transparent;
    color: var(--preto);
}

/* Instruções Boleto */
.boleto-action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.barcode-display {
    font-family: monospace;
    font-size: 11px;
    background: var(--cinza-bg);
    border: 1px solid var(--cinza-cl);
    padding: 8px 12px;
    width: 100%;
    text-align: center;
    word-break: break-all;
}

/* O Que Acontece a Seguir */
.whats-next {
    text-align: left;
    margin-bottom: 24px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--cera);
}

.whats-next h4 {
    font-family: var(--font-display);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.whats-next ol {
    padding-left: 20px;
    font-size: 12px;
    color: var(--cinza-esc);
}

.whats-next li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.btn-close-modal {
    background: transparent;
    color: var(--cinza-med);
    border: 1px solid var(--cinza-cl);
    padding: 8px 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-close-modal:hover {
    color: var(--preto);
    border-color: var(--preto);
}