/* JirGear UI — small layout fixes for the prerendered public pages, 2026-11-14. Presentation only, loads after the page bundle.
   Legal pages: the document links on top (Privacy / User Agreement / Plans / Support) were inline pills — a long one broke
   in half across two lines on phones. They are now whole pills that wrap as units. */
html:root:root body.jg-legal main>nav{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html:root:root body.jg-legal main>nav>a{display:inline-flex!important;align-items:center;white-space:nowrap!important;margin:0!important}

/* Tariffs page: what every plan includes, under the lead (2026-11-14). Four short facts, two columns on wide screens. */
html:root:root body.jg-site .ui-store-facts{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,max-content));gap:8px 28px}
html:root:root body.jg-site .ui-store-facts li{position:relative;padding-left:24px;font-size:14px;line-height:1.45;color:var(--ui-text-2,#c7c7cc)}
html:root:root body.jg-site .ui-store-facts li::before{content:"";position:absolute;left:0;top:2px;width:16px;height:16px;border-radius:50%;
  background:var(--g-ctl,#ffffff1a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23f5f5f7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
@media (max-width:640px){html:root:root body.jg-site .ui-store-facts{grid-template-columns:1fr;gap:7px}}
html:root:root body.jg-site #product-catalog .product-badge[hidden]{display:none!important}

/* Tariffs page: paused subscriptions (only while the global freeze is on, from /api/public/status). */
html:root:root body.jg-site .ui-store-paused{margin:14px 0 0;padding:12px 14px;border-radius:14px;max-width:640px;font-size:14px;line-height:1.45;
  color:var(--ui-text,#f5f5f7);background:#f2b75a1f;border:1px solid #f2b75a59}

/* Tariffs page, phones: the bundle fixes every plan card at 136px. A slot card has one more line ("30 дней"),
   so its Buy button stuck out 10px into the next card. On the slots tab the height is a minimum instead; other tabs untouched. */
@media (max-width:640px){html:root:root body.jg-products #product-catalog[aria-labelledby="category-slots"] .plan-row-grid :is(.product-card,.product-card.best){height:auto!important;min-height:136px!important}}
