/* Studentix — окна оплаты (этап P, п. 3 владельца): разметка, вид, поведение и анимации как у окон slidepix
   (editor/okna: #premium, #tokens, #notify), тексты, цены и токены — Studentix. Скрипт — js/stx-pay.js.
   Все классы с приставкой stx-pw- (проверено grep по templates/Default/css и editor-v2: пересечений нет;
   .screen/.modal/.btn/.reviews/.plan-card из slidepix заняты на сайте, поэтому переименованы).
   Цвета — свои переменные с запасными значениями: окно открывается и в редакторе, где tokens.css нет. */

/* P13-OWNER-BLOG: блокируем прокрутку только у html. При body{overflow:hidden} и height:100% тело становилось своим окном прокрутки, и страница уезжала вверх */
html.stx-pw-lock { overflow: hidden; }

.stx-pw {
  --pw-primary: var(--stx-accent, #2F6BFF);
  --pw-primary-hover: var(--stx-accent-hover, #2258EE);
  --pw-primary-active: var(--stx-accent-active, #1B4DD6);
  --pw-primary-text: var(--stx-accent-text, #1F52D9);
  --pw-navy: #2a3d60;
  --pw-navy-deep: #172033;
  --pw-muted: #637188;
  --pw-border: #dce5f1;
  --pw-border-soft: #dbe8fb;
  --pw-bg-soft: #f1f5fa;
  --pw-bg-tint: #edf4ff;
  --pw-shadow-modal: 0 25px 50px rgba(23, 32, 51, .22);
  --pw-shadow-card: 0 5px 13px rgba(25, 33, 61, .1);
  --pw-r-modal: 16px;
  --pw-r-card: 12px;
  --pw-r-btn: 10px;
  --pw-font: var(--stx-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif);
  position: fixed; inset: 0; z-index: 2147483100;
  font-family: var(--pw-font); color: var(--pw-navy); text-align: left;
  -webkit-font-smoothing: antialiased;
}
.stx-pw *, .stx-pw *::before, .stx-pw *::after { box-sizing: border-box; }
/* сброс через :where() — вес одного класса, поэтому классы ниже (.stx-pw-btn--primary и т. п.) его перекрывают */
.stx-pw :where(button, input) { font: inherit; letter-spacing: inherit; }
.stx-pw :where(button) { cursor: pointer; border: 0; background: none; padding: 0; color: inherit; text-transform: none; }
.stx-pw :where(button):focus { outline: none; }
.stx-pw :where(button, [tabindex="0"]):focus-visible { outline: 2px solid rgba(47, 107, 255, .45); outline-offset: 2px; }
.stx-pw :where(svg) { display: block; flex-shrink: 0; }
.stx-pw :where(p, h2, h3) { margin: 0; }

/* —— подложка и окно (как .stage__overlay и .modal) —— */
.stx-pw__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(23, 32, 51, .25);
  -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px);
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  opacity: 0; transition: opacity .32s ease;
}
.stx-pw__overlay.is-visible { opacity: 1; }
.stx-pw__modal {
  position: relative; width: 100%;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; background: #fff; border: 1px solid var(--pw-border); border-radius: var(--pw-r-modal);
  box-shadow: var(--pw-shadow-modal); overflow: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(18px) scale(.96);
  transition: opacity .32s cubic-bezier(.22, 1, .36, 1), transform .32s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.stx-pw__modal.is-open { opacity: 1; transform: none; }
.stx-pw__modal.is-closing { opacity: 0; transform: translateY(10px) scale(.97); }

.stx-pw__close {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: var(--pw-navy);
  transition: background-color .2s ease, transform .2s ease;
}
.stx-pw__close:hover { background: var(--pw-bg-soft); transform: rotate(90deg); }
.stx-pw__close:active { transform: rotate(90deg) scale(.94); }

.stx-pw__head { display: flex; gap: 15px; align-items: center; padding-right: 48px; }
.stx-pw__icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--pw-bg-tint);
  display: grid; place-items: center; flex-shrink: 0; color: var(--pw-primary);
}
.stx-pw__title { font-size: 24px; font-weight: 700; line-height: 32px; color: var(--pw-navy); letter-spacing: -.01em; }
.stx-pw__desc { font-size: 14px; line-height: 24px; color: var(--pw-navy); }
.stx-pw__desc b { font-weight: 600; }
.stx-pw__msg { min-height: 0; font-size: 13px; line-height: 18px; color: #b42318; }
.stx-pw__msg:empty { display: none; }

/* —— бейджи —— */
.stx-pw-badge {
  display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 8px;
  border-radius: 5px; font-size: 10px; font-weight: 600; line-height: 1.28; letter-spacing: .02em;
  background: var(--pw-bg-soft); color: var(--pw-primary-text); text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

/* —— кнопки —— */
.stx-pw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 12px 16px; border-radius: var(--pw-r-btn);
  font-size: 14px; font-weight: 600; line-height: 20px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.stx-pw-btn svg { transition: transform .2s ease; }
.stx-pw-btn:hover { transform: translateY(-1px); }
.stx-pw-btn:hover svg { transform: translateY(-1px); }
.stx-pw-btn:active { transform: translateY(0) scale(.98); }
.stx-pw-btn--primary { background: var(--pw-primary); color: #fff !important; box-shadow: 0 8px 18px rgba(47, 107, 255, .22); }
.stx-pw-btn--primary:hover { background: var(--pw-primary-hover); box-shadow: 0 10px 22px rgba(47, 107, 255, .34); }
.stx-pw-btn--primary:active { background: var(--pw-primary-active); box-shadow: 0 4px 10px rgba(47, 107, 255, .22); }
.stx-pw-btn--ghost { background: #fff; border: 1px solid var(--pw-border); color: var(--pw-navy-deep); }
.stx-pw-btn--ghost:hover { border-color: #c5d3e8; background: #fbfcfe; box-shadow: 0 6px 14px rgba(42, 61, 96, .08); }
.stx-pw-btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* —— галочки (как .checkbox slidepix) —— */
.stx-pw-check { position: relative; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; user-select: none; }
.stx-pw-check__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.stx-pw-check__box {
  width: 18px; height: 18px; border-radius: 4px; background: #fff; border: 1px solid var(--pw-primary-text);
  box-shadow: 0 0 6.4px rgba(131, 130, 255, .2), 0 .5px 10.7px rgba(131, 130, 255, .1);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.stx-pw-check__box svg {
  opacity: 0; transform: scale(.5);
  transition: opacity .18s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
.stx-pw-check__input:checked + .stx-pw-check__box { background: var(--pw-primary); border-color: var(--pw-primary); box-shadow: 0 4px 10px rgba(47, 107, 255, .28); }
.stx-pw-check__input:checked + .stx-pw-check__box svg { opacity: 1; transform: scale(1); }
.stx-pw-check__input:focus-visible + .stx-pw-check__box { outline: 2px solid rgba(47, 107, 255, .45); outline-offset: 2px; }
.stx-pw-check:hover .stx-pw-check__box { transform: scale(1.05); }
.stx-pw-check__text { font-size: 12px; line-height: 16px; color: var(--pw-navy); transition: color .2s ease; }
.stx-pw-check__text a { display: inline; color: var(--pw-primary-text); text-decoration: underline; }
.stx-pw-check__text a:hover { color: var(--pw-primary-hover); }
.stx-pw-check:hover .stx-pw-check__text { color: var(--pw-navy-deep); }

/* —— карточки тарифов и наборов (как .plan-card) —— */
.stx-pw-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  border-radius: var(--pw-r-card); border: 1px solid var(--pw-border); background: #fff;
  padding: 18px 16px; text-align: left; cursor: pointer;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.stx-pw-card:hover { border-color: #c5d7f5; box-shadow: 0 8px 18px rgba(47, 107, 255, .1); transform: translateY(-2px); }
.stx-pw-card.is-active { border-color: var(--pw-primary); background: var(--pw-bg-tint); box-shadow: 0 10px 22px rgba(47, 107, 255, .16); }
.stx-pw-card.is-active .stx-pw-badge { background: var(--pw-primary); color: #fff; }
.stx-pw-card.is-disabled { cursor: default; opacity: .6; }
.stx-pw-card.is-disabled:hover { transform: none; box-shadow: none; border-color: var(--pw-border); }
.stx-pw-card__title { margin-top: 10px !important; font-size: 18px; font-weight: 700; line-height: 28px; color: var(--pw-navy); }
.stx-pw-card__sub { margin-top: 4px !important; font-size: 11px; line-height: 14px; color: var(--pw-muted); }
.stx-pw-card.is-active .stx-pw-card__sub { color: var(--pw-navy); }
.stx-pw-card__price { margin-top: 8px !important; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--pw-navy); }
.stx-pw-card__sub--custom { margin-top: 10px !important; max-width: 172px; }
.stx-pw-card__was { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--pw-muted); }
.stx-pw-card__was s { text-decoration-thickness: 1px; }
.stx-pw-card__off { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 4px; background: #e8f6ee; color: #1f7a45; font-size: 11px; font-weight: 700; }
.stx-pw-card__counter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; padding-top: 12px; }
.stx-pw-card__counter-row .stx-pw-card__price { margin: 0 !important; text-align: right; white-space: nowrap; font-size: 18px; }
.stx-pw-card--custom .stx-pw-card__counter-row { gap: 8px; }

/* —— счётчик —— */
.stx-pw-counter {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 73px; height: 31px; padding: 0 4px; border-radius: 6px; background: var(--pw-bg-soft);
}
.stx-pw-counter__btn {
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; color: var(--pw-navy);
  transition: background-color .15s ease, transform .15s ease;
}
.stx-pw-counter__btn:hover { background: rgba(47, 107, 255, .12); transform: scale(1.08); }
.stx-pw-counter__btn:active { transform: scale(.94); }
.stx-pw-counter__value {
  width: 46px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent;
  text-align: center; font-size: 14px; font-weight: 500; color: var(--pw-navy); -moz-appearance: textfield; appearance: textfield;
}
.stx-pw-counter__value:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px rgba(47, 107, 255, .25); }
.stx-pw-counter__value::-webkit-outer-spin-button, .stx-pw-counter__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* —— окно токенов (#tokens) —— */
.stx-pw__modal--tokens { max-width: 760px; padding: 24px; display: flex; flex-direction: column; }
.stx-pw__pad { display: flex; flex-direction: column; gap: 12px; }
.stx-pw-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.stx-pw-plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stx-pw__modal--tokens .stx-pw-card { min-height: 147px; }
.stx-pw-balance { font-size: 13px; line-height: 20px; color: var(--pw-muted); }
.stx-pw-balance b { color: var(--pw-navy); font-weight: 600; }
.stx-pw-spend { margin-top: 12px; padding: 16px 13px; border-radius: var(--pw-r-card); border: 1px solid var(--pw-border); background: var(--pw-bg-soft); }
.stx-pw-spend h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--pw-navy-deep); }
.stx-pw-spend__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 5px; }
.stx-pw-spend__item { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 20px; color: var(--pw-muted); }
.stx-pw-spend__item svg { margin-top: 2px; color: var(--pw-primary); }
.stx-pw-spend__item b { color: var(--pw-navy); font-weight: 600; white-space: nowrap; }
.stx-pw__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.stx-pw__footer-btns { display: flex; gap: 10px; flex-shrink: 0; }
.stx-pw__footer .stx-pw-btn--primary { min-width: 257px; }
.stx-pw__footer .stx-pw-check { max-width: 380px; }

/* галочка без отметки: подсветка как в .premium-consent.is-attention */
.stx-pw-attn.is-attention .stx-pw-check:not(.is-checked) .stx-pw-check__box { border-color: #e11d48; animation: stx-pw-box-pulse .65s ease; }
.stx-pw-attn.is-attention .stx-pw-check:not(.is-checked) .stx-pw-check__text { color: #9f1239; }
.stx-pw-attn.is-attention .stx-pw-check:not(.is-checked) .stx-pw-check__box:hover { transform: none; }

/* —— окно тарифов (#premium) —— */
.stx-pw__modal--premium {
  max-width: 947px; display: grid; grid-template-columns: 1fr 318px; overflow: hidden;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
.stx-pw-main { padding: 25px 24px 24px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.stx-pw-main .stx-pw__head { padding-right: 0; margin-bottom: 12px; }
.stx-pw-pplans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.stx-pw-pplans .stx-pw-card { height: 140px; padding: 18px 16px; border: 2px solid var(--pw-border); box-shadow: none; transform: none; overflow: hidden; }
.stx-pw-pplans .stx-pw-card:hover { transform: none; box-shadow: none; border-color: #c5d7f5; }
.stx-pw-pplans .stx-pw-card.is-active { border: 2px solid var(--pw-primary); background: var(--pw-bg-tint); box-shadow: none; }
.stx-pw-pplans .stx-pw-card.is-disabled:hover { border-color: var(--pw-border); }
.stx-pw-pplans .stx-pw-card__row { display: flex; flex-direction: column; align-items: flex-start; margin-top: 10px; width: 100%; }
.stx-pw-pplans .stx-pw-card__row .stx-pw-card__title { margin: 0 !important; }
.stx-pw-pplans .stx-pw-card__row .stx-pw-card__sub { margin: 0 !important; }
.stx-pw-pplans .stx-pw-card__row .stx-pw-card__price { margin: 6px 0 0 !important; }

.stx-pw-feat { margin-top: 28px; }
.stx-pw-feat__title {
  position: relative; display: inline-flex; align-items: center; margin: 0 0 14px !important;
  font-size: 17px; font-weight: 600; line-height: 20px; color: var(--pw-navy-deep); overflow: hidden;
}
.stx-pw-feat__text { position: relative; z-index: 1; }
.stx-pw-feat__shine {
  position: absolute; inset: -2px -12px; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(125, 176, 255, .22) 48%, rgba(184, 230, 214, .28) 52%, transparent 65%);
}
.stx-pw-feat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.stx-pw-fi {
  position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 66px; padding: 20px 13px 13px;
  border-radius: var(--pw-r-card); border: 1px solid var(--pw-border); background: #fff; overflow: hidden;
  opacity: 0; transform: translateY(14px);
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.stx-pw-fi svg { margin-top: 2px; color: var(--pw-primary); transition: transform .35s ease; }
.stx-pw-fi p { font-size: 14px; line-height: 20px; color: var(--pw-navy-deep); }
.stx-pw-fi__badge {
  position: absolute; top: 4px; right: 8px; z-index: 2; max-width: calc(100% - 16px);
  padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
  color: #2f5f9e; background: linear-gradient(135deg, #e8f2ff 0%, #dff6ef 100%); border: 1px solid rgba(110, 168, 230, .35);
  opacity: 0; transform: translateY(-4px) scale(.92); pointer-events: none; white-space: nowrap;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.stx-pw-fi.is-spotlight {
  border-color: #9ec4f5;
  background: linear-gradient(135deg, rgba(236, 246, 255, .95) 0%, rgba(232, 248, 242, .9) 100%);
  box-shadow: 0 8px 18px rgba(47, 107, 255, .1);
}
.stx-pw-fi.is-spotlight .stx-pw-fi__badge { opacity: 1; transform: none; animation: stx-pw-badge-soft 2.4s ease-in-out infinite; }
.stx-pw-fi.is-spotlight svg { transform: scale(1.08); }
.stx-pw-feat.is-ready .stx-pw-feat__title { animation: stx-pw-title-in .55s cubic-bezier(.22, 1, .36, 1) both; }
.stx-pw-feat.is-ready .stx-pw-feat__shine { animation: stx-pw-shine 1.4s ease .35s both; }
.stx-pw-feat.is-ready .stx-pw-fi { animation: stx-pw-item-in .5s cubic-bezier(.22, 1, .36, 1) both; }
.stx-pw-feat.is-ready .stx-pw-fi:nth-child(1) { animation-delay: .08s; }
.stx-pw-feat.is-ready .stx-pw-fi:nth-child(2) { animation-delay: .16s; }
.stx-pw-feat.is-ready .stx-pw-fi:nth-child(3) { animation-delay: .24s; }
.stx-pw-feat.is-ready .stx-pw-fi:nth-child(4) { animation-delay: .32s; }
.stx-pw-feat.is-ready .stx-pw-fi:nth-child(5) { animation-delay: .40s; }
.stx-pw-feat.is-ready .stx-pw-fi:nth-child(6) { animation-delay: .48s; }

.stx-pw-side {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 24px 20px; background: rgba(237, 244, 255, .63); border-left: 1px solid var(--pw-border);
}
.stx-pw-side .stx-pw__close { top: 16px; right: 10px; }
.stx-pw-side__title { margin: 8px 0 16px !important; max-width: 209px; font-size: 16px; font-weight: 700; line-height: 25px; color: var(--pw-navy); }
.stx-pw-side .stx-pw-btn { width: 100%; }
.stx-pw-secure { margin-top: 14px !important; font-size: 11px; line-height: 15px; color: #000; }
.stx-pw-side .stx-pw__msg { margin-top: 10px; }
.stx-pw-side__swap { position: relative; flex: 1; min-height: 0; margin-top: 16px; overflow: hidden; }
.stx-pw-social[hidden], .stx-pw-consent[hidden] { display: none !important; }
.stx-pw-social { display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; opacity: 1; transition: opacity .22s ease; }
.stx-pw-social.is-hiding { opacity: 0; pointer-events: none; }
.stx-pw-social__row { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.stx-pw-avatars { display: flex; }
.stx-pw-avatars span {
  width: 27px; height: 27px; border-radius: 50%; margin-left: -8px; border: 1px solid #fff;
  display: grid; place-items: center; background: var(--pw-bg-tint); color: var(--pw-primary);
}
.stx-pw-avatars span:first-child { margin-left: 0; }
.stx-pw-social__note { font-size: 12px; line-height: 16px; color: #151515; }
.stx-pw-social__note b { display: block; font-weight: 600; font-size: 13px; }
.stx-pw-reviews { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; flex: 1; min-height: 0; width: 100%; overflow: hidden; }
.stx-pw-review {
  display: flex; gap: 10px; align-items: flex-end; width: 100%; min-width: 0;
  opacity: 1; transform: none; transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.stx-pw-reviews.is-switching .stx-pw-review { opacity: 0; transform: translateY(6px); }
.stx-pw-reviews.is-switching .stx-pw-review:nth-child(2) { transition-delay: .03s; }
.stx-pw-reviews.is-switching .stx-pw-review:nth-child(3) { transition-delay: .06s; }
.stx-pw-review--rtl { flex-direction: row-reverse; }
.stx-pw-review--rtl .stx-pw-review__bubble { text-align: right; }
.stx-pw-review__ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: #fff; color: var(--pw-primary); box-shadow: 0 2px 8px rgba(42, 61, 96, .12);
}
.stx-pw-review__bubble {
  background: #fff; border-radius: 10px; box-shadow: var(--pw-shadow-card); padding: 10px 13px;
  flex: 0 1 auto; max-width: min(219px, calc(100% - 48px)); min-width: 0;
}
.stx-pw-review__bubble strong { display: block; font-size: 11px; font-weight: 600; line-height: 16px; color: #404040; }
.stx-pw-review__bubble p { margin-top: 3px !important; font-size: 10px; line-height: 13px; color: var(--pw-navy-deep); }
.stx-pw-all {
  display: flex; align-items: center; justify-content: center; margin-top: auto; width: 100%; min-height: 36px; flex-shrink: 0;
  border-radius: 8px; border: 1px solid var(--pw-border); background: #fff; font-size: 13px; font-weight: 500;
  color: var(--pw-navy); text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.stx-pw-all:hover { border-color: #c5d7f5; background: #f8fbff; box-shadow: 0 6px 14px rgba(47, 107, 255, .12); transform: translateY(-1px); }

.stx-pw-consent {
  display: none; flex-direction: column; gap: 16px; height: 100%; min-height: 0;
  overflow-x: hidden; overflow-y: auto; padding: 4px 6px 4px 2px; opacity: 0;
}
.stx-pw-consent.is-visible { display: flex; opacity: 1; animation: stx-pw-consent-in .32s ease both; }
.stx-pw-consent__warn {
  display: grid; place-items: center; min-height: 30px; padding: 7px 10px; border-radius: 7px; background: #fff;
  font-size: 11px; line-height: 16px; text-align: center; color: #000; box-shadow: 0 1px 0 rgba(42, 61, 96, .04);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.stx-pw-consent.is-attention .stx-pw-consent__warn {
  background: #fff1f1; color: #b42318; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, .22);
  animation: stx-pw-warn-flash .55s ease;
}

/* —— окно уведомления (#notify / .modal--info) —— */
.stx-pw__modal--info { max-width: 512px; padding: 25px 23px 24px; }
.stx-pw__modal--info .stx-pw__desc { margin-top: 12px; }
.stx-pw__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stx-pw__actions--one { grid-template-columns: 1fr; }
.stx-pw__actions .stx-pw-btn { width: 100%; }

/* —— лимит генерации исчерпан → премиум (P2 п. 1) —— */
.stx-pw__modal--limit { max-width: 560px; padding: 25px 23px 24px; }
.stx-pw__modal--limit .stx-pw__desc { margin-top: 12px; }
.stx-pw-limit__feat { margin-top: 18px; }
.stx-pw-limit__feat .stx-pw-fi { min-height: 0; padding: 12px; }
.stx-pw-limit__price { margin-top: 16px; padding: 14px 16px; border-radius: var(--pw-r-card); background: var(--pw-bg-tint); border: 1px solid var(--pw-border-soft); }
.stx-pw-limit__sum { font-size: 15px; line-height: 24px; color: var(--pw-navy); }
.stx-pw-limit__sum b { font-size: 24px; font-weight: 700; color: var(--pw-navy-deep); margin-right: 2px; }
.stx-pw-limit__note { margin-top: 4px !important; font-size: 12px; line-height: 17px; color: var(--pw-muted); }

/* —— отмена подписки (Q п. 25, как на simpleslide.ru: почта + «Не получается отменить?») —— */
.stx-pw__modal--cancel { max-width: 460px; padding: 25px 23px 20px; }
.stx-pw-unsub .stx-pw__desc { margin-top: 12px; color: var(--pw-muted); }
.stx-pw-unsub .stx-pw__desc b { color: var(--pw-navy); word-break: break-all; }
.stx-pw-unsub__form { margin-top: 18px; }
.stx-pw-unsub__form.is-attention .stx-pw-field { animation: stx-pw-shake .4s ease; }
.stx-pw-field__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--pw-navy); }
.stx-pw-field {
  display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--pw-border); border-radius: 12px;
  background: var(--pw-bg-soft); color: var(--pw-navy-deep); font-size: 15px; line-height: 20px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.stx-pw-field::placeholder { color: #9aa6b8; }
.stx-pw-field:hover { border-color: #c9d6ea; }
.stx-pw-field:focus { outline: none; background: #fff; border-color: var(--pw-primary); box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.stx-pw-field.is-invalid { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); background: #fff; }
.stx-pw-field__error { margin-top: 6px !important; font-size: 13px; line-height: 18px; color: #b42318; }
.stx-pw-unsub .stx-pw__actions { margin-top: 18px; }
.stx-pw-unsub__help { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pw-border); text-align: center; }
.stx-pw-unsub__toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--pw-primary-text);
  text-decoration: underline; text-decoration-color: rgba(47, 107, 255, .35); text-underline-offset: 3px; border-radius: 6px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.stx-pw-unsub__toggle:hover { color: var(--pw-primary-hover); text-decoration-color: currentColor; }
.stx-pw-unsub__toggle::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s ease;
}
.stx-pw-unsub__help.is-open .stx-pw-unsub__toggle::after { transform: translateY(1px) rotate(-135deg); }
.stx-pw-unsub__helpbody {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--pw-r-card); background: var(--pw-bg-soft); text-align: left;
  display: grid; gap: 8px; animation: stx-pw-consent-in .28s cubic-bezier(.22, 1, .36, 1);
}
.stx-pw-unsub__helpbody[hidden] { display: none; }
.stx-pw-unsub__helpbody p { font-size: 13px; line-height: 19px; color: var(--pw-muted); }
.stx-pw-unsub__helpbody a { color: var(--pw-primary-text); text-underline-offset: 2px; }
/* окно токенов: подсказка о минимуме своего количества (Q п. 16) */
.stx-pw-card__min { margin-top: 6px !important; font-size: 11px; line-height: 14px; font-weight: 600; color: #b42318; }
.stx-pw-card__min.is-attention { animation: stx-pw-shake .4s ease; }
.stx-pw-counter__btn:disabled { opacity: .35; cursor: default; transform: none; background: none; }
@keyframes stx-pw-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@keyframes stx-pw-title-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stx-pw-shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes stx-pw-item-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stx-pw-badge-soft { 0%, 100% { box-shadow: 0 0 0 0 rgba(110, 168, 230, 0); } 50% { box-shadow: 0 0 0 4px rgba(110, 168, 230, .12); } }
@keyframes stx-pw-consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stx-pw-warn-flash { 0%, 100% { background: #fff1f1; } 45% { background: #ffd6d6; } }
@keyframes stx-pw-box-pulse {
  0%, 100% { background: #fff; box-shadow: inset 0 0 0 0 rgba(225, 29, 72, 0); }
  35% { background: #ffe4e8; box-shadow: inset 0 0 0 2px rgba(225, 29, 72, .45); }
  60% { background: #ffd0d8; box-shadow: inset 0 0 0 3px rgba(225, 29, 72, .28); }
}

/* —— невысокие ноутбуки —— */
@media (max-height: 860px) {
  .stx-pw__overlay { padding: 10px 12px; }
  .stx-pw__modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .stx-pw-pplans .stx-pw-card { height: 120px; padding: 14px; }
  .stx-pw-pplans .stx-pw-card__row { margin-top: 6px; }
  .stx-pw-pplans .stx-pw-card__row .stx-pw-card__title { font-size: 16px; line-height: 24px; }
  .stx-pw-feat { margin-top: 16px; }
  .stx-pw-feat__title { margin-bottom: 10px !important; font-size: 15px; }
  .stx-pw-fi { min-height: 56px; padding: 18px 10px 10px; }
  .stx-pw-fi p { font-size: 13px; line-height: 18px; }
  .stx-pw__modal--tokens .stx-pw-card { min-height: 124px; }
}

/* —— телефон и планшет: окно на весь экран, кнопка оплаты внизу (как в slidepix) —— */
@media (max-width: 860px) {
  .stx-pw__overlay { padding: 0; align-items: stretch; overflow: hidden; }
  .stx-pw__modal {
    max-width: none !important; width: 100%; height: 100%; max-height: 100%; max-height: 100dvh; min-height: 0;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .stx-pw__close { top: 10px; right: 10px; width: 36px; height: 36px; z-index: 6; }
  .stx-pw__title { font-size: 20px; line-height: 28px; }
  .stx-pw__desc { font-size: 13px; line-height: 20px; }

  .stx-pw__modal--tokens { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
  .stx-pw__modal--tokens .stx-pw__pad {
    flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; padding: 16px 16px 12px; gap: 10px;
  }
  .stx-pw__modal--tokens .stx-pw__head { padding-right: 40px; }
  .stx-pw-plans, .stx-pw-plans--3 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stx-pw__pad > * { min-width: 0; }
  .stx-pw-card--custom { grid-column: 1 / -1; }
  .stx-pw__modal--tokens .stx-pw-card { min-height: 0; padding: 12px 10px; }
  .stx-pw__modal--tokens .stx-pw-card:not(.stx-pw-card--custom) {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "badge badge" "title price" "sub sub";
    column-gap: 8px; align-items: center;
  }
  .stx-pw__modal--tokens .stx-pw-card:not(.stx-pw-card--custom) .stx-pw-badge { grid-area: badge; justify-self: start; }
  .stx-pw__modal--tokens .stx-pw-card:not(.stx-pw-card--custom) .stx-pw-card__title { grid-area: title; margin-top: 6px !important; font-size: 15px; line-height: 20px; }
  .stx-pw__modal--tokens .stx-pw-card:not(.stx-pw-card--custom) .stx-pw-card__price { grid-area: price; margin-top: 6px !important; justify-self: end; font-size: 16px; text-align: right; }
  .stx-pw__modal--tokens .stx-pw-card:not(.stx-pw-card--custom) .stx-pw-card__was { justify-content: flex-end; }
  .stx-pw__modal--tokens .stx-pw-card:not(.stx-pw-card--custom) .stx-pw-card__sub { grid-area: sub; font-size: 11px; line-height: 15px; }
  .stx-pw-card__sub--custom { max-width: none; }
  .stx-pw-spend { margin-top: 8px; padding: 12px 10px; }
  .stx-pw-spend__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; }
  .stx-pw__footer {
    flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 10px; margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(237, 244, 255, .96); border-top: 1px solid var(--pw-border);
  }
  .stx-pw__footer .stx-pw-check { max-width: none; }
  .stx-pw__footer-btns { flex-direction: column-reverse; }
  .stx-pw__footer .stx-pw-btn { width: 100%; min-width: 0; }

  .stx-pw__modal--premium { display: flex; flex-direction: column; overflow: hidden; }
  .stx-pw-main { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 12px; }
  .stx-pw-main .stx-pw__head { padding-right: 40px; margin-bottom: 8px; }
  .stx-pw-pplans { gap: 8px; margin-top: 10px; }
  .stx-pw-pplans .stx-pw-card { height: auto; padding: 12px 10px; }
  .stx-pw-pplans .stx-pw-card__row { margin-top: 4px; }
  .stx-pw-pplans .stx-pw-card__row .stx-pw-card__title { font-size: 15px; line-height: 20px; }
  .stx-pw-feat { margin-top: 16px; }
  .stx-pw-feat__grid { grid-template-columns: 1fr; }
  .stx-pw-fi { min-height: 0; padding: 18px 12px 10px; }
  .stx-pw-side {
    flex: 0 0 auto; position: static; overflow: visible; border-left: 0; border-top: 1px solid var(--pw-border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(237, 244, 255, .96);
  }
  .stx-pw-side .stx-pw__close { position: absolute; top: 10px; right: 10px; }
  .stx-pw-side__title { max-width: none; margin: 0 0 8px !important; font-size: 14px; line-height: 20px; }
  .stx-pw-side__swap { flex: none; margin-top: 10px; overflow: visible; }
  .stx-pw-social { height: auto; }
  .stx-pw-social .stx-pw-reviews, .stx-pw-social .stx-pw-all { display: none; }
  .stx-pw-consent, .stx-pw-consent.is-visible { height: auto; max-height: min(34vh, 240px); }
  .stx-pw-secure { margin-top: 8px !important; }

  .stx-pw__overlay:has(.stx-pw__modal--info), .stx-pw__overlay:has(.stx-pw__modal--limit), .stx-pw__overlay:has(.stx-pw__modal--cancel) { padding: 16px; align-items: center; overflow: auto; }
  .stx-pw__modal--limit .stx-pw-limit__feat .stx-pw-feat__grid { grid-template-columns: 1fr; }
  .stx-pw__modal--limit, .stx-pw__modal--cancel { padding: 20px 16px 16px; }
  .stx-pw__modal.stx-pw__modal--info, .stx-pw__modal.stx-pw__modal--limit, .stx-pw__modal.stx-pw__modal--cancel {
    max-width: 512px !important; height: auto; max-height: calc(100dvh - 32px);
    border: 1px solid var(--pw-border); border-radius: var(--pw-r-modal); box-shadow: var(--pw-shadow-modal);
  }
}
@media (max-width: 500px) {
  .stx-pw__actions { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .stx-pw-pplans { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stx-pw__overlay, .stx-pw__modal, .stx-pw-card, .stx-pw-review, .stx-pw-social { transition: none; }
  .stx-pw-feat__shine, .stx-pw-feat.is-ready .stx-pw-feat__title, .stx-pw-feat.is-ready .stx-pw-fi,
  .stx-pw-fi.is-spotlight .stx-pw-fi__badge, .stx-pw-consent.is-visible { animation: none !important; }
  .stx-pw-fi { opacity: 1; transform: none; }
}

/* Q3: одно спокойное окно доступа, тарифы и согласия по референсу владельца. */
.stx-pw.is-widget-active { z-index: 1000; }
.stx-pw [hidden] { display: none !important; }
.stx-pw__modal--premium {
  --pw-access-accent: var(--pw-primary);
  --pw-access-bg: var(--pw-bg-tint);
  display: flex; flex-direction: column; width: 100%; max-width: 656px;
  grid-template-columns: none; padding: 0; height: auto;
  border: 1px solid #e9e8e6; border-radius: 26px; overflow: hidden;
  color: #23242a;
}
.stx-pw__modal--premium .stx-pw__close {
  top: 15px; right: 15px; width: 44px; height: 44px;
  color: #65666d; border-radius: 50%; transform: none;
}
.stx-pw__modal--premium .stx-pw__close:hover { background: #f2f2f4; transform: none; }
.stx-pw-access { padding: 32px 32px 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.stx-pw-access__title {
  padding-right: 32px; font-size: 29px; line-height: 1.17; font-weight: 700;
  letter-spacing: -.035em; color: #23242a; max-width: 460px;
}
.stx-pw-access__lead { margin-top: 12px !important; color: #6a6a73; font-size: 14px; line-height: 1.5; }
.stx-pw-access__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.stx-pw-access__plan {
  display: flex; flex-direction: column; align-items: stretch; padding: 15px 17px !important;
  text-align: left; background: #f4f4f6 !important; border: 2px solid transparent !important;
  border-radius: 17px; min-width: 0; transition: border-color .18s ease, background .18s ease;
}
.stx-pw-access__plan:hover { border-color: #afc7fb !important; }
.stx-pw-access__plan.is-active { background: #fff !important; border-color: var(--pw-access-accent) !important; }
.stx-pw-access__plan:disabled { cursor: default; }
.stx-pw-access__plan:disabled:not(.is-active) { opacity: .55; }
.stx-pw-access__plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.stx-pw-access__plan .stx-pw-badge {
  height: 23px; padding: 0 9px; color: #62636a; background: #e9e9ed; border-radius: 7px;
  font-size: 11px; text-transform: none; letter-spacing: 0;
}
.stx-pw-access__plan.is-active .stx-pw-badge { background: var(--pw-access-bg); color: var(--pw-primary-text); }
.stx-pw-access__mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e5e5e9; color: #fff; }
.stx-pw-access__mark svg { opacity: 0; }
.stx-pw-access__plan.is-active .stx-pw-access__mark { background: var(--pw-access-accent); }
.stx-pw-access__plan.is-active .stx-pw-access__mark svg { opacity: 1; }
.stx-pw-access__price { margin-top: 11px; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; }
.stx-pw-access__plan-desc { margin-top: 8px; font-size: 12px; line-height: 1.45; color: #6b6b74; }
.stx-pw-access__benefits { margin-top: 18px; padding: 20px; border-radius: 18px; background: var(--pw-access-bg); }
.stx-pw-access__benefits h3 { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; color: #23242a; }
.stx-pw-access__period { margin-top: 5px !important; color: var(--pw-primary-text); font-size: 12px; line-height: 1.4; }
.stx-pw-access__list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.stx-pw-access__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.stx-pw-access__list svg { margin-top: 0; color: var(--pw-primary-text); }
.stx-pw-access__desc { margin-top: 18px !important; font-size: 13px; line-height: 1.55; color: #62636c; }
.stx-pw-access__renewal { margin-top: 14px !important; font-size: 12px; line-height: 1.5; color: #565862; }
.stx-pw-access__consent { display: grid; gap: 14px; margin-top: 20px; }
.stx-pw-access__consent .stx-pw-check {
    min-height: 20px;
    align-items: flex-start;
}
.stx-pw-access__consent .stx-pw-check__box { width: 22px; height: 22px; border-color: var(--pw-primary-text); border-radius: 6px; box-shadow: none; }
.stx-pw-access__consent .stx-pw-check__input:checked + .stx-pw-check__box { background: var(--pw-access-accent); border-color: var(--pw-access-accent); }
.stx-pw-access__consent .stx-pw-check__text { font-size: 12px; line-height: 1.55; color: #55565f; }
.stx-pw-access__consent .stx-pw-check__text a { color: var(--pw-primary-text); }
.stx-pw-access__msg { margin-top: 15px !important; font-size: 13px; line-height: 1.5; color: #9c3618; overflow-wrap: anywhere; }
.stx-pw-access__msg:empty { display: none; }
.stx-pw-access__msg.is-success { color: #287149; }
.stx-pw-access__footer { flex: 0 0 auto; padding: 16px 32px 18px; background: #fff; border-top: 1px solid #efefef; }
.stx-pw-access__footer .stx-pw-btn {
  width: 100%; min-height: 50px; border-radius: 14px; background: var(--pw-access-accent); box-shadow: none;
  font-size: 15px; font-weight: 650; white-space: normal; text-align: center;
}
.stx-pw-access__footer .stx-pw-btn:hover { background: var(--pw-primary-hover); box-shadow: none; transform: none; }
.stx-pw-access__secure { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 9px !important; font-size: 11px; line-height: 1.4; color: #777780; }
.stx-pw__modal--premium :where(button, input):focus-visible { outline: 3px solid var(--pw-primary-text); outline-offset: 3px; }
.stx-pw-access__consent .stx-pw-check__input:focus-visible + .stx-pw-check__box { outline: 3px solid var(--pw-primary-text); outline-offset: 3px; }
@media (max-width: 860px) {
  .stx-pw__overlay:has(.stx-pw__modal--premium) { padding: 12px; align-items: center; }
  .stx-pw__modal.stx-pw__modal--premium {
    max-width: 656px !important; height: auto; max-height: calc(100dvh - 24px);
    border: 1px solid #e9e8e6; border-radius: 26px; box-shadow: var(--pw-shadow-modal);
  }
}
@media (max-width: 500px) {
  .stx-pw__overlay:has(.stx-pw__modal--premium) { padding: 8px; }
  .stx-pw__modal.stx-pw__modal--premium { max-height: calc(100dvh - 16px); border-radius: 22px; }
  .stx-pw-access { padding: 27px 20px 20px; }
  .stx-pw-access__title { font-size: 26px; padding-right: 30px; }
  .stx-pw-access__lead { font-size: 13px; }
  .stx-pw-access__plans { gap: 8px; margin-top: 18px; }
  .stx-pw-access__plan { padding: 12px !important; border-radius: 15px; }
  .stx-pw-access__price { font-size: 25px; }
  .stx-pw-access__plan-desc { font-size: 11px; }
  .stx-pw-access__benefits { padding: 17px; border-radius: 16px; }
  .stx-pw-access__benefits h3 { font-size: 17px; }
  .stx-pw-access__list { gap: 12px; margin-top: 14px; }
  .stx-pw-access__list li { font-size: 13px; }
  .stx-pw-access__footer { padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 350px) {
  .stx-pw-access { padding-left: 15px; padding-right: 15px; }
  .stx-pw-access__title { font-size: 24px; }
  .stx-pw-access__plan { padding: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .stx-pw-access__plan { transition: none; }
  .stx-pw-access__consent.is-attention { animation: none; }
}
@media (forced-colors: active) {
  .stx-pw-access__plan { border-color: ButtonText !important; }
  .stx-pw-access__plan.is-active { border-color: Highlight !important; outline: 1px solid Highlight; }
  .stx-pw-access__plan.is-active .stx-pw-access__mark { background: Highlight; forced-color-adjust: none; }
}

/* Q4 p.6 only: approved consents below the button; Q3 appearance above remains intact. */
.stx-pw[hidden] { display: none !important; } /* Checkout keeps the singleton while the dialog is hidden. */
.stx-pw-access__footer { max-height: min(60dvh, 510px); overflow-y: auto; overscroll-behavior: contain; }
.stx-pw-access__footer > .stx-pw-btn { margin: 0; }
.stx-pw-consent.stx-pw-access__consent { height: auto; max-height: none; min-height: 0; margin-top: 16px; padding: 0; overflow: visible; }
.stx-pw-access__consent.is-attention .stx-pw-check:not(.is-checked) .stx-pw-check__box { animation: stx-pw-consent-blink .8s ease; border-color: #b42318; }
.stx-pw-access__consent.is-attention .stx-pw-check:not(.is-checked) .stx-pw-check__text { color: #9f1239; }
.stx-pw-access__consent.is-attention .stx-pw-consent__warn { animation: stx-pw-shake .4s ease; }
@keyframes stx-pw-consent-blink { 0%, 100% { opacity: 1; } 25%, 65% { opacity: .3; } 45%, 85% { opacity: 1; } }
@media (max-width: 500px) { .stx-pw-consent.stx-pw-access__consent { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .stx-pw-access__consent.is-visible, .stx-pw-access__consent.is-attention .stx-pw-check__box,
  .stx-pw-access__consent.is-attention .stx-pw-consent__warn { animation: none !important; }
  .stx-pw-access__consent.is-attention .stx-pw-check:not(.is-checked) .stx-pw-check__box { background: #fff1f1; }
}
@media (forced-colors: active) {
  .stx-pw-access__consent.is-attention .stx-pw-check:not(.is-checked) .stx-pw-check__box { outline: 2px solid Highlight; }
}

/* Initial focus belongs to the dialog; tariff buttons keep normal selection styling. */
.stx-pw__modal[tabindex="-1"]:focus { outline: none; }
