/* ---------- one pricing modal (_pricing_modal.html) ---------- */
.pricing-modal { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  margin: auto; padding: 18px 22px 8px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg, var(--card)); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
.pricing-modal::backdrop { background: rgba(10, 14, 20, .62); }
.pricing-modal .plan-cards { margin: 0 0 10px; }
.pricing-modal .pc-grid { padding-top: 12px; }
.pm-close-row { display: flex; justify-content: flex-end; margin: -6px -10px 0 0; }
.pm-close { width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: none;
  color: var(--slate-2); font: 400 26px/1 var(--font-body); cursor: pointer; }
.pm-close:hover, .pm-close:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
@media (max-width: 520px) {
  .pricing-modal { padding: 12px 14px 4px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .pricing-modal .pc-card { padding: 18px 16px 16px; }
}
/* The dialog sits outside .portal-ui, so carry the portal's ghost buttons in:
   Free and Done for you stay outlined and Buy Now stays the one filled button. */
.pricing-modal .btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.pricing-modal .btn.ghost:hover { background: var(--bg-3); color: var(--ink); }
