/* ==========================================================================
   CHECKOUT - DESIGN ENXUTO, LEVE E MODERNO (GOOGLE ICONS)
   Tipografia leve, sem excesso de negrito, cores equilibradas e sem emojis.
   ========================================================================== */

:root {
  --co-bg: #f8fafc;
  --co-surface: #ffffff;
  --co-border: #e2e8f0;
  --co-border-subtle: #f1f5f9;
  --co-border-focus: #1e293b;
  --co-text: #1e293b;
  --co-text-muted: #64748b;
  --co-text-light: #94a3b8;
  --co-btn-bg: #18181b;
  --co-btn-color: #ffffff;
  --co-accent: #16a34a;
  --co-accent-bg: #f0fdf4;
  --co-danger: #dc2626;
  --co-radius: 10px;
  --co-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body.checkout-body {
  background-color: var(--co-bg);
  color: var(--co-text);
  font-family: var(--co-font);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Ícones Google Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 20px !important;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 22;
  color: var(--co-text-muted);
  user-select: none;
}

/* Container Enxuto e Leve */
.checkout-wrapper {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--co-surface);
}

@media (min-width: 500px) {
  .checkout-wrapper {
    margin: 24px auto 44px;
    min-height: auto;
    border-radius: 14px;
    border: 1px solid var(--co-border);
    box-shadow: 0 2px 16px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }
}

/* Header Compacto e Delicado */
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--co-border);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--co-border);
  background: #ffffff;
  color: var(--co-text);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.checkout-back-btn:hover {
  background: #f8fafc;
}

.checkout-header-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-header-logo-wrap img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.checkout-header-spacer {
  width: 32px;
  height: 32px;
  visibility: hidden;
}

/* Stepper Minimalista e Centralizado */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--co-border);
}

.checkout-progress-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 230px;
  font-size: 0.78rem;
  font-weight: 500;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--co-text-muted);
}

.progress-step.active {
  color: var(--co-text);
  font-weight: 600;
}

.progress-step.completed {
  color: var(--co-accent);
}

.progress-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--co-text-muted);
}

.progress-step.active .progress-dot {
  background: #1e293b;
  color: #ffffff;
}

.progress-step.completed .progress-dot {
  background: var(--co-accent);
  color: #ffffff;
}

.progress-line {
  flex: 1;
  height: 1.5px;
  background: #e2e8f0;
}

.progress-line.completed {
  background: var(--co-accent);
}

/* Área de Conteúdo */
.checkout-content {
  flex: 1;
  padding: 18px 16px 85px;
}

.checkout-view {
  display: none;
}

.checkout-view.active {
  display: block;
  animation: viewFadeIn 0.15s ease-out;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Título de Seção Leve */
.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--co-text);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* Alerta de Validação */
.validation-toast {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--co-danger);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.validation-toast.show {
  display: block;
}

/* Alternador Segmentado: Entrega vs Retirada */
.delivery-mode-switch {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--co-radius);
  margin-bottom: 14px;
  gap: 4px;
}

.mode-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--co-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.mode-btn.active {
  background: #ffffff;
  color: var(--co-text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mode-btn.active .material-symbols-outlined {
  color: var(--co-text);
}

/* Bloco Informativo de Retirada */
.pickup-box {
  background: #f8fafc;
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.pickup-box strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--co-text);
  margin-bottom: 2px;
}

.pickup-box .pickup-badge {
  display: inline-block;
  background: var(--co-accent-bg);
  color: var(--co-accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 6px;
}

/* Campos de Formulário Enxutos e Suaves */
.form-field {
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--co-text-muted);
  margin-bottom: 4px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--co-border);
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--co-text);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--co-border-focus);
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

/* Zero Flash & Skeleton Loading */
.checkout-user-identified #fields-address-form {
  display: none !important;
}
.checkout-user-identified #box-address-loading {
  display: flex !important;
}

.checkout-address-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--co-radius, 12px);
  margin-bottom: 12px;
}

.co-loading-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #e2e8f0;
  border-top-color: var(--co-primary, #0f172a);
  border-radius: 50%;
  animation: coSpin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes coSpin {
  to { transform: rotate(360deg); }
}

.co-loading-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-loading-text strong {
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 600;
}

.co-loading-text span {
  font-size: 0.76rem;
  color: #64748b;
}

/* Bloco Direto de Endereços Cadastrados */
.saved-addresses-list-box {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 14px;
}

.saved-addresses-list-header {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.saved-addresses-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.saved-addr-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.saved-addr-option-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.saved-addr-option-card.is-selected {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.badge-saved-default {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Custom Radio Dot */
.saved-addr-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.saved-addr-option-card.is-selected .saved-addr-radio-dot {
  border-color: #0f172a;
}

.saved-addr-option-card.is-selected .saved-addr-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f172a;
}

.saved-addr-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.saved-addr-option-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.saved-addr-option-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: #0f172a;
}

.saved-addr-option-sub {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
}

/* Botão Usar Outro Endereço (Moderno e Sólido) */
.btn-use-other-addr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--co-radius, 10px);
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-use-other-addr:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--co-primary, #0f172a);
}

.btn-use-other-addr .material-symbols-outlined {
  font-size: 19px !important;
  color: #0f172a;
}

/* Botão Voltar aos Salvos */
.btn-back-to-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--co-primary, #2563eb);
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.btn-back-to-saved:hover {
  text-decoration: underline;
}

.btn-back-to-saved .material-symbols-outlined {
  font-size: 16px !important;
}

/* Fallback antigo */
.saved-address-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  margin-bottom: 6px;
  font-size: 0.85rem;
}


/* Abas com Underline (exatamente como no print enviado) */
.checkout-tabs {
  display: flex;
  border-bottom: 1px solid var(--co-border);
  margin-bottom: 12px;
  gap: 24px;
}

.checkout-tab-btn {
  background: none;
  border: none;
  padding: 6px 0 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--co-text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
  font-family: inherit;
}

.checkout-tab-btn:hover {
  color: var(--co-text);
}

.checkout-tab-btn.active {
  color: var(--co-text);
  font-weight: 600;
}

.checkout-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--co-text);
  border-radius: 2px 2px 0 0;
}

/* Lista de Pagamento Leve */
.checkout-payment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-payment-list span {
  min-height: auto;
  padding: 0;
  background: transparent;
  display: inline;
  color: inherit;
  font-weight: inherit;
  border-radius: 0;
}

.payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.payment-row:hover {
  border-color: #cbd5e1;
  background: #fbfcfd;
}

.payment-row.selected {
  border-color: var(--co-text);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--co-text);
}

.payment-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-row.selected .payment-radio {
  border-color: var(--co-text);
  background: var(--co-text);
}

.payment-row.selected .payment-radio::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.payment-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  flex-shrink: 0;
}

.payment-row.selected .payment-icon-wrap {
  background: #f1f5f9;
}

.payment-row.selected .material-symbols-outlined {
  color: var(--co-text);
}

.payment-info {
  flex: 1;
}

.payment-title {
  font-weight: 550;
  font-size: 0.88rem;
  color: var(--co-text);
}

.payment-sub {
  font-size: 0.75rem;
  color: var(--co-text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.payment-badge-free {
  font-size: 0.68rem;
  font-weight: 500;
  background: var(--co-accent-bg);
  color: var(--co-accent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Bloco de Troco para Dinheiro */
.troco-box {
  background: #f8fafc;
  border: 1px dashed var(--co-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  display: none;
}

.troco-box.show {
  display: block;
}

.troco-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.chip-tag {
  padding: 4px 9px;
  background: #ffffff;
  border: 1px solid var(--co-border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--co-text);
  font-family: inherit;
}

.chip-tag:hover {
  background: #f1f5f9;
}

/* Links Expansíveis Discretos (Cupom e Obs) */
.compact-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--co-text-muted);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
}

.compact-toggle-btn:hover {
  color: var(--co-text);
}

.compact-panel {
  display: none;
  margin-top: 6px;
  margin-bottom: 8px;
}

.compact-panel.open {
  display: block;
}

.coupon-row {
  display: flex;
  gap: 6px;
}

.coupon-apply-btn {
  padding: 0 12px;
  background: var(--co-btn-bg);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Resumo Financeiro Suave */
.mini-summary-box {
  background: #fafbfc;
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 12px 14px;
  margin-top: 12px;
}

.mini-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--co-text-muted);
  font-weight: 400;
  margin-bottom: 5px;
}

.mini-summary-line.discount {
  color: var(--co-accent);
  font-weight: 600;
}

.mini-summary-line.total {
  border-top: 1px solid var(--co-border);
  padding-top: 8px;
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--co-text);
  margin-bottom: 0;
}

/* Barra Fixa de Rodapé com Botão */
.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--co-border);
  padding: 10px 16px;
  z-index: 50;
}

@media (min-width: 500px) {
  .checkout-footer {
    position: sticky;
    bottom: 0;
    border-radius: 0 0 14px 14px;
  }
}

.checkout-main-btn {
  width: 100%;
  min-height: 46px;
  background: var(--co-btn-bg);
  color: var(--co-btn-color);
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: opacity 0.15s ease;
}

.checkout-main-btn:hover {
  opacity: 0.92;
}

.checkout-main-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-main-btn .material-symbols-outlined {
  color: #ffffff;
}

/* ==========================================================================
   MODAL DO PIX ONLINE (MERCADO PAGO)
   ========================================================================== */
.co-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.pix-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

.pix-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--co-border);
}

.pix-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pix-header-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--co-text);
}

.pix-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--co-text-muted);
}

.pix-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--co-text-muted);
  cursor: pointer;
  padding: 4px;
}

.pix-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pix-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.pix-timer-badge .material-symbols-outlined {
  color: #b45309 !important;
}

.pix-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--co-text-muted);
  margin-bottom: 16px;
}

.pix-amount-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--co-text);
}

.pix-qr-container {
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--co-border);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pix-qr-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-copia-cola-wrap {
  width: 100%;
  text-align: left;
  margin-bottom: 14px;
}

.pix-copy-input-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.pix-copy-input-row .field-input {
  font-size: 0.8rem;
  font-family: monospace;
  background: #f8fafc;
  cursor: text;
}

.btn-copy-pix {
  background: var(--co-btn-bg);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-copy-pix.copied {
  background: #16a34a !important;
}

.btn-copy-pix .material-symbols-outlined {
  color: #ffffff !important;
  font-size: 16px !important;
}

.pix-status-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 500;
}

.pix-status-box.approved {
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
}

.pix-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--co-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.btn-cancel-modal {
  background: transparent;
  border: none;
  color: var(--co-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-secondary-link {
  color: var(--co-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

/* ==========================================================================
   FORMULÁRIO DE CARTÃO DE CRÉDITO INTEGRADO (INLINE ACCORDION)
   ========================================================================== */
.card-form-box {
  background: #f8fafc;
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 14px;
  margin-top: 4px;
  animation: viewFadeIn 0.2s ease-out;
}

.card-form-box.show {
  display: block !important;
}

.card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-input-with-brand {
  padding-right: 52px !important;
}

.card-brand-badge {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 32px;
  pointer-events: none;
}

.card-brand-badge img {
  height: 20px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
}

.card-cvv-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px !important;
  color: #94a3b8;
  pointer-events: none;
}

.card-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}


