/* ═══════════════════════════════════════════════════
       PAYMENT PANELS & SCREENS
       - Method panels (M-Panel)
       - Credit Card Visual Preview
       - Success, Waiting & Processing Screens
    ═══════════════════════════════════════════════════ */

.m-panel { display: none; margin-top: 14px; padding-bottom: 16px; }
.m-panel.active { display: block; }

.method-banner {
  display: flex; align-items: flex-start; gap: 10px; background: #F5F3EF;
  border-radius: 6px; padding: 10px 12px; font-size: 13px; color: var(--gray-700); margin-bottom: 16px;
}

/* ── Credit Card Visual ── */
.cc-visual {
  background: linear-gradient(135deg, #253f82, #355cc0); border-radius: 12px;
  padding: 20px; color: #fff; margin-bottom: 14px; aspect-ratio: 1.586/1;
  position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(37, 63, 130, 0.2);
}
.cc-chip { width: 34px; height: 26px; background: rgba(255,255,255,0.3); border-radius: 4px; margin-bottom: 16px; }
.cc-num { font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; font-family: monospace; }
.cc-row { display: flex; justify-content: space-between; font-size: 12px; }
.cc-sub { opacity: .6; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.cc-val { font-weight: 600; font-size: 13px; }
.cc-brand { position: absolute; right: 16px; top: 16px; font-size: 24px; }

/* ── Status & Result Screens (Hidden by default) ── */
#waiting-payment, #processing-screen, #success-screen, #pix-result, #voucher-result {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.98); z-index: 1000; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#waiting-payment.active, #processing-screen.active, #success-screen.active, #pix-result.active, #voucher-result.active { display: flex; }

.result-card {
  max-width: 400px; width: 92%; padding: 32px 24px; background: #fff;
  border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); text-align: center;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .result-card { padding: 24px 16px; }
  .result-title { font-size: 18px; }
}

.result-title { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }

/* ── Botões de Confirmação Manual (Padrão Oficial) ── */
.waiting-payment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  margin-top: 24px;
  box-sizing: border-box;
}

.waiting-payment-btn:hover {
  background: #1eb054;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ── Botão Copiar (Padrão de Input) ── */
#voucher-copy-btn, .copy-btn {
  background: #333; /* Cor neutra para ação secundária */
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  height: 48px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

#voucher-copy-btn:hover, .copy-btn:hover {
  background: #000;
}

.copy-btn.copy-success {
  background-color: #22c55e !important;
}

/* ── Info Blocks (used in method panels) ── */
.info-blocks-container { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.info-block {
  display: flex; gap: 14px; padding: 16px; background: #F5F3EF;
  border: 1.5px solid var(--gray-200); border-radius: 8px; align-items: center;
}
.info-block-icon { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; object-fit: contain; flex-shrink: 0; }
.info-block-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.info-block-text p { font-size: 12px; color: var(--gray-500); margin: 0; }

/* ── Specific Method UI (e.g. Bank Select) ── */
.bank-selection-container { margin-bottom: 20px; }
.bank-selection-container label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bank-selection-container select {
  width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--gray-300);
  border-radius: 4px; background: #fff; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239EA4AC' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
