/* Checkout Stepper & New Layout */

/* ================= STEEPER COMPONENT ================= */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 600px;
    margin: 20px auto 30px;
    padding: 0 16px;
}

/* Linha conectora de fundo */
.stepper-container::before {
    content: "";
    position: absolute;
    top: 14px;
    /* Centro vertical do círculo (aprox) */
    left: 40px;
    right: 40px;
    height: 2px;
    background: #E5E7EB;
    /* Cinza claro */
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
}

/* Círculo da etapa */
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5E7EB;
    /* Default inativo */
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

/* Texto abaixo */
.step-label {
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.2;
    font-weight: 500;
}

/* --- Estados --- */

/* Ativo (Amarelo) */
.step-item.is-active .step-circle {
    background: #fff;
    border-color: #FBBF24;
    /* Amarelo */
    color: #FBBF24;
}

.step-item.is-active .step-label {
    color: #1F2937;
    font-weight: 700;
}

/* Concluído (Escuro + Check) */
.step-item.is-done .step-circle {
    background: #1F2937;
    /* Escuro */
    color: #fff;
    border-color: #1F2937;
}

.step-item.is-done .step-label {
    color: #6B7280;
}


/* ================= STEP PANES (VISIBILIDADE) ================= */
.step-pane {
    display: none;
    /* Oculto por padrão */
    animation: fadeIn 0.3s ease;
}

.step-pane.is-active {
    display: block;
    /* Visível se ativo */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= ESTILOS GERAIS DE INPUT (Reforço) ================= */
/* Garantir que inputs do checkout sigam o padrão pedido */
.input {
    height: 56px !important;
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    font-size: 16px !important;
    color: #1F2937 !important;
    width: 100%;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: #22c55e !important;
    /* Verde foco */
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Labels ocultos (sr-only) já existem no CSS base, mas garantindo */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================= BTN STEPS ================= */
.btn-step-action {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.btn-primary {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.4);
}

.btn-primary:active {
    background: #16a34a;
}

.btn-disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    box-shadow: none;
    pointer-events: none;
}


/* ================= STEP 3: PAGAMENTO ================= */
.payment-method-card {
    background: #fff;
    border: 2px solid #22c55e;
    /* Selecionado */
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: default;
    /* Apenas visual, já está "selecionado" */
}

.pm-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-icon {
    width: 24px;
    height: 24px;
    /* Icone Pix */
}

.pm-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 2px;
}

.pm-info span {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

.pm-check {
    width: 20px;
    height: 20px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

/* Resumo colapsável (simulado simples) */
.order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 8px;
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #E5E7EB;
    color: #1F2937;
    font-weight: 800;
    font-size: 18px;
}

.total-val {
    color: #22c55e;
}

/* ================= STEP 4: PIX CONFIRM ================= */
/* Reutiliza estilos do pagamento.html mas ajusta container */
.pix-confirm-container {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Importante: Esconder o botão original de pagamento do checkout.html */
#cta {
    display: none !important;
}

/* Esconder container original do PIX (lógica mantida, visual oculto) */
#pixCodeBox {
    display: none !important;
}

/* ================= STEP 4: PIX CARD REDESIGN ================= */
.pix-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
    text-align: center;
}

.pix-header {
    background: #374151;
    /* Cinza escuro pro timer */
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pix-body {
    padding: 24px 20px;
}

.pix-title {
    font-size: 20px;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pix-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
}

/* Lista numerada bonita */
.pix-instructions {
    text-align: left;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #374151;
}

.pix-instructions li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.num-badge {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #D1D5DB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.instruction-text b {
    font-weight: 700;
    color: #000;
}

/* Buttons */
.btn-pix-copy {
    width: 100%;
    height: 52px;
    background: #3B82F6;
    /* Azul do print */
    background: #22c55e;
    /* Mantendo verde do projeto como pedido */
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
    transition: transform 0.1s;
}

.btn-pix-copy:active {
    transform: scale(0.98);
}

.btn-pix-qr {
    width: 100%;
    height: 52px;
    background: #fff;
    border: 1px solid #fff;
    border: 1px solid #D1D5DB;
    /* Borda visível */
    color: #fff;
    color: #374151;
    /* Texto escuro no fundo branco */
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modal adjustments */
.modal__card {
    max-width: 320px !important;
    text-align: center;
}

.modal__code img {
    margin: 0 auto;
}

/* ================= CUSTOMER CARD (Step 3) ================= */
.customer-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 4px;
}

.cc-info span {
    font-size: 13px;
    color: #6B7280;
}

.cc-action {
    font-size: 13px;
    color: #EF4444;
    /* Red for reset action */
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.cc-action:hover {
    color: #DC2626;
}