/*
 * Boat Analysis Tools — Public CSS v3.2.0
 * Advanced Payment Gateway UI, Instant Receipt, Visual Cards & Bulletproof Responsiveness
 */

/* =========================================================
   PAYMENT METHODS & CHECKOUT EXPERIENCE
   ========================================================= */

.ba-payment-methods-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 14px;
}

/* Payment Filter / Tabs */
.ba-pmethod-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ba-pmethod-tab {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.ba-pmethod-tab:hover {
  border-color: #00d2ff;
  color: #030a14;
  transform: translateY(-1px);
}

.ba-pmethod-tab.active {
  background: linear-gradient(135deg, #09172c 0%, #030a14 100%);
  color: #00d2ff;
  border-color: #00d2ff;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}

/* Individual Payment Card */
.ba-pmethod-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 0 8px 30px rgba(3, 10, 20, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.ba-pmethod-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 16px 45px rgba(0, 210, 255, 0.15);
}

/* Stripe — subtle purple border */
.ba-pmethod-stripe { border-left: 5px solid #635BFF; }
/* PayPal — blue & yellow border */
.ba-pmethod-paypal { border-left: 5px solid #FFC439; }
/* Payoneer — vibrant orange border */
.ba-pmethod-payoneer { border-left: 5px solid #FF4800; }
/* Bank Wire — navy border */
.ba-pmethod-bank { border-left: 5px solid #0F4C81; }

.ba-pmethod-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.ba-pmethod-icon-wrap {
  flex-shrink: 0;
  padding-top: 3px;
}

.ba-pmethod-title {
  font-size: 21px;
  font-weight: 900;
  color: #030a14;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.ba-pmethod-desc {
  font-size: 14.5px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

.ba-pmethod-body {
  border-top: 1px solid #f1f5f9;
  padding-top: 22px;
}

/* Action Buttons */
.ba-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.ba-pay-btn--stripe {
  background: linear-gradient(135deg, #635BFF 0%, #4F46E5 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(99, 91, 255, 0.4);
}

.ba-pay-btn--stripe:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(99, 91, 255, 0.55);
}

.ba-pay-btn--paypal {
  background: linear-gradient(135deg, #FFC439 0%, #f0a500 100%);
  color: #003087 !important;
  box-shadow: 0 10px 30px rgba(255, 196, 57, 0.45);
}

.ba-pay-btn--paypal:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 196, 57, 0.6);
}

.ba-pay-btn--confirm {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
}

.ba-pay-btn--confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.5);
}

/* Trust line under buttons */
.ba-pmethod-trust {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 14px 0 0 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Detail box for Payoneer & Bank Wire */
.ba-pmethod-detail-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.ba-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.ba-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ba-detail-label {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 150px;
  flex-shrink: 0;
}

.ba-detail-val {
  font-size: 15px;
  font-weight: 800;
  color: #030a14;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 1-Click Copy Button */
.ba-copy-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ba-copy-btn:hover {
  background: #00d2ff;
  border-color: #00d2ff;
  color: #ffffff;
}

.ba-copy-btn.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* Bank wire pre block */
.ba-bank-pre {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.85;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* Admin notice for unconfigured gateways */
.ba-pmethod-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   CHECKOUT PAGE ORDER SUMMARY BOX
   ========================================================= */
.ba-checkout-summary {
  background: linear-gradient(135deg, #030a14 0%, #09172c 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(3, 10, 20, 0.35);
}

.ba-checkout-summary .ba-amount-label {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ba-checkout-summary .ba-amount-value {
  font-size: 38px;
  font-weight: 900;
  color: #00d2ff;
  margin: 4px 0 0 0;
  line-height: 1;
}

.ba-checkout-meta-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ba-checkout-meta-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

/* =========================================================
   PAYMENT CONFIRMATION / PROOF SUBMISSION FORM
   ========================================================= */
.ba-confirm-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 30px 32px;
  margin-top: 32px;
  box-shadow: 0 10px 35px rgba(3, 10, 20, 0.07);
}

.ba-confirm-card h3 {
  font-size: 22px;
  font-weight: 900;
  color: #030a14;
  margin: 0 0 8px 0;
}

.ba-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .ba-confirm-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   VERIFIED ORDER RECEIPT SCREEN (Instant Success)
   ========================================================= */
.ba-receipt-card {
  background: #ffffff;
  border: 2px solid #10b981;
  border-radius: 24px;
  padding: clamp(30px, 5vw, 55px);
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.18);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.ba-receipt-icon {
  width: 80px;
  height: 80px;
  background: #f0fdf4;
  color: #10b981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 20px;
  border: 2px solid #bbf7d0;
}

.ba-receipt-title {
  font-size: 32px;
  font-weight: 900;
  color: #030a14;
  margin: 0 0 10px 0;
}

.ba-receipt-desc {
  font-size: 17px;
  color: #475569;
  max-width: 580px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.ba-receipt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 28px;
}

.ba-receipt-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.ba-receipt-table tr:last-child td {
  border-bottom: none;
}

.ba-receipt-table td:first-child {
  font-weight: 800;
  color: #64748b;
  width: 40%;
}

.ba-receipt-table td:last-child {
  font-weight: 900;
  color: #030a14;
}

/* =========================================================
   DIRECT CREDIT / DEBIT CARD PAYMENT INTERFACE
   ========================================================= */

.ba-card-form-container {
  background: #ffffff;
  border: 2px solid #00d2ff;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 14px 45px rgba(0, 210, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.ba-card-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00d2ff 0%, #635BFF 50%, #10b981 100%);
}

.ba-card-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.ba-card-form-title {
  font-size: 22px;
  font-weight: 900;
  color: #030a14;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ba-card-brands-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-card-brand-icon {
  height: 26px;
  padding: 3px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  transition: all 0.2s ease;
}

.ba-card-brand-icon.active {
  background: #030a14;
  color: #00d2ff;
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
  transform: scale(1.08);
}

.ba-card-field-group {
  margin-bottom: 18px;
}

.ba-card-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.ba-card-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.ba-card-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  font-size: 16px;
  font-weight: 700;
  color: #030a14;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.ba-card-input:focus {
  background: #ffffff;
  border-color: #00d2ff;
  box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.15);
}

.ba-card-input--noicon {
  padding-left: 16px;
}

.ba-card-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.ba-card-pay-btn {
  width: 100%;
  background: linear-gradient(135deg, #00d2ff 0%, #0084ff 100%);
  color: #030a14;
  font-size: 18px;
  font-weight: 900;
  padding: 18px 28px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
  transition: all 0.25s ease;
  margin-top: 10px;
}

.ba-card-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 210, 255, 0.55);
}

.ba-card-secure-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.ba-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(3, 10, 20, 0.2);
  border-radius: 50%;
  border-top-color: #030a14;
  animation: spin 0.8s linear infinite;
}

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

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .ba-card-row-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ba-checkout-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .ba-pmethod-card {
    padding: 22px 18px;
  }

  .ba-pmethod-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ba-pay-btn {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
    padding: 16px 20px;
  }

  .ba-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ba-detail-label {
    min-width: unset;
  }
}

/* Yacht gallery grid — responsive */
@media (max-width: 900px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
    height: 220px !important;
  }
}

/* Receipt card print styles */
@media print {
  .ba-site-header, .ba-site-footer, .ba-pmethod-nav, .ba-confirm-card,
  .ba-payment-methods-wrap, .ba-card-form-container, nav, button.ba-button-secondary { display: none !important; }
  .ba-receipt-card { box-shadow: none !important; border: 2px solid #ccc !important; }
}
