/* ==========================================================================
   FININDI — оплата: модалка, страница успеха, тестовая страница оплаты.
   Стили опираются только на дизайн-токены из tokens.css.
   ========================================================================== */

/* Скрытие состояний: у компонентов задан собственный display, поэтому
   атрибут hidden нужно поддержать явно. */
.pay-modal[hidden],
.status-state[hidden],
.mock-actions[hidden],
.mock-already[hidden],
.mock-status[hidden],
.mock-error[hidden],
.downloads[hidden],
[data-pay-error][hidden],
[data-pay-mode][hidden] { display: none !important; }

/* ==========================================================================
   Модалка оплаты
   ========================================================================== */

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  overscroll-behavior: contain;
}
.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 12, 0.62);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  animation: pay-fade 0.18s ease both;
}
.pay-modal__panel {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 34px 32px 28px;
  animation: pay-rise 0.22s ease both;
}
@keyframes pay-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pay-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-modal__backdrop, .pay-modal__panel { animation: none; }
}

.pay-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pay-modal__close:hover { background: var(--paper); color: var(--text); border-color: var(--line); }

.pay-modal__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-modal__mode { color: var(--danger); font-weight: 600; }

.pay-modal__title {
  margin-top: 12px;
  font-size: clamp(26px, 4.4vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  padding-right: 40px;
}
.pay-modal__price {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pay-modal__price span { font-variant-numeric: tabular-nums; }
.pay-modal__files {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-modal__body { min-width: 0; }
.pay-modal__footer { flex: 0 0 auto; }

.pay-modal__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.pay-modal__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--muted);
}
.pay-modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* E-mail для чека — обязательное поле (54-ФЗ) */
.pay-modal__field {
  margin-top: 22px;
}
.pay-modal__field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}
.pay-modal__input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-modal__input::placeholder { color: var(--muted); opacity: 0.6; }
.pay-modal__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(201, 241, 88, 0.45);
}
.pay-modal__input[aria-invalid="true"] { border-color: var(--danger); }
.pay-modal__field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* Чек-боксы согласия — согласованный стандарт (docs/PAYMENT-CONTRACT.md §8.1).
   Только нативные чек-боксы: никаких ::before/картинок. */
.pay-consent-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.pay-consent { display: flex; align-items: flex-start; gap: 9px; }
.pay-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--accent);
}
.pay-consent span { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pay-consent span a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.pay-consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; }

/* Ошибки рядом с полем/чек-боксом */
.pay-field-error,
.pay-consent-error {
  margin: 6px 0 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--danger);
}
.pay-consent-error { margin-top: 0; }

.pay-modal__submit { margin-top: 22px; min-height: 56px; }
.pay-modal__submit[disabled] { opacity: 0.72; cursor: progress; transform: none; }

.pay-modal__hint {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.pay-modal__error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(200, 69, 44, 0.32);
  border-radius: var(--r-xs);
  background: rgba(200, 69, 44, 0.07);
  color: var(--danger);
  font-size: 13.5px;
  line-height: 1.45;
}

body.pay-modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .pay-modal { padding: 0; align-items: end; }
  .pay-modal__panel {
    max-width: none;
    max-height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 28px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    animation: pay-rise 0.22s ease both;
  }
  .pay-modal__price { font-size: 26px; }
}

/* ==========================================================================
   Страница успеха
   ========================================================================== */

.status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 88% -10%, rgba(201, 241, 88, 0.16), transparent 46%),
    var(--ink);
  color: #fff;
}

.status-head {
  padding: 20px 0;
}
.status-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.status-brand { display: inline-flex; align-items: center; gap: 11px; }
.status-brand img { width: 30px; height: 30px; }
.status-brand span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
}
.status-head__back {
  font-size: 14px;
  color: var(--muted-dark);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.status-head__back:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.status-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 56px;
}

.status-card {
  width: 100%;
  max-width: 720px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding: 46px 48px 40px;
}

.status-state { animation: pay-fade 0.22s ease both; }
.status-state[hidden] { animation: none; }

.status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  flex: none;
}
.status-kicker--ok { color: #3a5d0c; }
.status-kicker--ok::before { background: #78a219; }
.status-kicker--err { color: var(--danger); }
.status-kicker--err::before { background: var(--danger); }

.status-card h1 {
  margin-top: 14px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.status-lead {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}
.status-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.status-order {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.status-order .num { color: var(--text); font-size: 13px; }
.status-summary {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--text);
}
.status-receipt {
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.status-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.status-actions .btn { flex: 1 1 220px; }
.status-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.status-link:hover { color: var(--text); border-color: var(--ink); }

/* Спиннер ожидания */
.status-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 3px solid var(--paper-2);
  border-top-color: var(--ink);
  animation: status-spin 0.9s linear infinite;
}
@keyframes status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .status-spinner { animation-duration: 2.4s; }
}

/* Кнопки скачивания */
.downloads { margin-top: 26px; }
.download-list { display: grid; gap: 10px; }
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 60px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.download-card:hover {
  border-color: var(--ink);
  background: var(--white);
  transform: translateY(-1px);
}
.download-card__label {
  font-weight: 650;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.download-card__label::before {
  content: "↓";
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.download-card__file {
  font-size: 11.5px;
  color: var(--muted);
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.downloads__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.downloads__empty {
  font-size: 14px;
  color: var(--muted);
}

.status-foot {
  padding: 0 20px 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-dark);
}

@media (max-width: 620px) {
  .status-card { padding: 30px 22px 26px; border-radius: var(--r-lg); overflow-x: hidden; }
  .status-actions .btn { flex-basis: 100%; min-height: 52px; }
  .download-card { flex-direction: column; align-items: flex-start; gap: 4px; }
  .download-card__file {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .status-main { padding: 8px 14px 40px; }
}

/* ==========================================================================
   Тестовая страница оплаты (mock-pay.html)
   ========================================================================== */

.mock-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding-bottom: 48px;
}

.mock-banner {
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 11px 16px;
  font-weight: 600;
}

.mock-head {
  width: 100%;
  max-width: 560px;
  padding: 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mock-card {
  width: 100%;
  max-width: 560px;
  margin: 26px 20px 0;
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 32px 30px 28px;
}

.mock-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mock-card h1 {
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.mock-price {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mock-plan {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--muted);
}
.mock-meta {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xs);
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
}
.mock-meta .num { color: var(--text); font-size: 12px; }
.mock-status {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.mock-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.mock-actions .btn { min-height: 54px; }
.mock-actions .btn[disabled] { opacity: 0.7; cursor: progress; }
.mock-receipt {
  margin-top: 16px;
  padding: 10px 13px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xs);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.mock-note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.mock-error {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(200, 69, 44, 0.32);
  border-radius: var(--r-xs);
  background: rgba(200, 69, 44, 0.07);
  color: var(--danger);
  font-size: 13.5px;
  line-height: 1.45;
}
.mock-already { margin-top: 20px; }
.mock-home {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  align-self: flex-start;
}
.mock-home:hover { color: var(--text); border-color: var(--ink); }

.mock-foot {
  margin-top: 22px;
  max-width: 560px;
  padding: 0 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-dark);
  text-align: center;
}

@media (max-width: 620px) {
  .mock-card { padding: 26px 20px 22px; margin: 18px 12px 0; }
  .mock-head { padding: 16px 16px 0; }
  .mock-price { font-size: 25px; }
}

/* Мобильная оптимизация модалки оплаты (17.11.2026) */
@media (max-width: 480px) {
  .pay-modal__panel {
    max-height: calc(100dvh - 12px);
    padding: 24px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
  }
  .pay-modal__title { font-size: 24px; margin-top: 8px; }
  .pay-modal__price { font-size: 24px; margin-top: 6px; }
  .pay-modal__list { margin-top: 14px; gap: 7px; }
  .pay-modal__list li { font-size: 14px; padding-left: 22px; }
  .pay-modal__field { margin-top: 16px; }
  .pay-consent span { font-size: 12px; }
  .pay-modal__submit { position: sticky; bottom: 0; margin-top: 16px; }
}

/* Правки 17.11.2026: ошибка над полем, подсветка согласия, архив */
.pay-field-error--above { margin: 0 0 6px; }
.pay-consent.is-invalid {
  background: rgba(200, 69, 44, 0.08);
  border: 1px solid rgba(200, 69, 44, 0.35);
  border-radius: 10px;
  padding: 9px 11px;
  margin-left: -3px;
}
.download-card--archive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
  padding: 18px 20px;
  border-radius: var(--r-md, 14px);
  background: var(--ink);
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--ink);
}
.download-card--archive .download-card__label { color: var(--accent); font-weight: 700; }
.download-card--archive .download-card__file { color: rgba(255, 255, 255, 0.6); }


/* Апгрейд ГИД → Комплект в модалке */
.pay-upgrade {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 14px 0 4px;
  padding: 13px 14px;
  border: 1px solid rgba(11, 15, 12, 0.16);
  border-radius: 12px;
  background: #f7f7f1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pay-upgrade input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #c9f158;
  flex: none;
}
.pay-upgrade__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #3e3e37;
}
.pay-upgrade__text b { font-size: 13.5px; color: #0b0f0c; }
.pay-upgrade__text span { font-size: 12px; color: #7a7466; }
.pay-upgrade:has(input:checked) {
  border-color: #0b0f0c;
  background: #f2f7dd;
}

.pay-upgrade[hidden] { display: none !important; }


/* Мобильная форма оплаты: закреплённая шапка с тарифом/ценой, sticky-кнопка
   и подстройка под visualViewport при открытой экранной клавиатуре. */
.pay-modal__summary { display: none; }

@media (max-width: 480px) {
  .pay-modal {
    height: var(--pay-modal-height, 100dvh);
    top: var(--pay-modal-top, 0);
    bottom: auto;
  }
  .pay-modal__panel {
    max-height: 100%;
    padding: 0 16px calc(92px + env(safe-area-inset-bottom, 0px));
    scroll-padding-top: 78px;
    scroll-padding-bottom: 112px;
  }
  .pay-modal__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 -16px 10px;
    padding: 13px 56px 11px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .pay-modal__summary-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
  }
  .pay-modal__summary-price {
    flex: none;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
  }
  .pay-modal__close { z-index: 6; top: 6px; }
  .pay-modal__submit {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    margin-top: 14px;
    box-shadow: 0 -10px 24px rgba(255, 255, 255, 0.96);
  }
  .pay-modal__field, .pay-consent {
    scroll-margin-top: 88px;
    scroll-margin-bottom: 108px;
  }
}

/* Компактный мобильный checkout: пользователь всегда видит тариф/цену,
   поля и отдельную нижнюю кнопку; контент скроллится внутри панели,
   кнопка не перекрывает consent и поля. */
@media (max-width: 480px) {
  .pay-modal__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    padding: 0 16px 0;
    overflow: hidden;
  }
  .pay-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px 0 8px;
    scroll-padding-top: 8px;
    scroll-padding-bottom: 12px;
  }
  .pay-modal__footer {
    flex: 0 0 auto;
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(255, 255, 255, 0.98);
  }
  .pay-modal__submit {
    position: static;
    bottom: auto;
    margin-top: 0;
    min-height: 52px;
  }
  .pay-modal__summary { margin-bottom: 0; }
  .pay-modal__kicker,
  .pay-modal__title,
  .pay-modal__price,
  .pay-modal__files { display: none; }
  .pay-modal__list { margin-top: 10px; gap: 4px; }
  .pay-modal__list li { font-size: 13px; line-height: 1.35; padding-left: 20px; }
  .pay-modal__field { margin-top: 12px; }
  .pay-modal__field-label { font-size: 12px; }
  .pay-modal__field-hint { font-size: 11.5px; margin-top: 5px; }
  .pay-consent { gap: 7px; }
  .pay-consent span { font-size: 11.5px; line-height: 1.35; }
  .pay-modal__hint { margin-top: 8px; font-size: 11.5px; }
  .pay-modal__error { margin-top: 0; margin-bottom: 8px; }
}

/* Зелёная подсветка чекбоксов согласий (в т.ч. рекламного согласия). */
.pay-consent input[type="checkbox"] {
  accent-color: var(--accent);
}
.pay-consent--marketing.is-highlighted,
.pay-consent--marketing.is-checked:has(input:checked) {
  background: rgba(201, 241, 88, 0.14);
  border-radius: 8px;
  padding: 4px 7px;
  margin-left: -7px;
}

/* Десктоп: фиксированная высота панели, скроллится только тело,
   кнопка не уезжает при переключении тарифа/апгрейда. */
@media (min-width: 481px) {
  .pay-modal__panel {
    display: flex;
    flex-direction: column;
    height: min(760px, calc(100vh - 40px));
    overflow: hidden;
  }
  .pay-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  .pay-modal__footer { flex: 0 0 auto; }
}
.pay-modal__field > .pay-modal__error,
.pay-modal__field > .pay-consent-error {
  margin: 0 0 8px;
}

/* 2026-11-24: detailed checkout description + sticky CTA + door to section 03 */
.pay-desc { margin: 16px 0 0; }
.pay-desc__h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7a8278; font-weight: 700; margin: 12px 0 5px; }
.pay-desc__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pay-desc__list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.4; color: #5b635c; }
.pay-desc__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #8fbf2a; }
.pay-modal__sticky { position: static; margin-top: 10px; padding: 0; background: none; }
.pay-door { margin: 10px 0 2px; text-align: center; font-size: 12.5px; color: #5b635c; }
.pay-door { text-align: center; } .pay-door a { color: #0b0f0c; font-weight: 600; text-decoration: underline; }

.pay-desc--scroll { max-height: 14vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 2px; margin-bottom: 4px; }
.pay-modal__field-label--hint { color: #1b7a3b; font-weight: 700; }

.pay-modal__sticky .pay-consent-block { margin: 0 0 8px; }

/* 2026-11-24: approved checkout template */
.pay-modal__panel { display: flex; flex-direction: column; }
.pay-modal__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.pay-modal__footer { flex: 0 0 auto; padding-top: 10px; border-top: 1px solid #EDEDE4; background: #fff; }
.pay-tag { display: inline-block; background: #F4F8E8; color: #3E5A12; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; margin-bottom: 6px; }
.pay-title { font-size: 20px; line-height: 1.2; margin: 0 0 6px; }
.pay-lead { font-size: 13px; line-height: 1.45; color: #5b635c; margin: 0 0 10px; }
.pay-h { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #7a8278; font-weight: 700; margin: 10px 0 5px; }
.pay-list { margin: 0 0 8px; padding-left: 16px; }
.pay-list li { font-size: 12.5px; line-height: 1.45; color: #31382F; margin-bottom: 2px; }
.pay-line { font-size: 12px; line-height: 1.45; color: #31382F; margin: 5px 0; }
.pay-line b { color: #0b0f0c; }
.pay-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 2px; font-size: 24px; font-weight: 800; }
.pay-price__note { font-size: 10.5px; color: #5b635c; font-weight: 600; }
.pay-hint { display: block; color: #1b7a3b; font-weight: 700; font-size: 12px; margin: 8px 0 4px; }
.pay-note { font-size: 10px; color: #0b0f0c; text-align: center; margin: 6px 0 0; }
.pay-door { margin: 10px 0 2px; font-size: 12px; color: #5b635c; }
.pay-door { text-align: center; } .pay-door a { color: #0b0f0c; font-weight: 600; text-decoration: underline; }

.pay-hint[hidden], [data-pay-email-label][hidden] { display: none !important; }

.pay-upgrade-extra { background:#F7FAF0; border:1px solid #DFE8CC; border-radius:10px; padding:10px 12px; margin:6px 0 2px; }
.pay-upgrade-extra__h { font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:#5E7A1E; font-weight:700; margin-bottom:6px; }
.pay-upgrade-extra__list { margin:0; padding-left:15px; }
.pay-upgrade-extra__list li { font-size:11.5px; line-height:1.4; color:#31382F; margin-bottom:3px; }
.pay-upgrade-extra__list b { color:#0B0F0C; }
.pay-upgrade-extra__note { font-size:10.5px; color:#5B635C; margin-top:6px; }
.pay-door { margin:8px 0 0; text-align:center; font-size:12px; }
.pay-door a { color:#0B0F0C; font-weight:600; text-decoration:underline; }

.pay-modal__footer .pay-email-wrap { margin: 0 0 6px; }
.pay-modal__footer .pay-hint { margin: 0 0 4px; font-size: 11.5px; }
.pay-modal__footer .pay-modal__input { margin: 0; }
.pay-modal__footer .pay-consent-block { margin: 6px 0 8px; }
.pay-modal__footer .pay-consent span { font-size: 9.8px; }
