/* Subscription plan cards (pay/docs/subscriptions/README.md, M6): the landing page plancards
   component (gatemain theme) and, later, the billing page (admin theme). Self-contained: own colour
   variables, no theme classes except Bootstrap's .btn-check. */
.gm-plans {
  --gmp-navy: #010e28;
  --gmp-cyan: #03BFCB;
  --gmp-cyan-dark: #029AAA;
  --gmp-text: #475569;
  --gmp-muted: #64748B;
  --gmp-line: #E2E8F0;
  font-size: 14px;
  color: var(--gmp-text);
}
.gm-plans[data-interval="month"] [data-show="year"],
.gm-plans[data-interval="year"] [data-show="month"] { display: none !important; }
.gm-plans-toggle {
  display: flex;
  width: max-content;
  margin: 0 auto 2rem;
  padding: .3rem;
  border: 1px solid var(--gmp-line);
  border-radius: 999px;
  background: #fff;
}
.gm-plans-toggle label {
  padding: .45rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--gmp-navy);
  cursor: pointer;
}
.gm-plans-toggle .btn-check:checked + label { background: var(--gmp-cyan); color: #fff; }
.gm-plans-toggle .btn-check:focus-visible + label { outline: 2px solid var(--gmp-cyan-dark); outline-offset: 2px; }
.gm-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.gm-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--gmp-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 22px 48px -32px rgba(1, 14, 40, .28);
}
.gm-plan.highlighted { border: 2px solid var(--gmp-cyan); }
.gm-plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: .3rem .9rem;
  border-radius: 999px;
  background: var(--gmp-cyan);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gm-plan-name {
  margin: 0 0 .5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gmp-navy);
  text-align: center;
}
.gm-plan-description { margin-bottom: 1rem; text-align: center; color: var(--gmp-muted); }
.gm-plan-description > :last-child { margin-bottom: 0; }
.gm-plan-description ul, .gm-plan-description ol { display: inline-block; margin: .5rem 0 0; padding-left: 1.1rem; text-align: left; }
.gm-plan-price { margin: .5rem 0 1rem; text-align: center; }
.gm-plan-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gmp-navy);
}
.gm-plan-period { color: var(--gmp-muted); font-size: .82rem; }
.gm-plan-saving {
  display: inline-block;
  margin-top: .4rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
  font-size: .75rem;
  font-weight: 700;
}
.gm-plan-note { margin-bottom: .5rem; font-size: .82rem; color: var(--gmp-muted); text-align: center; }
.gm-plan-note .ti { color: var(--gmp-cyan); }
.gm-plan-features { list-style: none; margin: .75rem 0 1.5rem; padding: 0; flex-grow: 1; }
.gm-plan-features li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--gmp-line);
}
.gm-plan-features li:last-child { border-bottom: 0; }
.gm-plan-features li span { flex-grow: 1; }
.gm-plan-features li span { min-width: 0; overflow-wrap: anywhere; }
.gm-plan-features li strong { flex: 0 1 auto; max-width: 45%; color: var(--gmp-navy); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.gm-plan-features li.on .ti { color: #16A34A; }
.gm-plan-features li.off { color: #94A3B8; }
.gm-plan-features li.off strong { color: #94A3B8; font-weight: 500; }
.gm-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: auto;
  padding: .75rem 1.25rem;
  border: 1px solid #CBD5E1;
  border-radius: .65rem;
  background: transparent;
  color: var(--gmp-navy) !important;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.gm-plan-button:hover { border-color: var(--gmp-navy); background: #fff; }
.gm-plan-button.primary { border-color: var(--gmp-cyan); background: var(--gmp-cyan); color: #fff !important; }
.gm-plan-button.primary:hover { border-color: var(--gmp-cyan-dark); background: var(--gmp-cyan-dark); }
@media (max-width: 575.98px) {
  .gm-plans-toggle label { padding: .45rem 1rem; }
  .gm-plan { padding: 1.75rem 1.15rem 1.25rem; }
}

/* Plan choice on the billing page: a selectbox control whose options are the cards. */
.gm-plans-select.interval-month input[data-interval="year"] + label,
.gm-plans-select.interval-year input[data-interval="month"] + label { display: none; }
.gm-plans-select { margin-top: 1rem; }
.gm-plan-option { display: block; margin: 0; cursor: pointer; }
.gm-plan-option .gm-plan { height: 100%; transition: border-color .15s, box-shadow .15s; }
.gm-plan-option:hover .gm-plan { border-color: var(--gmp-cyan-dark); }
input:checked + .gm-plan-option .gm-plan {
  border: 2px solid var(--gmp-cyan);
  box-shadow: 0 0 0 4px rgba(3, 191, 203, .18), 0 22px 48px -32px rgba(1, 14, 40, .28);
}
input:focus-visible + .gm-plan-option .gm-plan { outline: 2px solid var(--gmp-cyan-dark); outline-offset: 2px; }
.gm-plan-current {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: #E2E8F0;
  color: var(--gmp-navy);
  font-size: .7rem;
  font-weight: 700;
}
