/* ONLINE PARK — личный кабинет и избранное (макеты Account-1…6, Account-360, Favorites).
   Размеры сняты с макета: меню 226px с линией справа, зазор до колонки 24px;
   белые блоки r8 с полем 16px и зазором 8px; заголовок блока 24/32; текст 16/21;
   поле 54px с синей рамкой, иконкой 16px и пунктирным делителем; кнопки 47 и 53px. */

/* ── Страница ────────────────────────────────────────────── */

.account-page { padding-top: 40px; padding-bottom: 32px; }
.account-page .crumbs, .wl-page .crumbs { font-size: 13px; line-height: 17px; margin-bottom: 40px; }
.account-page h1 { font-size: 36px; line-height: 43px; margin-bottom: 17px; }

.account { position: relative; display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 24px; align-items: start; }
.account::before { content: ''; position: absolute; left: 225px; top: 0; bottom: 0; width: 1px; background: var(--bg-grey); }

/* ── Меню кабинета ───────────────────────────────────────── */

.account-nav { position: sticky; top: 16px; width: 225px; display: flex; flex-direction: column; }
.account-nav a,
.account-nav button {
    display: flex; align-items: center; gap: 8px; flex: none;
    height: 48px; padding: 0 24px; border: 0; border-radius: 0;
    background: transparent; color: var(--ink); font-size: 16px; line-height: 21px; font-weight: 500;
    text-align: left; white-space: nowrap; transition: background .15s, color .15s;
}
.account-nav .icon { color: var(--blue); flex: none; }
.account-nav a:hover { background: var(--white); color: var(--ink); }
.account-nav .on, .account-nav .on:hover { background: var(--blue); color: var(--white); }
.account-nav .on .icon { color: var(--white); }
.account-nav .acc-exit .icon { color: var(--red); }
.account-nav .acc-exit:hover { background: var(--red); color: var(--white); }
.account-nav .acc-exit:hover .icon { color: var(--white); }
.account-nav .acc-count {
    margin-left: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-24);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink-10); font-size: 10px; font-weight: 500; line-height: 1;
}
.account-nav .on .acc-count { background: rgba(255, 255, 255, .3); color: var(--white); }

/* ── Белые блоки ─────────────────────────────────────────── */

.acc-box { background: var(--white); border-radius: var(--r-8); padding: 16px; }
.acc-box + .acc-box, .acc-box + .acc-cols, .acc-cols + .acc-box { margin-top: 8px; }
.acc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acc-cols .acc-box + .acc-box { margin-top: 0; }

/* Шапка блока: заголовок 24/32, справа кнопка или фильтр */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 32px; margin-bottom: 16px; }
.acc-head-row { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-width: 0; }
.acc-title { display: flex; align-items: center; gap: 8px; font-size: 24px; line-height: 32px; font-weight: 700; margin: 0; }
.acc-title .icon { flex: none; }
/* Над таблицей шапка 44px и зазор 8px (Account-1, Account-2) */
.acc-head-tbl { min-height: 44px; margin-bottom: 8px; }

/* Вложенный экран: стрелка назад 56×43 + название */
.acc-back { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-back-btn { flex: none; width: 56px; height: 43px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-8); color: var(--ink); }
.acc-back-btn:hover { background: var(--bg); color: var(--blue); }

.acc-text { font-size: 16px; line-height: 21px; }
.acc-big { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--orange); margin-top: 8px; }
.acc-muted { opacity: .5; }
.acc-sub { font-size: 16px; line-height: 20px; font-weight: 500; margin-bottom: 8px; }

/* Быстрые ссылки: строки 29px, подчёркнутый текст */
.acc-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.acc-links a, .acc-ulink { padding: 4px 0; font-size: 16px; line-height: 21px; text-decoration: underline; text-underline-offset: 3px; }
.acc-links a:hover, .acc-ulink:hover { color: var(--blue); }
button.acc-ulink { border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; }

/* ── Кнопки кабинета ─────────────────────────────────────── */

.acc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
    height: 47px; padding: 0 16px; border: 1px solid var(--blue); border-radius: var(--r-8);
    background: var(--white); color: var(--ink); font-size: 16px; line-height: 21px; font-weight: 500; white-space: nowrap;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.acc-btn:hover { background: var(--blue); color: var(--white); }
.acc-btn .icon { flex: none; }
/* Кнопка формы: во всю ширину, 53px, синий текст */
.acc-btn-save { width: 100%; height: 53px; color: var(--blue); }
.acc-btn-save.acc-btn-auto { width: auto; height: 55px; padding: 0 24px; }
.acc-btn-blue { background: var(--blue); color: var(--white); }
.acc-btn-blue:hover { background: var(--blue-h); border-color: var(--blue-h); color: var(--white); }
.acc-btn-grey { background: var(--bg-grey); border-color: var(--bg-grey); }
.acc-btn-grey:hover { background: #e3e3de; border-color: #e3e3de; color: var(--ink); }
.acc-btn-sm { height: 45px; }
.acc-btn:disabled { opacity: .5; pointer-events: none; }

/* Фильтр «ВСЕ ЗАКАЗЫ» / «ВСЕ ОТЗЫВЫ»: серая плашка 44px, капс 12px */
.acc-drop { position: relative; flex: none; }
.acc-drop summary {
    list-style: none; display: inline-flex; align-items: center; gap: 16px; cursor: pointer;
    height: 44px; padding: 0 16px; border-radius: var(--r-8); background: var(--bg-grey);
    font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.acc-drop summary::-webkit-details-marker { display: none; }
.acc-drop summary .icon { transition: transform .15s; }
.acc-drop[open] summary .icon { transform: rotate(180deg); }
.acc-drop-menu {
    position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 100%;
    background: var(--white); border-radius: var(--r-8); box-shadow: 0 8px 24px rgba(6, 6, 6, .12); padding: 6px;
}
.acc-drop-menu a { display: block; padding: 8px 12px; border-radius: var(--r-4); font-size: 14px; white-space: nowrap; }
.acc-drop-menu a:hover, .acc-drop-menu a.on { background: var(--bg); color: var(--ink); }

/* ── Таблицы (обзор, история заказов, бонусы) ────────────── */

.acc-table { display: flex; flex-direction: column; gap: 8px; }
.acc-tr { display: grid; column-gap: 24px; align-items: start; padding: 4px 0; border-bottom: 1px solid var(--bg-grey); font-size: 16px; line-height: 21px; }
.acc-tr > * { min-width: 0; }
.acc-tr:last-child { border-bottom: 0; }
.acc-th { line-height: 20px; }
.acc-th > * { opacity: .5; }
/* Доли колонок макета: 320 / 149 / 149 / 208 при зазоре 24 */
.acc-tr-4a { grid-template-columns: 320fr 149fr 149fr 208fr; }
.acc-tr-4b { grid-template-columns: 320fr 149fr 208fr 149fr; }
.acc-tr-bonus { grid-template-columns: 149fr 320fr 149fr 149fr; }
.acc-cell-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc-cell-name:hover { color: var(--blue); }
.acc-cell-sub { display: block; }
.acc-cell-note { display: block; font-size: 14px; line-height: 19px; opacity: .5; }
.acc-ok { color: var(--green-t); }
.acc-bad { color: var(--red); }
.acc-done { color: var(--blue); }
.acc-warn { color: var(--orange); }
.acc-tr a.blue:hover { text-decoration: underline; }

/* Карточка заказа: секция с заголовком-линией и строками */
.acc-sec { margin-bottom: 16px; }
.acc-sec:last-child { margin-bottom: 0; }
.acc-sec-title { padding: 4px 0; border-bottom: 1px solid var(--bg-grey); font-size: 16px; line-height: 20px; margin-bottom: 8px; opacity: .5; }
.acc-line { display: flex; justify-content: space-between; gap: 24px; font-size: 16px; line-height: 21px; }
.acc-line + .acc-line { margin-top: 8px; }
.acc-line > :last-child { text-align: right; }
.acc-line a:hover { color: var(--blue); }
.acc-line-qty { display: inline-block; min-width: 17px; margin-right: 8px; opacity: .5; }
.acc-doc-name { min-width: 0; overflow-wrap: anywhere; }
.acc-line .acc-doc-link { text-decoration: underline; text-underline-offset: 2px; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ── Поля: иконка | пунктир | ввод ───────────────────────── */

.acc-form { display: flex; flex-direction: column; gap: 8px; }
.acc-fld { min-width: 0; }
.acc-field {
    display: flex; align-items: center; gap: 16px; height: 54px; padding: 0 17px;
    border: 1px solid var(--blue); border-radius: var(--r-8); background: var(--white); cursor: text;
}
.acc-field:focus-within { border-color: var(--blue-h); box-shadow: 0 0 0 1px var(--blue-h); }
.acc-field > .icon { flex: none; color: var(--blue); }
.acc-field input, .acc-field select, .acc-field textarea {
    flex: 1 0 0; min-width: 0; width: 100%; height: 20px; padding: 0; margin: 0; border: 0; border-radius: 0; outline: 0;
    background: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; appearance: none;
}
.acc-field > .icon + input, .acc-field > .icon + select, .acc-field > .icon + textarea { border-left: 1px dashed var(--blue); padding-left: 16px; }
.acc-field input::placeholder, .acc-field textarea::placeholder { color: var(--ink); opacity: .3; }
.acc-field input:read-only { cursor: default; }
.acc-field-area { height: auto; align-items: flex-start; padding: 17px; }
.acc-field-area > .icon { margin-top: 2px; }
.acc-field-area textarea { height: 157px; resize: none; }
.acc-field select { cursor: pointer; text-overflow: ellipsis; }
.acc-field .afield-eye { position: static; flex: none; }
.acc-fld .field-error { margin-top: 4px; padding-left: 17px; }
.acc-fld:has(.field-error:not(:empty)) .acc-field { border-color: var(--red); }
.acc-fld:has(.field-error:not(:empty)) .acc-field > .icon { color: var(--red); }
.acc-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Чекбокс макета: 20×20, белый, синяя галочка */
.acc-check { position: relative; display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 16px; line-height: 21px; }
.acc-check input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.acc-check i {
    flex: none; width: 20px; height: 20px; border: 1px solid var(--ink-10); border-radius: var(--r-4);
    background: var(--white); color: var(--blue); display: inline-flex; align-items: center; justify-content: center;
}
.acc-check i .icon { width: 10px; height: 10px; opacity: 0; }
.acc-check input:checked + i .icon { opacity: 1; }
.acc-check input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.acc-check:hover i { border-color: var(--blue); }
.acc-check-lg input, .acc-check-lg i { width: 24px; height: 24px; }
.acc-check-lg i { border-color: rgba(94, 85, 238, .4); }
.acc-check-lg i .icon { width: 14px; height: 14px; }
.acc-checks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ── Профиль ─────────────────────────────────────────────── */

.acc-verify { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ── Отзывы (Account - 3) ────────────────────────────────── */

.review { padding: 16px; border-bottom: 1px solid var(--bg-grey); }
.review:first-of-type { border-top: 1px solid var(--bg-grey); }
.review:last-of-type { border-bottom: 0; padding-bottom: 0; }
.review-row { display: flex; gap: 20px; align-items: flex-start; }
.review-body { flex: 1 0 0; min-width: 0; }
.review-on { font-size: 16px; line-height: 20px; }
.review-on a { text-decoration: underline; text-underline-offset: 3px; }
.review-on a:hover { color: var(--blue); }
.review-head { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.review-rate { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; line-height: 24px; }
.review-rate .icon { color: var(--orange); width: 24px; height: 24px; }
.review-title { font-size: 18px; line-height: 24px; font-weight: 700; }
.review-text { margin-top: 8px; font-size: 16px; line-height: 20px; }
.review-date { margin-top: 8px; font-size: 13px; line-height: 17px; opacity: .5; }
.review-pics { display: flex; gap: 10px; flex: none; margin-top: 20px; }
.review-pics img { width: 140px; height: 105px; object-fit: cover; border-radius: var(--r-8); display: block; background: var(--bg); }
.review-status { margin-top: 20px; font-size: 16px; line-height: 21px; }
.review-status-approved { color: var(--blue); }
.review-status-pending { color: var(--green-t); }
.review-rejected > * { opacity: .5; }
.acc-answer { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-8); background: var(--bg); font-size: 14px; line-height: 20px; }

/* Форма отзыва (Account - 3 open / open add) */
.review-form { display: grid; grid-template-columns: 322px minmax(0, 1fr); gap: 8px; align-items: start; }
.review-pick { border: 1px solid var(--blue); border-radius: var(--r-8); overflow: hidden; }
.review-pick-head { display: flex; align-items: center; justify-content: space-between; height: 51px; padding: 0 16px; font-size: 14px; line-height: 19px; }
.review-pick-list { max-height: 281px; overflow-y: auto; }
.review-pick-item { position: relative; display: block; padding: 16px 12px; border-top: 1px solid var(--bg-grey); font-size: 14px; line-height: 19px; cursor: pointer; }
.review-pick-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.review-pick-item:hover { background: var(--bg); }
.review-pick-item:has(input:checked) { background: var(--bg-grey); }
.review-pick-item:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.review-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.review-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; height: 24px; }
.review-stars input { position: absolute; opacity: 0; pointer-events: none; }
.review-stars label { color: var(--ink-10); cursor: pointer; display: inline-flex; }
.review-stars input:checked ~ label, .review-stars label:hover, .review-stars label:hover ~ label { color: var(--orange); }
.review-count { margin-top: 4px; font-size: 13px; line-height: 17px; opacity: .5; text-align: right; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.review-attach { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-thumbs { display: contents; }
.review-thumb { position: relative; width: 63px; height: 47px; border-radius: var(--r-4); overflow: hidden; background: var(--bg-grey); }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-thumb button { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.review-thumb button:hover { color: var(--red); }

/* ── Адреса (Account - 5) ────────────────────────────────── */

.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; align-items: start; }
.addr { display: flex; flex-direction: column; gap: 8px; }
.addr-head { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 16px; line-height: 20px; }
.addr-head form { display: inline-flex; }
.addr-head .acc-ulink { padding: 0; line-height: 20px; }
.addr-edit { margin-left: auto; flex: none; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: var(--ink); display: inline-flex; cursor: pointer; }
.addr-edit:hover, .addr.is-edit .addr-edit { color: var(--blue); }
.addr-foot { display: none; gap: 16px; align-items: center; }
.addr.is-edit .addr-foot { display: flex; }
.addr-foot .acc-btn-save { flex: 1 0 0; width: auto; }
.addr-del { flex: none; border: 0; background: none; padding: 0; font-size: 14px; line-height: 19px; color: var(--ink); opacity: .5; cursor: pointer; }
.addr-del:hover { opacity: 1; color: var(--red); }
.addr-add { margin-top: 16px; }

/* ── Оповещения (Account - 6) ────────────────────────────── */

.ntf-list { display: flex; flex-direction: column; gap: 16px; }
.ntf { background: var(--bg); border-radius: var(--r-8); padding: 16px 24px; }
.ntf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; font-size: 14px; line-height: 19px; }
.ntf-title { display: flex; gap: 16px; min-width: 0; }
.ntf-kind { flex: none; max-width: 50%; padding-right: 16px; border-right: 1px dashed currentColor; color: var(--blue); }
.ntf-kind-warn { color: var(--orange); }
.ntf-title p { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.ntf-date { flex: none; white-space: nowrap; }
.ntf-body { margin-top: 16px; font-size: 16px; line-height: 21px; }
.ntf-body a { display: inline-block; border-bottom: 1px solid var(--ink); }
.ntf-body a:hover { color: var(--blue); border-color: var(--blue); }
/* Товар в оповещении: название, цена, старая цена и скидка одной подчёркнутой строкой */
.ntf-body .ntf-product { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; max-width: 100%; padding-bottom: 2px; }
.ntf-product-name { margin-right: 8px; min-width: 0; overflow-wrap: anywhere; }
.ntf-product-price { white-space: nowrap; }
.ntf-product s { font-size: 14px; white-space: nowrap; }
.ntf-product .badge { flex: none; }
.ntf-unread .ntf-date::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--blue); vertical-align: middle; }

/* Настройка оповещений (Account - 6 open) */
.ntf-all { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.ntf-groups { display: flex; flex-direction: column; gap: 16px; }
.ntf-group-title { padding: 4px 0; border-bottom: 1px solid var(--bg-grey); font-size: 16px; line-height: 20px; opacity: .5; margin-bottom: 8px; }
.ntf-save { margin-top: 16px; }
.ntf-state { margin-left: 12px; font-size: 14px; opacity: .5; }

/* Пагинация кабинета: квадраты 48px */
.acc-pager { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.acc-pager-nums { display: flex; gap: 8px; }
.acc-pager > a, .acc-pager > span, .acc-pager-nums > * { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-8); font-size: 16px; line-height: 20px; }
.acc-pager-nums > * { background: var(--bg); }
.acc-pager .icon { width: 16px; height: 16px; }
.acc-pager a:hover { background: var(--bg-grey); color: var(--ink); }
.acc-pager .on { background: var(--blue); color: var(--white); }
.acc-pager .off { opacity: .35; }

/* ── Бонусы и жалобы (своих фреймов в макете нет — на компонентах кабинета) ── */

.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acc-stat { background: var(--bg); border-radius: var(--r-8); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.acc-stat-num { font-size: 24px; line-height: 32px; font-weight: 700; }
.acc-stat:first-child .acc-stat-num { color: var(--orange); }
.acc-stat-cap { font-size: 14px; line-height: 19px; opacity: .5; }
.acc-ref { margin-top: 8px; padding-right: 4px; }
.acc-ref .acc-btn { height: 44px; }

/* Пустое состояние внутри блока */
.acc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ── Модалки подтверждения (макет delete / back: 420px) ───── */

.acc-modal { max-width: 420px; padding: 16px; border-radius: var(--r-8); }
.acc-modal-head { display: flex; justify-content: space-between; gap: 16px; min-height: 64px; margin-bottom: 16px; }
.acc-modal-head p { font-size: 18px; line-height: 1.2; font-weight: 600; max-width: 340px; }
.acc-modal-head button { border: 0; background: none; padding: 0; width: 24px; height: 24px; color: var(--ink); flex: none; }
.acc-modal-head button:hover { color: var(--red); }
.acc-modal-actions { display: flex; gap: 16px; }
.acc-modal-actions .acc-btn { flex: 1 0 0; height: 48px; }
.acc-modal-actions form { flex: 1 0 0; display: flex; }

/* ── Избранное (макет Favorites) ─────────────────────────── */

.wl-page { padding-top: 40px; padding-bottom: 32px; }
.wl-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.wl-head h1 { font-size: 36px; line-height: 43px; }
.wl-head span { font-size: 36px; line-height: 43px; color: var(--blue); }
.wl-bar { display: flex; align-items: center; gap: 8px 40px; flex-wrap: wrap; min-height: 37px; margin-bottom: 24px; }
.wl-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 37px; padding: 0 12px; border: 0; border-radius: var(--r-8);
    background: var(--white); color: var(--ink); font-size: 16px; line-height: 21px; font-weight: 500; cursor: pointer;
}
.wl-btn:hover { background: var(--bg-grey); }
.wl-btn .icon { color: var(--blue); }
.wl-btn-del .icon { color: var(--red); }
.wl-list { display: flex; flex-direction: column; gap: 8px; max-width: 925px; }
.wl-list.is-busy { opacity: .6; pointer-events: none; }
.wl-row {
    position: relative; display: grid; grid-template-columns: 24px 172px minmax(0, 1fr) 200px; column-gap: 16px;
    min-height: 156px; padding-left: 16px; background: var(--white); border-radius: var(--r-8);
}
.wl-row > .acc-check { align-self: center; }
.wl-pic { position: relative; display: block; width: 172px; height: 132px; margin: 12px 0; border-radius: var(--r-8); overflow: hidden; background: var(--white); }
.wl-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wl-pic .noimg { display: block; width: 100%; height: 100%; background: var(--bg-grey); }
.wl-pic-wrap { position: relative; }
.wl-heart { position: absolute; top: 20px; right: 8px; z-index: 1; }
.wl-heart button {
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(6, 6, 6, .08);
}
.wl-heart button .icon { width: 14px; height: 14px; }
.wl-heart button.is-on { color: var(--orange); }
.wl-heart button.is-on .icon, .wl-heart button.is-on .icon * { fill: currentColor; }
.wl-main { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin: 12px 0; min-width: 0; }
.wl-name { font-size: 18px; line-height: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.wl-name:hover { color: var(--blue); }
.wl-main .btn { width: 100%; height: 48px; font-size: 16px; font-weight: 500; }
.wl-note { font-size: 14px; line-height: 19px; opacity: .5; }
.wl-price { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 24px; border-left: 1px solid var(--bg-grey); }
.wl-price b { font-size: 24px; line-height: 32px; font-weight: 700; white-space: nowrap; }
.wl-price s { font-size: 14px; line-height: 19px; opacity: .4; white-space: nowrap; }
.wl-row.is-off .wl-pic img, .wl-row.is-off .wl-name { opacity: .5; }
/* Убрали сердечком: строка бледнеет, поверх — «Убрано из избранного / Вернуть» */
.wl-undo { display: none; }
.wl-row.is-removed > :not(.wl-undo) { opacity: .5; pointer-events: none; }
.wl-row.is-removed .wl-undo {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    position: absolute; left: 274px; top: 50%; transform: translateY(-50%); z-index: 2;
    padding: 20px 24px; border-radius: var(--r-8); background: var(--white); box-shadow: 0 16px 40px rgba(6, 6, 6, .12);
    font-size: 16px; line-height: 21px; font-weight: 600; white-space: nowrap;
}
.wl-undo .acc-btn { height: 48px; padding: 0 24px; }

/* ── Адаптив ─────────────────────────────────────────────── */

@media (max-width: 1199px) {
    .review-form { grid-template-columns: 1fr; }
    .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .account { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .account::before { display: none; }
    /* Account-360: меню — лента вкладок во всю ширину экрана */
    .account-nav { position: static; width: auto; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a, .account-nav button { height: 44px; padding: 0 12px; }
    .account-nav .icon { width: 16px; height: 16px; }
    .account-nav .acc-count { margin-left: 0; }
    .acc-cols, .addr-grid { grid-template-columns: minmax(0, 1fr); }
    .addr-grid { gap: 16px; }
    .wl-row { grid-template-columns: 24px 172px minmax(0, 1fr) 160px; }
    .wl-price { padding: 12px 16px; }
    .wl-row.is-removed .wl-undo { left: 50%; transform: translate(-50%, -50%); }
}

@media (max-width: 767px) {
    .account-page, .wl-page { padding-top: 24px; padding-bottom: 0; }
    .account-page .crumbs, .wl-page .crumbs { margin-bottom: 24px; }
    .account-page h1, .wl-head h1, .wl-head span { font-size: 32px; line-height: 37px; }
    .account-page h1 { margin-bottom: 16px; }
    /* В макете 360 белые блоки идут во всю ширину экрана, без боковых полей */
    .account > div { margin: 0 calc(var(--gutter) * -1); }
    .acc-box { border-radius: 0; }
    .acc-title { font-size: 18px; line-height: 24px; }
    .acc-head { flex-wrap: wrap; }
    .acc-head-tbl { min-height: 32px; }
    .acc-big { font-size: 18px; line-height: 24px; }
    .acc-text, .acc-links a, .acc-ulink, .acc-line, .acc-tr, .acc-sec-title, .acc-sub, .addr-head,
    .review-on, .review-text, .review-status, .ntf-body { font-size: 14px; line-height: 19px; }
    .acc-cell-note, .ntf-top { font-size: 12px; line-height: 17px; }
    .acc-table { overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
    .acc-table::-webkit-scrollbar { display: none; }
    .acc-tr { column-gap: 16px; }
    .acc-tr-4a { grid-template-columns: 220px 104px 149px 208px; width: 729px; }
    .acc-tr-4b { grid-template-columns: 220px 149px 160px 100px; width: 677px; }
    .acc-tr-bonus { grid-template-columns: 100px 220px 100px 100px; width: 568px; }
    .acc-btn { font-size: 14px; height: 44px; }
    .acc-btn-save { height: 48px; }
    .acc-back-btn { width: 40px; }
    .review { padding: 16px 0; }
    .review-row { flex-direction: column; gap: 0; }
    .review-pics { margin-top: 12px; }
    .review-pics img { width: 120px; height: 90px; }
    .review-title { font-size: 16px; }
    .review-foot { flex-direction: column; align-items: stretch; }
    .review-foot .acc-btn-blue { width: 100%; }
    .ntf { padding: 16px; }
    .ntf-top { flex-direction: column; gap: 8px; }
    .ntf-title { flex-direction: column; gap: 4px; }
    .ntf-kind { border: 0; padding: 0; max-width: none; }
    .acc-check { font-size: 14px; line-height: 20px; }
    .acc-pager { gap: 8px; }
    .acc-pager-nums { gap: 4px; }
    .acc-pager > a, .acc-pager > span, .acc-pager-nums > * { width: 40px; height: 40px; }
    .addr-foot { flex-direction: column; align-items: stretch; }
    .addr-foot .acc-btn-save { flex: none; }
    .acc-line { gap: 16px; }

    .wl-bar { margin-bottom: 16px; }
    .wl-btn { font-size: 14px; }
    .wl-row { grid-template-columns: 24px 104px minmax(0, 1fr); column-gap: 12px; padding: 0 12px; min-height: 0; }
    .wl-pic { width: 104px; height: 80px; }
    .wl-heart { top: 16px; right: 4px; }
    .wl-heart button { width: 28px; height: 28px; }
    .wl-name { font-size: 14px; line-height: 19px; }
    .wl-main .btn { height: 44px; font-size: 14px; }
    .wl-price { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; padding: 8px 0 12px; border-left: 0; border-top: 1px solid var(--bg-grey); }
    .wl-price:empty { display: none; }
    .wl-price b { font-size: 18px; line-height: 24px; }
}

@media (max-width: 479px) {
    .acc-stats { grid-template-columns: minmax(0, 1fr); }
    .acc-row-3 { gap: 4px; }
    .acc-row-3 .acc-field { padding: 0 10px; }
}
