/* Subscription controls on the wellness plans cards.
   Scoped to .plan-* so nothing here reaches the rest of the site. */

.plan-sub {
  margin-top: auto;
  padding-top: 14px;
  text-align: left;
}

.plan-terms {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.plan-terms a {
  color: var(--accent);
  text-decoration: underline;
}

.plan-agree-row {
  display: flex;
  /* In a flex row the checkbox stretches to the text height without this. */
  align-items: flex-start;
  gap: 9px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 12px;
}

.plan-agree-row input {
  margin-top: 2px;
  flex-shrink: 0;
}

/* Dimmed until consent is given, so it is obvious why the button is inert
   rather than looking broken. */
.plan-paypal {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s;
  min-height: 46px;
}

.plan-ready .plan-paypal {
  opacity: 1;
  pointer-events: auto;
}

@keyframes plan-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.plan-shake { animation: plan-shake 0.4s; }

.plan-done {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: center;
}

.plan-done p { margin: 0 0 8px; }

.plan-done a {
  color: var(--accent);
  text-decoration: underline;
}

/* Placeholder while the real prices load. The cards used to be hardcoded with
   a stale $90, which flashed before the CMS values replaced it — a client
   briefly seeing the wrong price is worse than seeing nothing. */
.plans-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 0;
}
