/* plan pages: Transport Khata's own plan, as the customer sees it. */

/* On a narrow screen the plan as it stands comes first, then paying, then the payments (as in the app). */
@media (max-width: 1100px) {
  .plan-split > :last-child { display: contents; }
  .plan-split .plan-now-card { order: -1; }
}
.plan-now { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.plan-now.info { color: var(--navy); }
.plan-now.good { color: var(--good); }
.plan-now.bad { color: var(--bad); }
.plan-help { text-align: center; }

/* 1, 3, 6, 12 months: one row that scrolls sideways, never wraps. */
.month-options { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.month-options::-webkit-scrollbar { display: none; }
.month-option { flex: 1 0 104px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--text); }
.month-option span { font-size: 12.5px; color: var(--text2); }
.month-option:hover { background: var(--muted-bg); }
.month-option.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.month-option.on span { color: rgba(255, 255, 255, .85); }
.plan-total { margin-top: 10px; font-size: 15px; }

.pay-box { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.pay-box .qr svg { width: 168px; height: 168px; }
.upi-id { gap: 2px; font-weight: 600; overflow-wrap: anywhere; }
.upi-id .icon-btn { width: 32px; height: 32px; }
/* A upi:// link does nothing on a computer; the QR is for that. */
.upi-app-btn { display: none; align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px), (pointer: coarse) { .upi-app-btn { display: inline-flex; } }
@media (max-width: 520px) {
  .pay-box { flex-direction: column; align-items: stretch; text-align: center; }
  .pay-box .qr { align-self: center; }
  .upi-id { justify-content: center; }
  .upi-app-btn { align-self: stretch; }
}
.claim-btn { min-height: 46px; }

.plan-waiting { background: var(--good-bg); color: #0B5E33; border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plan-waiting h2 { color: var(--good); font-size: 18px; font-weight: 800; }
.plan-waiting .link { color: var(--good); padding: 6px 0; }

.plan-history { display: flex; flex-direction: column; }
.plan-history-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 7px 0; align-items: baseline; }
.plan-history-row + .plan-history-row { border-top: 1px dashed var(--line); }
