/* EVA.UA checkout – блок «Оплата» за Figma «Checkout 3.0» → Payment methods.
 * Підключається після styles.css і перекриває базові стилі оплати, промокодів і підсумку.
 */

/* Proxima Nova без size-adjust: у базовому демо шрифт збільшено на 5%, через що тексти з макета
 * («Visa, MasterCard, Apple Pay, Google Pay», «Карткою Visa від ПриватБанку -7%») не влазять у рядок */
@font-face { font-family: ProximaNovaFigma; font-weight: 400; font-display: swap; src: url("https://eva.ua/nuxt_content/fonts/ProximaNova-Regular.woff2") format("woff2"); }
@font-face { font-family: ProximaNovaFigma; font-weight: 600; font-display: swap; src: url("https://eva.ua/nuxt_content/fonts/ProximaNova-Semibold.woff2") format("woff2"); }
@font-face { font-family: ProximaNovaFigma; font-weight: 700; font-display: swap; src: url("https://eva.ua/nuxt_content/fonts/ProximaNova-Bold.woff2") format("woff2"); }
.promo-banner, .payment, .promo, .sidebar, .sheet, .mobile-cta, .footer {
  font-family: ProximaNovaFigma, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Сітка як у Figma: 752 контент + 48 + 448 підсумок */
@media (min-width: 1024px) { .layout { gap: 48px; } }

.pm-section-title { font-size: 16px; line-height: 20px; font-weight: 600; color: var(--text-primary); }
/* Error state: «Оберіть спосіб оплати» біля заголовка + легке хитання карток методів */
.pm-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pm-error { font-size: 14px; line-height: 18px; color: var(--error); }
.payment__list.pm-shake .pm { animation: pm-shake .45s ease-in-out; }
.payment__list.pm-shake .pm:nth-of-type(2) { animation-delay: .04s; }
.payment__list.pm-shake .pm:nth-of-type(3) { animation-delay: .08s; }
.payment__list.pm-shake .pm:nth-of-type(4) { animation-delay: .12s; }
.payment__list.pm-shake .pm:nth-of-type(5) { animation-delay: .16s; }
.payment__list.pm-shake .pm:nth-of-type(6) { animation-delay: .2s; }
@keyframes pm-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .payment__list.pm-shake .pm { animation: none; } }
.payment { padding-top: 32px; }
.payment__list { gap: 16px; padding-top: 16px; }
.payment .field__error { padding-top: 0; }

/* ---------- Авторизований юзер: картка контактів (як на eva.ua) ---------- */
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #fff; }
.contact-card__body > * + * { margin-top: 16px; }
.contact-card__name { font-size: 14px; line-height: 18px; font-weight: 600; color: #333; }
.contact-card__phone { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 18px; color: #333; }
.contact-card__phone svg { width: 12px; height: 12px; flex-shrink: 0; }
.contact-card__edit { border: 0; background: none; padding: 0; font-size: 14px; line-height: 18px; color: var(--text-secondary); }
.contact-card__edit:hover { color: #333; }

/* ---------- Банер -7% (1_Banner_1448×112) ---------- */
.promo-banner { position: relative; height: 82px; margin-top: 32px; border-radius: var(--radius-md); background: #d5c9aa; overflow: hidden; }
.promo-banner__inner { position: absolute; left: 50%; top: 0; width: 325px; height: 82px; margin-left: -125px; }
.promo-banner__cards { position: absolute; left: 19.52px; top: 5px; width: 87.987px; height: 76px; object-fit: cover; }
.promo-banner__copy { position: absolute; left: 112.52px; top: 2px; width: 212px; height: 99px; padding: 10px 0; color: #333; }
.promo-banner__logos { position: relative; width: 132.909px; height: 17px; }
.promo-banner__visa { position: absolute; left: 0; top: 1.16px; width: 41.348px; height: 12.362px; }
.promo-banner__from { position: absolute; left: 45.98px; top: 6.38px; font-size: 7.727px; line-height: 9.273px; font-weight: 600; }
.promo-banner__raif { position: absolute; left: 61.43px; top: .39px; width: 51.027px; height: 13.129px; overflow: hidden; }
.promo-banner__raif img { position: absolute; display: block; }
.promo-banner__raif-a { left: 31.82%; top: .24%; width: 68.06%; height: 99.21%; }
.promo-banner__raif-b { left: .07%; top: 5.25%; width: 24%; height: 93.38%; }
.promo-banner__offer { position: absolute; left: 0; top: calc(50% + .5px); transform: translateY(-50%); display: flex; align-items: center; gap: 5.857px; white-space: nowrap; text-transform: uppercase; }
.promo-banner__offer b { font-size: 35.143px; line-height: 35.143px; font-weight: 700; }
.promo-banner__offer span { font-size: 11.714px; line-height: 16.107px; font-weight: 600; }

/* ---------- Нотифікація «Недоступні оплата…» ---------- */
.pm-notice { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: var(--radius-md); background: #fff3e8; font-size: 14px; line-height: 18px; color: var(--text-primary); }
.pm-notice img { flex-shrink: 0; }

/* ---------- Payment thumb: мініатюра методу / варіанта ---------- */
.pt { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; border: 1px solid var(--border-subtle); border-radius: 6px; background: #fff; }
.pt--square { height: 40px; }
.pt--card { height: 28px; }
.pt img { display: block; }
.pt--v2 { height: 28px; border: 0; background: none; } /* Payment thumb v2: рамка і фон уже в картинці */
/* «Додати картку»: картка з плюсом у кутку */
.pt--add::after {
  content: ""; position: absolute; left: 24px; top: 15px; width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 1px #fff;
  background: #212121 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M5 2v6M2 5h6' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

/* ---------- Payment method icon: іконка методу 40×40 без рамки ---------- */
.pm-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; }
.pm-icon img { display: block; max-width: none; }

/* ---------- Tag (badge_NUXT) ---------- */
.pm-tags { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; }
.pm-tag { display: inline-flex; align-items: center; min-height: 16px; padding: 0 6px; border-radius: var(--radius-sm); font-size: 13px; line-height: 15px; color: var(--text-primary); }
.pm-tag--grey { background: var(--bg-medium); }
.pm-tag--peach { background: #fff3e8; }
.pm-tag--green { background: var(--green-tint); }

/* ---------- Payment method title: Collapsed / Expanded ---------- */
.pm {
  display: flex; flex-direction: column;
  padding: 15px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); /* рамка входить у 16px, як inside-stroke у Figma */
  background: #fff; cursor: pointer; outline: none;
  transition: border-color .15s;
}
.pm:hover { border-color: var(--border-default); }
.pm:focus-visible, .pm-row:focus-visible, .plan__info:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text-primary); }
.pm--expanded, .pm--expanded:hover { border-color: var(--green); cursor: default; }
.pm--options { gap: 16px; padding-bottom: 7px; }
.pm__head { display: flex; gap: 12px; align-items: flex-start; }
.pm__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-title { font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -.7px; color: var(--text-primary); }
/* Collapsed: опис максимум у два рядки; Expanded: повністю */
.pm-desc { font-size: 14px; line-height: 18px; color: var(--text-secondary); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pm--expanded .pm-desc { display: block; -webkit-line-clamp: unset; }
.pm-radio, .pm-radio img { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.pm-link { align-self: flex-start; margin-top: 6px; border: 0; background: none; padding: 0; font-size: 13px; line-height: 15px; color: var(--text-secondary); text-decoration: underline; }
.pm-link:hover { color: var(--text-primary); }

/* ---------- Payment method row: варіант у розгорнутому методі ---------- */
.pm-options { display: flex; flex-direction: column; padding-left: 32px; } /* вкладеність: варіанти під текстом методу (радіо 20 + 12) */
.pm-divider { height: 0; margin-left: 32px; border-top: 1px solid var(--border-default); } /* від тексту рядка; border, а не 1px-заливка: рівно в дробовому масштабі */
.pm-divider--top { margin-left: 0; } /* лінія над першим варіантом – на всю ширину */
/* «Карткою онлайн» (авторизований): вкладені збережена картка і «Додати картку» – ще +32 від тексту рядка */
.pm-nested { display: flex; flex-direction: column; padding-left: 32px; }
/* Прототип «Згорнуто після вибору»: підсумок обраного способу з «Змінити», як у доставці */
.pm-section-head--change { justify-content: space-between; align-items: center; }
.pay-picked, .pay-picked:hover { gap: 12px; border-color: var(--border-subtle); cursor: default; }
.pay-picked .pm-desc { display: block; -webkit-line-clamp: unset; }
.pay-picked .pm-save { margin: 0 0 0 52px; } /* під текстом: іконка 40 + 12 */
.pm-row { display: flex; gap: 12px; align-items: flex-start; min-height: 52px; padding: 8px 0; cursor: pointer; outline: none; border-radius: 4px; } /* як у макеті: усе по верхньому краю */
.pm-row--single { align-items: center; }
/* «Зберегти картку» під обраною новою карткою: від тексту рядка (радіо 20 + 12), знизу 12 */
.pm-save { display: flex; align-items: flex-start; gap: 8px; align-self: flex-start; margin: 0 0 12px 32px; border: 0; background: none; padding: 0; font-size: 14px; line-height: 20px; color: var(--text-primary); text-align: left; cursor: pointer; }
.pm-save img { display: block; flex-shrink: 0; }
/* Перемикач кошика в панелі «Демо»: «Різні товари / Дитячі товари» */
.cart-switch { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg-medium); }
.demo .cart-switch__btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 8px; border-radius: 8px; font-size: 13px; line-height: 18px; font-weight: 600; text-align: center; color: var(--text-secondary); }
.demo .cart-switch__btn[aria-checked="true"] { background: #fff; color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* «Оплатити держпрограмою»: перехід в інший спосіб оплати, шеврон замість радіо */
.pm-row--go .pm-row__title span { font-weight: 400; }
/* підсвітка методу після переходу (кейс 3) */
.pm--flash { animation: pm-flash 1.2s ease-out; }
@keyframes pm-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--green-tint); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pm--flash { animation: none; } } /* однорядковий варіант (Google Pay, Apple Pay) – по центру */
.pm-row:hover .pm-row__title span { text-decoration: underline; text-underline-offset: 2px; }
.pm-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-row__title { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 18px; color: var(--text-primary); }
/* підпис рядка: опис 16; з банком/тегами (Meta у макеті) – ще 2 зверху, теги переносяться */
.pm-row__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; line-height: 16px; color: var(--text-muted); }
.pm-row__sub--meta { padding-top: 2px; }
.pm-row__sub .pm-tag { line-height: 16px; }
.pm-logos { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pm-logos img { display: block; }
/* Saved card change: «Змінити» відкриває попап «Ваші картки» */
/* Saved card change: текст + кнопка Button / Primary / Small 32px «Обрати іншу збережену картку» */
.pm-row__content { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pm-row__content .pm-row__text { align-self: stretch; }
.pm-change { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1.5px solid var(--text-primary); border-radius: 8px; background: #fff; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--text-primary); white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.pm-change:hover { background: var(--bg-medium); }

/* ---------- Попап «Ваші картки» ---------- */
.sheet.sheet--cards { width: 448px; }
.sheet--cards .sheet__head { border-bottom: 0; padding-bottom: 0; }
.cards__list { display: flex; flex-direction: column; }
.cards__add { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; border: 0; background: none; padding: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.cards__add img { display: block; flex-shrink: 0; }
.cards__add:hover span { text-decoration: underline; text-underline-offset: 2px; }
.cards__save { width: 100%; margin-top: 24px; }

/* Іконки банків у попапі розстрочки (24px) */
.ico-24 { position: relative; display: block; width: 24px; height: 24px; flex-shrink: 0; }
.ico-privat-parts > span { position: absolute; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); }
.ico-privat-parts img { display: block; transform: rotate(26.15deg); }
.ico-privat-parts__a { left: calc(50% + 1.88px); top: calc(50% + .44px); width: 27.128px; height: 27.912px; }
.ico-privat-parts__a img { width: 19.704px; height: 21.421px; }
.ico-privat-parts__b { left: calc(50% - 6.82px); top: calc(50% - 1.33px); width: 15.985px; height: 17.697px; }
.ico-privat-parts__b img { width: 10.71px; height: 14.457px; }
.ico-mono-parts > span { position: absolute; left: -2.61px; top: -2.4px; width: 28.383px; height: 28.383px; display: flex; align-items: center; justify-content: center; }
.ico-mono-parts img { display: block; width: 24px; height: 24px; object-fit: cover; transform: rotate(11.75deg); }

/* ---------- Промокоди / сертифікати (Widget account) ---------- */
.promo { padding-top: 32px; }
.promo__title { padding: 0 0 32px; }
.promo .card + .card { margin-top: 16px; }
.promo-card { padding: 15px; }
.promo-card .toggle-row__label { font-size: 16px; line-height: 20px; color: var(--text-primary); }
/* Tongle з Figma: вимкнений – сіра обвідка 1.5px і сірий кружок, увімкнений – як у базовому демо */
.promo-card .switch { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-default); }
.promo-card .switch::after { background: var(--border-default); box-shadow: none; }
.promo-card .switch[aria-checked="true"] { background: var(--green-tint); box-shadow: none; }
.promo-card .switch[aria-checked="true"]::after { background: var(--green); }
/* Увімкнений стан: поле 48px і кнопка «Застосувати» 14px, неактивна – #595959 */
.promo-card .field__control { padding-top: 16px; }
.promo-card .input { height: 48px; padding: 12px; font-size: 14px; line-height: 18px; border-color: var(--border-default); }
.promo-card .input::placeholder { color: var(--text-muted); }
.promo-card .btn-apply { min-height: 38px; margin-top: 16px; padding: 10px 16px; font-size: 14px; line-height: 18px; background: var(--text-primary); }
.promo-card .btn-apply:hover:not(:disabled) { background: #000; }
.promo-card .btn-apply:disabled { background: #595959; color: var(--text-muted); opacity: 1; }

/* ---------- Підсумок (Total) ---------- */
/* без overflow: hidden – інакше тултіп «Гарантуємо безпеку платежів» обрізається рамкою;
 * кути сірого низу округлюємо самі */
.summary { overflow: visible; }
.summary__bottom { border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px); }
.summary__rows { padding: 16px; }
.summary__row { color: #333; }
.summary__row + .summary__row { padding-top: 8px; }
.summary__bottom { padding: 16px; }
.summary__total { align-items: center; height: 24px; font-size: 14px; line-height: 18px; color: #333; }
.summary__total b { font-size: 18px; line-height: 24px; }
.summary__cta { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 32px; }
.summary .btn-primary { font-size: 14px; line-height: 18px; }
.summary__terms { padding-top: 16px; font-size: 12px; line-height: 16px; }
.summary__logos { display: none; }

/* Посилання «Гарантуємо безпеку платежів» + тултіп */
.safety { position: relative; display: inline-flex; }
.safety__link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: 13px; line-height: 16px; color: var(--text-secondary); }
.safety__link span { text-decoration: underline; text-underline-offset: 2px; }
.safety__link img { flex-shrink: 0; }
.safety__tip {
  position: absolute; z-index: 30; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  width: 320px; padding: 16px; border-radius: var(--radius-md); background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.06);
  font-size: 14px; line-height: 20px; color: var(--text-primary); text-align: left;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
/* місток над тултіпом, щоб він не зникав, поки курсор переходить з посилання */
.safety__tip::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
/* Arrow з Figma: 12×8, по центру зверху */
.safety__tip::after {
  content: ""; position: absolute; left: 50%; top: -8px; width: 12px; height: 8px; margin-left: -6px;
  background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.safety__tip b { display: block; font-weight: 600; }
/* пункти «Платіжні дані захищені» / «Легко повернути гроші»: іконка 20 + заголовок + текст */
.safety__items { display: flex; flex-direction: column; gap: 12px; }
.safety__tip .safety__items { padding-top: 12px; }
.safety__item { display: flex; gap: 8px; align-items: flex-start; }
.safety__item img { display: block; flex-shrink: 0; }
.safety__item-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 20px; color: var(--text-primary); }
.safety__item-text b { font-weight: 600; }
.sheet--safety .safety__items { gap: 20px; }
.safety:hover .safety__tip, .safety:focus-within .safety__tip { opacity: 1; visibility: visible; }

/* Логотипи платіжних систем */
.pay-logos { display: inline-flex; align-items: flex-start; gap: 16px; }
.pay-logos > img { display: block; width: 138px; height: 11px; }
.pay-logos__visa { position: relative; display: block; width: 98px; height: 14px; overflow: hidden; }
.pay-logos__visa img { position: absolute; left: 0; top: 0; width: 93.88%; height: 93.01%; }

/* Футер */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 12px 32px; text-align: left; font-size: 13px; line-height: 16px; background: #f6f6f6; }

/* ---------- Модалка / шторка: «Оплата частинами», «Безпека платежів» ---------- */
.overlay--sheet { padding: 16px; }
.sheet { position: relative; width: 828px; max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 16px; padding: 24px; }
.sheet--enter { animation: fade .15s ease-out; }
.sheet__head { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 -24px; padding: 0 24px 16px; border-bottom: 1px solid var(--border-default); }
.sheet__head--left { justify-content: flex-start; }
.sheet__title { font-size: 18px; line-height: 24px; font-weight: 600; color: #333; text-align: center; }
.sheet__head--left .sheet__title { flex: 1; text-align: left; }
.sheet__close { position: absolute; right: 16px; top: -8px; display: flex; border: 0; background: none; padding: 0; }
.sheet__head--left .sheet__close { position: static; }
.sheet__body { padding-top: 24px; }
.sheet--safety { width: 480px; }
.safety__p { font-size: 14px; line-height: 20px; color: var(--text-primary); }
.safety__p + .safety__p { padding-top: 20px; }

.parts__sum { display: none; padding-bottom: 16px; font-size: 16px; line-height: 20px; font-weight: 600; }
.parts__list { display: flex; flex-direction: column; gap: 24px; }
.plan {
  display: grid; grid-template-columns: 270px 144px 1fr 164px; align-items: center; column-gap: 24px;
  min-height: 72px; padding: 15px; border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer;
}
.plan--active { border-color: var(--green); }
.plan__info { display: flex; align-items: center; gap: 16px; min-width: 0; outline: none; border-radius: 4px; }
.plan__brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.plan__text { display: flex; flex-direction: column; white-space: nowrap; }
.plan__title { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-primary); }
.plan__meta { display: flex; gap: 6px; font-size: 13px; line-height: 15px; color: #333; }
.plan__free { color: #3c8042; }
.plan__select { position: relative; display: block; height: 40px; }
.plan__select select {
  width: 100%; height: 40px; padding: 0 44px 0 16px; appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--border-default); border-radius: var(--radius-md); background: #fff;
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-primary); cursor: pointer; outline: none;
}
.plan__select select:focus-visible { border-color: var(--text-primary); }
.plan__select img { position: absolute; right: 16px; top: 10px; pointer-events: none; }
.plan__price { justify-self: end; white-space: nowrap; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-primary); }
.plan__price b { font-size: 18px; line-height: 24px; font-weight: 600; }
.plan__btn, .parts__save {
  display: flex; align-items: center; justify-content: center; height: 40px; padding: 10px 16px;
  border-radius: var(--radius-md); font-size: 14px; line-height: 18px; font-weight: 600;
}
.plan__btn { border: 0; background: var(--text-primary); color: #fff; }
.plan__btn:hover { background: #000; }
.parts__note { display: flex; gap: 8px; align-items: flex-start; padding-top: 24px; font-size: 13px; line-height: 15px; color: var(--text-primary); }
.parts__note img { flex-shrink: 0; }
.parts__note a { color: inherit; }
.parts__save { width: 100%; margin-top: 24px; border: 1.5px solid var(--text-primary); background: #fff; color: var(--text-primary); }
.parts__save:hover { background: var(--bg-subtle); }

/* ===================================================================== */
@media (max-width: 1023px) {
  /* колонка з align-items: flex-start інакше розтягується по однорядкових описах оплати */
  .content { width: 100%; }
  .summary__logos { display: block; padding-top: 16px; }
  .footer__logos { display: none; }
  .footer { justify-content: center; text-align: center; }
}

@media (max-width: 767px) {
  .payment { padding-top: 24px; }
  .promo-banner { margin-top: 24px; }
  .promo__title { padding-bottom: 24px; }
  .summary__cta { display: flex; }
  .summary__cta-spacer { display: none; }
  .summary__terms { text-align: left; }
  .footer { padding: 12px 16px calc(104px + env(safe-area-inset-bottom)); }
  .mobile-cta { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mobile-cta { transition: transform .2s ease, opacity .2s ease; }
  .mobile-cta.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
  .mobile-cta .btn-primary { font-size: 14px; line-height: 18px; }
  .safety--cta { display: flex; justify-content: center; padding-top: 8px; }
  .safety--cta .safety__link { font-size: 11px; line-height: 14px; }
  .safety--cta .safety__link img { width: 12px; height: 12px; }
  .safety--cta .safety__link span { text-decoration: none; }
  .safety__tip { display: none; }

  .overlay--sheet { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 16px 16px 0 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
  .sheet--enter { animation: sheet-in .25s ease-out; }
  .sheet__head { margin: 0 -16px; padding: 0 16px 16px; }
  .sheet--safety { width: 100%; }
  .parts__sum { display: block; }
  .parts__list { gap: 16px; }
  .plan { grid-template-columns: 1fr auto; row-gap: 16px; column-gap: 16px; padding: 15px; }
  .plan__info { grid-column: 1 / -1; gap: 12px; align-items: flex-start; }
  .plan__brand { align-items: flex-start; }
  .plan__text { white-space: normal; }
  .plan__btn { grid-column: 1 / -1; }
  .plan__price { min-width: 108px; text-align: right; }
}

/* ---------- Флоу CX «як зараз на eva.ua»: блок оплати з живого чекауту (20.10.2026) ---------- */
.lp-list { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.lp { padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; outline: none; transition: background-color .15s; }
.lp:hover { background: #f9fafb; }
.lp--on, .lp--on:hover { border-color: #76bf44; background: #fff; cursor: default; }
.lp:focus-visible, .lp-method:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text-primary); }
.lp__head { display: flex; gap: 12px; align-items: flex-start; }
.lp__head > img { display: block; flex-shrink: 0; margin-top: 2px; }
.lp__title { font-size: 16px; line-height: 20px; font-weight: 600; color: #111827; }
.lp__sub { margin-top: 4px; font-size: 12px; line-height: 16px; color: #6b7280; }
.lp__methods { list-style: none; margin: 16px 0 0; padding: 0 0 0 32px; }
.lp-method { position: relative; padding: 8px 0 8px 32px; font-size: 14px; line-height: 20px; color: #212121; cursor: pointer; outline: none; }
.lp-method::before { content: ''; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; box-sizing: border-box; border: 1px solid #d8d8d8; border-radius: 50%; transition: border-width .15s, border-color .15s; }
.lp-method--on::before { border: 4px solid #76bf44; }
.lp-method__label { display: inline-flex; align-items: center; gap: 8px; }
.lp-method__label img { display: block; }

/* ---------- Опитування після замовлення (закритий тест) ---------- */
.survey { margin: 28px 0 4px; padding: 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #fff; text-align: left; }
.survey__title { margin: 0 0 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.survey__title span { font-weight: 400; color: var(--text-secondary); font-size: 14px; }
.survey__q { display: block; margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.survey__q legend, .survey__label { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-primary); }
.survey__q legend span { font-weight: 400; color: var(--text-secondary); }
.survey__scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.survey__num { height: 40px; border: 1px solid var(--border-default); border-radius: 8px; background: #fff; font-size: 15px; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.survey__num:hover { border-color: var(--text-primary); }
.survey__num[aria-checked="true"] { border-color: var(--green); background: var(--green-tint); }
.survey__ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--text-secondary); }
.survey__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.survey__text { width: 100%; min-height: 64px; resize: vertical; font: inherit; line-height: 20px; }
.survey__hint { margin: 8px 0 0; padding: 0 !important; font-size: 12px; color: var(--text-secondary); }
.survey__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.survey__actions .btn-primary { margin: 0 !important; }
.survey__actions .btn-primary[disabled] { opacity: .4; cursor: not-allowed; }
.survey__skip { border: 0; background: none; padding: 0; font-size: 14px; color: var(--text-secondary); text-decoration: underline; cursor: pointer; }
.survey--done { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.survey--done span { color: var(--text-secondary); }
/* поки відкрите опитування – «Оформити ще одне замовлення» другорядна, щоб не конкурувала з «Надіслати відповіді» */
.success__again { margin-top: 20px; border: 0; background: none; padding: 8px; font-size: 15px; font-weight: 600; color: var(--text-primary); text-decoration: underline; cursor: pointer; }
