/* wm-plan-picker: choose a plan; monthly/yearly switch rolls the prices; the chosen plan opens its details.
   Adapted from Watermelon UI (MIT), changeable-pricing-section (billing pill, price swap y + opacity, details
   height auto 0.4 s, selection ring). Vanilla port by SilverLion. Colours/fonts come from the host page:
   --wm-plan-accent, --wm-plan-line, --wm-plan-bg, --wm-plan-radius. */
.wm-plans { display: grid; gap: 10px; }
.wm-plan { position: relative; display: block; cursor: pointer; padding: 16px 18px; border-radius: var(--wm-plan-radius, 14px);
  background: var(--wm-plan-bg, transparent); box-shadow: inset 0 0 0 1px var(--wm-plan-line, color-mix(in oklab, currentColor 16%, transparent));
  transition: box-shadow 0.25s ease, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1); }
.wm-plan:active { transform: scale(0.99); }
.wm-plan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--wm-plan-accent, currentColor); }
.wm-plan:has(input:focus-visible) { outline: 2px solid var(--wm-plan-accent, currentColor); outline-offset: 3px; }
.wm-plan input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.wm-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wm-plan-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--wm-plan-line, color-mix(in oklab, currentColor 30%, transparent)); transition: box-shadow 0.3s var(--wm-spring, ease); align-self: center; }
.wm-plan:has(input:checked) .wm-plan-dot { box-shadow: inset 0 0 0 5px var(--wm-plan-accent, currentColor); }
.wm-plan-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--wm-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
.wm-plan-more > div { overflow: hidden; min-height: 0; opacity: 0; transform: translate3d(0, -4px, 0); transition: opacity 0.25s ease, transform 0.4s var(--wm-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
.wm-plan:has(input:checked) .wm-plan-more { grid-template-rows: 1fr; }
.wm-plan:has(input:checked) .wm-plan-more > div { opacity: 1; transform: none; }
.wm-plan [data-price] { display: inline-grid; }
.wm-plan [data-price] > span { grid-area: 1 / 1; transition: opacity 0.2s ease, transform 0.4s var(--wm-spring, cubic-bezier(0.34, 1.3, 0.64, 1)); }
.wm-plan [data-price] > span[aria-hidden="true"] { opacity: 0; transform: translate3d(0, 0.5em, 0); }
@media (prefers-reduced-motion: reduce) { .wm-plan, .wm-plan *, .wm-plan-more { transition: none !important; } }
