/* Subscription state: the renewal warning and the upgrade prompt.
 *
 * Both are deliberately quiet. A banner that shouts at somebody who still has
 * three weeks left is one they learn to dismiss without reading, so only the
 * grace period and an actual expiry get the urgent treatment.
 */

.plan-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ebid-gold, #d69e2e);
  background: rgba(214, 158, 46, 0.1);
}

.plan-banner.is-urgent {
  border-color: var(--danger);
  background: rgba(197, 48, 48, 0.1);
}

.plan-banner-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; font-weight: 700; }
.plan-banner-actions { display: flex; gap: 8px; flex: none; }
.plan-banner-actions .btn { padding: 8px 14px; font-size: 12.5px; white-space: nowrap; }

@media (max-width: 620px) {
  .plan-banner { flex-wrap: wrap; }
  .plan-banner-actions { width: 100%; }
  .plan-banner-actions .btn, .plan-banner-actions .btn { flex: 1; }
}

/* The upgrade prompt. A dialog rather than an inline card because it answers a
   click that just failed — it has to appear where the attention already is. */
.plan-upgrade {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 12, 22, 0.42);
  animation: plan-fade 0.18s ease-out;
}

.plan-upgrade-card {
  max-width: 420px;
  width: 100%;
  padding: 22px 22px 18px;
  text-align: center;
}

.plan-upgrade-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.plan-upgrade-body { font-size: 13.5px; line-height: 1.6; opacity: 0.85; margin-bottom: 18px; }
.plan-upgrade-actions { display: flex; gap: 10px; justify-content: center; }
.plan-upgrade-actions .btn { padding: 10px 18px; font-size: 13px; }

@keyframes plan-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .plan-upgrade { animation: none; }
}

/* The wallet picker. It has to be legible on a phone, which is where most of
   these payments start.

   Two columns, because the list went from one wallet to twelve. A single
   column of twelve pushes the phone field and the pay button off the bottom of
   a phone screen, and a dialog whose primary action you have to scroll to find
   reads as broken. The grid is capped rather than auto-fit: three columns fits
   across a laptop but leaves "Bank of Abyssinia" wrapping onto two lines. */
.pay-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  text-align: left;
  max-height: 54vh;
  overflow-y: auto;
}
@media (max-width: 330px) {
  .pay-providers { grid-template-columns: 1fr; }
}

.pay-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--stage-border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
/* Wraps rather than truncates. Ellipsis turned five of these into "Coopa…",
   "Wegag…" and "Ahadu …", which is the one thing a payment label cannot do:
   the bank's name is the whole of what distinguishes them, and a customer
   matching this list against the app on their phone has nothing left to match
   on. Two lines costs a little height and keeps every name readable. */
.pay-provider span {
  min-width: 0;
  line-height: 1.25;
}
.pay-provider:has(input:checked) {
  border-color: var(--ebid-primary, #1e40af);
  background: var(--ebid-info-soft, rgba(37, 99, 235, 0.1));
}

.pay-phone { display: block; text-align: left; margin-bottom: 12px; }
.pay-phone span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.pay-phone input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  /* Exactly 16px, not a shade under: iOS zooms the whole page when a focused
     input is smaller than that, and it does not zoom back out. */
  font-size: 16px;
  border: 1px solid var(--stage-border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  background: var(--surface-soft, transparent);
  color: inherit;
}

.pay-error {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 10px;
  text-align: left;
}

/* Same offer, inside the app's packages page. */
.trial-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: center;
  border: 1px solid var(--ebid-gold, #d69e2e);
  background: rgba(214, 158, 46, 0.1);
}
.trial-banner strong { font-size: 14px; font-weight: 800; }
.trial-banner span { font-size: 12.5px; opacity: 0.85; }

.tier-trial {
  font-size: 12px;
  font-weight: 800;
  color: var(--ebid-gold, #d69e2e);
  margin: -6px 0 12px;
}
