/**
 * MuaThemeWpGiaRe - Modern VietQR Checkout & Thank-You Card Stylesheet
 * Ultra-clean, High-Conversion Fintech UI (EMVCo VietQR NAPAS Standard)
 *
 * @package    muathemewpgiare-verify-bank-transfer
 * @version    3.0.0
 */

/* Container & Scope */
.mtwp-fintech-checkout {
  max-width: 860px;
  margin: 24px auto 32px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
  clear: both;
}

.mtwp-fintech-checkout *,
.mtwp-fintech-checkout *::before,
.mtwp-fintech-checkout *::after {
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   1. CARD HEADER
   ───────────────────────────────────────────────────────────── */
.mtwp-card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mtwp-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mtwp-bank-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mtwp-bank-tile img {
  height: 28px;
  max-width: 90px;
  object-fit: contain;
  display: block;
}

.mtwp-bank-info {
  display: flex;
  flex-direction: column;
}

.mtwp-bank-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.mtwp-bank-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.mtwp-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mtwp-meta-amount {
  text-align: right;
}

.mtwp-meta-amount-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.mtwp-meta-amount-value {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────────────────────
   2. TWO-COLUMN INTERACTIVE GRID
   ───────────────────────────────────────────────────────────── */
.mtwp-card-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #ffffff;
}

/* Left Column: QR Display */
.mtwp-col-qr {
  padding: 24px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fcfdfe;
}

.mtwp-qr-frame {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 250px;
  width: 100%;
}

.mtwp-qr-frame img,
.mtwp-qr-frame canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.mtwp-qr-caption {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 12px;
  line-height: 1.4;
}

.mtwp-qr-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  max-width: 250px;
}

.mtwp-action-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mtwp-action-pill:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.mtwp-pill-primary {
  background: #059669;
  color: #ffffff;
  border-color: #047857;
}

.mtwp-pill-primary:hover {
  background: #047857;
  color: #ffffff;
}

/* Right Column: Transfer Details */
.mtwp-col-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mtwp-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mtwp-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.mtwp-detail-item:hover {
  background: #f1f5f9;
}

.mtwp-detail-item.highlight {
  background: #fffbeb;
  border-color: #fde68a;
}

.mtwp-detail-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtwp-detail-val-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mtwp-detail-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

.mtwp-detail-item.highlight .mtwp-detail-value {
  color: #b45309;
  font-size: 15px;
}

/* Micro Copy Button */
.mtwp-btn-copy-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.mtwp-btn-copy-sm:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.mtwp-btn-copy-sm.copied {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* Transfer Syntax Alert Box */
.mtwp-transfer-warning {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   3. STATUS RADAR & COUNTDOWN FOOTER
   ───────────────────────────────────────────────────────────── */
.mtwp-card-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mtwp-radar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
}

.mtwp-radar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
  flex-shrink: 0;
}

.mtwp-radar-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: mtwp-radar-wave 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.8;
}

@keyframes mtwp-radar-wave {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.mtwp-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", monospace;
}

/* ─────────────────────────────────────────────────────────────
   4. PAYMENT SUCCESSFUL SCREEN (STATE PAID)
   ───────────────────────────────────────────────────────────── */
.mtwp-paid-success {
  background: #ffffff;
  border-color: #a7f3d0;
}

.mtwp-success-hero {
  padding: 42px 24px 32px 24px;
  text-align: center;
  background: radial-gradient(circle at top, #ecfdf5 0%, #ffffff 70%);
}

.mtwp-success-icon-wrap {
  width: 64px;
  height: 64px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  margin-bottom: 18px;
  animation: mtwp-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mtwp-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mtwp-success-title {
  font-size: 22px;
  font-weight: 800;
  color: #064e3b;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.mtwp-success-desc {
  font-size: 14px;
  color: #065f46;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.mtwp-receipt-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 520px;
  margin: 24px auto 0 auto;
  padding: 16px 20px;
  text-align: left;
}

.mtwp-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.mtwp-receipt-row:last-child {
  border-bottom: none;
}

.mtwp-receipt-label {
  color: #64748b;
}

.mtwp-receipt-val {
  font-weight: 600;
  color: #0f172a;
}

/* Responsive */
@media (max-width: 768px) {
  .mtwp-card-grid {
    grid-template-columns: 1fr;
  }
  .mtwp-col-qr {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }
  .mtwp-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mtwp-meta-amount {
    text-align: left;
  }
}

/* ─────────────────────────────────────────────────────────────
   CHECKOUT LOGO SIZING & PREVIEW (FLATSOME & STANDARD THEMES)
   Fixes: "Logo chỗ nhập thông tin thì to quá vậy"
   ───────────────────────────────────────────────────────────── */
.woocommerce-checkout .wc_payment_methods li.wc_payment_method > label img,
.woocommerce-checkout .wc_payment_methods li label img,
.woocommerce-checkout .payment_methods li label img,
.wc_payment_method label img,
.payment_methods label img,
.mtwp-gateway-icon {
  max-height: 26px !important;
  max-width: 85px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  display: inline-block !important;
  margin-left: 8px !important;
  margin-top: -2px !important;
}

/* WooCommerce Admin Payment Settings List */
.woocommerce table.wc_gateways td.name img,
.woocommerce .wc_payment_methods td.name img {
  max-height: 28px !important;
  max-width: 90px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}

/* Interactive Checkout Preview Card */
.mtwp-checkout-preview-box {
  transition: all 0.2s ease;
}
.mtwp-checkout-preview-box:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

