/* ============================================
   Wizard de Sinal Obrigatório (Pix) — shared CSS
   Used by /cart (v1) and /v2/cart (v2)
   ============================================ */

.wizard-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.wizard-progress .step-dot {
    height: 4px;
    border-radius: 2px;
    background: #E2E8F0;
    transition: background .3s;
    flex: 1;
}
.wizard-progress .step-dot.done   { background: var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0)); }
.wizard-progress .step-dot.active { background: var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0)); opacity: .6; }
.wizard-progress .progress-label {
    font-size: 11px;
    color: #94A3B8;
    white-space: nowrap;
}

.wizard-page { padding: 18px 16px 0; }
.wizard-title    { font-size: 17px; font-weight: 600; color: #1E293B; margin-bottom: 4px; }
.wizard-subtitle { font-size: 13px; color: #64748B; margin-bottom: 16px; line-height: 1.5; }

.wizard-alerta {
    background: #FFF3E0;
    border: 1.5px solid #FB8C00;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.wizard-alerta i { color: #E65100; font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.wizard-alerta strong { font-size: 13px; font-weight: 600; color: #BF360C; display: block; margin-bottom: 2px; }
.wizard-alerta p { font-size: 12px; color: #5D4037; line-height: 1.5; margin: 0; }

.wizard-pix-card {
    background: #F8F9FA;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.wizard-pix-card .pix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.wizard-pix-card .pix-key-label { font-size: 11px; color: #94A3B8; margin-bottom: 2px; }
.wizard-pix-card .pix-key       { font-size: 13px; font-family: "Courier New", monospace; color: #1E293B; font-weight: 600; word-break: break-all; }
.wizard-pix-card .copy-btn {
    display: flex; align-items: center; gap: 4px;
    background: none;
    border: 0.5px solid var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0));
    border-radius: 6px; padding: 5px 10px;
    font-size: 12px; color: var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0));
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.wizard-pix-card .valor-sinal {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px;
    border-top: 0.5px solid #E2E8F0;
}
.wizard-pix-card .valor-num { font-size: 20px; font-weight: 700; color: #2E7D32; }

.wizard-campo-label { font-size: 11px; color: #64748B; margin-bottom: 5px; }
.wizard-field-hint          { font-size: 11px; min-height: 14px; margin-top: 3px; color: #64748B; }
.wizard-field-hint.error    { color: #C62828; }
.wizard-field-hint.success  { color: #2E7D32; }
input.wizard-invalid { border-color: #C62828 !important; box-shadow: 0 0 0 0.15rem rgba(198,40,40,.2) !important; }
.wizard-campo-input {
    width: 100%;
    border: 1.5px solid #FB8C00;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    background: #fff; color: #1E293B;
    outline: none; margin-bottom: 4px;
}
.wizard-campo-input.valido { border-color: #2E7D32; }
.wizard-campo-hint {
    font-size: 11px; color: #E65100;
    display: flex; align-items: center; gap: 4px;
}

.wizard-whats-card {
    background: #E8F5E9;
    border: 1.5px solid #43A047;
    border-radius: 10px;
    padding: 16px; text-align: center;
    margin-bottom: 14px;
}
.wizard-whats-card i.big { font-size: 36px; color: #2E7D32; display: block; margin-bottom: 8px; }
.wizard-whats-card strong { font-size: 15px; font-weight: 600; color: #1B5E20; display: block; margin-bottom: 4px; }
.wizard-whats-card p { font-size: 13px; color: #2E7D32; line-height: 1.5; margin: 0; }
.wizard-whats-card .whats-num { font-size: 16px; font-weight: 600; color: #1B5E20; margin: 8px 0 2px; }
.wizard-whats-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px;
    background: #2E7D32; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; margin-bottom: 12px;
    text-decoration: none;
}
.wizard-whats-btn:hover { background: #1B5E20; color: #fff; }

.wizard-check-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px;
    background: #F8F9FA;
    border-radius: 8px;
}
.wizard-check-row input { margin-top: 2px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0)); cursor: pointer; }
.wizard-check-row label { font-size: 13px; color: #64748B; line-height: 1.5; cursor: pointer; margin: 0; }
.wizard-check-row label b { color: var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0)); font-weight: 600; }

.wizard-check-row.wizard-check-error {
    border: 1.5px solid #E53935;
    background: #FFEBEE;
}
.wizard-check-error-msg {
    display: none;
    margin-top: 6px;
    color: #C62828;
    font-size: 12px;
    align-items: center;
    gap: 4px;
}
.wizard-check-row.wizard-check-error ~ .wizard-check-error-msg { display: flex; }

.wizard-info-card {
    background: #F8F9FA;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex; gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.wizard-info-card i { color: var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0)); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.wizard-info-card strong { font-size: 13px; font-weight: 600; color: #1E293B; display: block; margin-bottom: 2px; }
.wizard-info-card p { font-size: 12px; color: #64748B; line-height: 1.5; margin: 0; }
.wizard-info-card.wizard-info-pending {
    background: #FFF8E1;
    border: 1px solid #FFB300;
}
.wizard-info-card.wizard-info-pending i      { color: #E65100; }
.wizard-info-card.wizard-info-pending strong { color: #BF360C; }
.wizard-info-card.wizard-info-pending p      { color: #5D4037; }

.wizard-saldo-card {
    background: #F8F9FA;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 4px;
}
.wizard-saldo-row {
    display: flex; justify-content: space-between;
    font-size: 13px; color: #64748B;
    padding: 3px 0;
}
.wizard-saldo-row.pago span:last-child { color: #2E7D32; font-weight: 600; }
.wizard-saldo-row.total {
    font-size: 15px; font-weight: 600; color: #1E293B;
    margin-top: 6px; padding-top: 8px;
    border-top: 0.5px solid #E2E8F0;
}

.wizard-item-card {
    background: #F8F9FA;
    border-radius: 10px;
    padding: 12px;
    display: flex; gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.wizard-item-card .item-name   { font-size: 14px; font-weight: 600; color: #1E293B; }
.wizard-item-card .item-detail { font-size: 12px; color: #64748B; }
.wizard-item-card .item-price  { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--rapidido-account-primary, var(--md-sys-color-primary-container, #1565C0)); }

/* ============================================
   Layout específico do offcanvas do wizard (v2)
   ============================================ */
#wizardContainerV2 > .wizard-page { display: none; }

/* Modo com sinal (4 páginas): confirm→pix→whatsapp→pagamento */
#wizardContainerV2.has-deposit[data-page-index="0"] > #page-v2-deposit-1,
#wizardContainerV2.has-deposit[data-page-index="1"] > #page-v2-deposit-2,
#wizardContainerV2.has-deposit[data-page-index="2"] > #page-v2-deposit-3,
#wizardContainerV2.has-deposit[data-page-index="3"] > #page-v2-deposit-4 {
    display: block;
}

/* Modo sem sinal (2 páginas): confirm→pagamento */
#wizardContainerV2:not(.has-deposit)[data-page-index="0"] > #page-v2-deposit-1,
#wizardContainerV2:not(.has-deposit)[data-page-index="1"] > #page-v2-deposit-4 {
    display: block;
}

#offcanvasDepositWizard .offcanvas-footer {
    border-top: 0.5px solid #E2E8F0;
    background: #fff;
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
}
#offcanvasDepositWizard .offcanvas-footer button {
    border-radius: 100px;
}
