/* ============================================================
   FILE    : assets/css/payment.css
   PURPOSE : Payment method selection UI. Prefix: .gp-pay-
   ============================================================ */

.gp-pay-section { margin-top: 20px; }
.gp-pay-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-family: var(--font-mono, monospace);
}

/* ── Method grid ────────────────────────────────────────────── */
.gp-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gp-pay-method {
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.gp-pay-method:hover {
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.05);
}
.gp-pay-method.gp-pay-selected {
  border-color: #3b82f6;
  background: rgba(59,130,246,.1);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.gp-pay-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.gp-pay-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.gp-pay-info {}
.gp-pay-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  margin-bottom: 2px;
}
.gp-pay-desc {
  font-size: 11px;
  color: var(--text-muted, #64748b);
}
.gp-pay-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
}
.gp-pay-badge--popular {
  background: rgba(34,197,94,.15);
  color: #4ade80;
}
.gp-pay-badge--instant {
  background: rgba(59,130,246,.15);
  color: #60a5fa;
}

/* Selected indicator dot */
.gp-pay-method.gp-pay-selected::after {
  content: '✓';
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: #3b82f6;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
}

/* ── Gateway notice ─────────────────────────────────────────── */
.gp-pay-gateway-notice {
  margin-top: 14px;
  background: rgba(234,179,8,.07);
  border: 1px solid rgba(234,179,8,.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #fbbf24;
  line-height: 1.5;
}
.gp-pay-gateway-notice-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Billing cycle toggle ───────────────────────────────────── */
.gp-billing-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 16px;
}
.gp-billing-btn {
  padding: 7px 18px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-family: var(--font, inherit);
}
.gp-billing-btn.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,.35);
}
.gp-billing-save {
  font-size: 10px;
  font-weight: 700;
  background: rgba(34,197,94,.15);
  color: #4ade80;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
  font-family: var(--font-mono, monospace);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .gp-pay-grid { grid-template-columns: 1fr; }
}