/* ADS V2.6 — Pricing & Affiliate compatibility */
.affiliate-discount-banner,
.affiliate-code-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:18px 0;
  padding:16px 18px;
  border-radius:16px;
}
.affiliate-discount-banner {
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  color:#166534;
}
.affiliate-discount-banner div,
.affiliate-code-card > div:first-child {display:flex;flex-direction:column;gap:4px}
.affiliate-discount-banner span,
.affiliate-code-card span {font-size:13px;color:#64748b}
.affiliate-code-form {display:flex;gap:8px;min-width:min(420px,100%)}
.affiliate-code-form .input {min-width:0}

.pricing-checkout-card {padding:22px;margin-top:18px}
.pricing-location {
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 16px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;
  color:#1e40af;margin-bottom:22px;
}
.pricing-location > div {display:flex;align-items:center;gap:9px}
.pricing-location svg {width:19px;height:19px}
.pricing-location small {color:#64748b}
.checkout-step {display:flex;align-items:flex-start;gap:12px;margin:18px 0 12px}
.checkout-step > span {
  width:32px;height:32px;display:grid;place-items:center;border-radius:10px;
  background:#0d203b;color:#fff;font-weight:800;flex:0 0 auto;
}
.checkout-step h3 {margin:0;font-size:18px;color:#0f172a}
.checkout-step p {margin:4px 0 0;color:#64748b;font-size:13px}
.pricing-course-grid,.payment-choice-grid {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;
}
.pricing-course-card,.payment-choice {
  width:100%;text-align:right;border:2px solid #e2e8f0;background:#fff;
  border-radius:16px;padding:17px;cursor:pointer;transition:.18s ease;color:#0f172a;
}
.pricing-course-card:hover,.payment-choice:hover {transform:translateY(-2px);border-color:#93c5fd}
.pricing-course-card.active,.payment-choice.active {border-color:#2563eb;background:#eff6ff;box-shadow:0 10px 24px rgba(37,99,235,.08)}
.payment-choice:disabled {opacity:.48;cursor:not-allowed;transform:none}
.pricing-course-badge {display:inline-flex;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:700;margin-bottom:10px}
.pricing-course-card strong,.payment-choice span {display:block;font-size:16px;font-weight:800}
.pricing-course-price {font-size:28px;font-weight:800;color:#1d4ed8;margin-top:12px;line-height:1}
.pricing-course-price small {font-size:13px;color:#64748b}
.pricing-old-price {margin-top:8px;color:#94a3b8;text-decoration:line-through;font-size:13px}
.pricing-saving {margin-top:7px;color:#166534;font-weight:700;font-size:12px}
.payment-choice small {display:block;color:#64748b;line-height:1.65;margin-top:7px}
.checkout-section {margin-top:24px;padding-top:6px;border-top:1px solid #e2e8f0}
.installment-note {margin-top:12px;padding:12px 14px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px;line-height:1.7;font-weight:600}
.payment-method-details {margin-top:14px;padding:18px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.payment-method-details h4 {margin:0 0 7px;color:#0f172a}
.payment-method-details p {margin:0 0 13px;color:#64748b;line-height:1.7}
.checkout-link {width:100%;justify-content:center}
.checkout-link.disabled {pointer-events:none;opacity:.55}
.checkout-summary {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;
  margin-top:18px;padding:15px;border-radius:14px;background:#0f172a;color:#fff;
}
.checkout-summary > div {display:flex;flex-direction:column;gap:3px}
.checkout-summary small {color:#cbd5e1;font-size:11px}
.checkout-summary strong {font-size:16px}
.checkout-discount strong {color:#86efac}
.pricing-payment-form {display:grid;gap:13px;margin-top:16px}

@media (max-width:760px){
  .affiliate-discount-banner,.affiliate-code-card,.pricing-location{align-items:stretch;flex-direction:column}
  .affiliate-code-form{min-width:0;width:100%;flex-direction:column}
  .pricing-checkout-card{padding:15px}
  .pricing-course-grid,.payment-choice-grid{grid-template-columns:1fr}
  .checkout-summary{grid-template-columns:1fr 1fr}
}
@media (max-width:480px){.checkout-summary{grid-template-columns:1fr}}
