/* Кабинет покупателя, вход и регистрация (frontend\modules\user\assets\AccountAsset). Цвета - как у сайта (main.css: --color-success). */

/* Переменные - и у шага Login / Gast пошагового оформления: там поля пароля и кнопка Google - как у входа */
.account,
.auth,
.checkout-login {
	--acc-green: #55871c;
	--acc-green-dark: #3f6914;
	--acc-green-soft: #eef8e2;
	--acc-green-line: #d4e9ba;
	--acc-ink: #1e1e1e;
	--acc-text: #3b3b3b;
	--acc-muted: #6f6f6f;
	--acc-line: #e7e7e2;
	--acc-bg: #f5f5f1;
	--acc-radius: 16px;
	--acc-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 12px 32px -20px rgb(0 0 0 / 28%);
	--acc-shadow-hover: 0 2px 4px rgb(0 0 0 / 5%), 0 18px 40px -20px rgb(0 0 0 / 35%);
	color: var(--acc-text);
}

/* ---------- Каркас кабинета ---------- */

/* Фон страницы - и под отступом body для фиксированной шапки, иначе между шапкой и кабинетом белая полоса */
body.account-page,
body.auth-page { background: #f5f5f1; }

.account { background: var(--acc-bg); padding: 28px 0 72px; flex-grow: 1; }
.account__layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.account__aside { position: sticky; top: 88px; }
.account__main { min-width: 0; }

@media (min-width: 1320px) {
	.account > .container,
	.auth > .container { max-width: 1280px; }
}

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

.account-nav { background: #fff; border-radius: var(--acc-radius); box-shadow: var(--acc-shadow); padding: 12px; }
.account-nav__user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--acc-line); }
.account-nav__who { min-width: 0; }
.account-nav__name { font-weight: 700; color: var(--acc-ink); line-height: 1.3; overflow-wrap: anywhere; }
.account-nav__email { font-size: 0.8rem; color: var(--acc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav__list { list-style: none; margin: 0; padding: 0; }
.account-nav__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--acc-text); font-weight: 600; font-size: 0.95rem; transition: background-color 0.15s, color 0.15s; }
.account-nav__link i { color: #a3a3a3; transition: color 0.15s; }
.account-nav__link:hover { background: var(--acc-bg); color: var(--acc-ink); text-decoration: none; }
.account-nav__link.is-active { background: var(--acc-green-soft); color: var(--acc-green-dark); }
.account-nav__link.is-active i { color: var(--acc-green); }
.account-nav__logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--acc-line); }
.account-nav__logout .account-nav__link { color: var(--acc-muted); }

.account-avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #78ad34, #3f6914); color: #fff; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Заголовок страницы ---------- */

.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.account-head__eyebrow { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-green); }
.account-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; color: var(--acc-ink); }
.account-head__sub { margin: 6px 0 0; color: var(--acc-muted); }
.account-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.account-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: var(--acc-muted); }
.account-back:hover { color: var(--acc-ink); text-decoration: none; }

/* ---------- Кнопки, ссылки, подсказки ---------- */

.account-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.7rem 1.3rem; border: 0; border-radius: 12px; background: var(--acc-green); color: #fff; font-weight: 700; font-size: 0.95rem; line-height: 1.2; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 15%); transition: background-color 0.15s, transform 0.15s; cursor: pointer; }
.account-btn:hover,
.account-btn:focus { background: var(--acc-green-dark); color: #fff; text-decoration: none; }
.account-btn:active { transform: translateY(1px); }
.account-btn--light { background: #fff; color: var(--acc-ink); box-shadow: 0 0 0 1px var(--acc-line) inset; }
.account-btn--light:hover,
.account-btn--light:focus { background: var(--acc-bg); color: var(--acc-ink); }
.account-btn--block { width: 100%; }

.account-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--acc-green); white-space: nowrap; }
.account-link:hover { color: var(--acc-green-dark); }

.account-hint { margin: 12px 0 0; font-size: 0.88rem; color: var(--acc-muted); }
.account-hint a { color: var(--acc-green); font-weight: 600; }

.account-alert { border: 0; border-radius: 12px; box-shadow: var(--acc-shadow); margin-bottom: 24px; }

.account-notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 24px; border-radius: 12px; font-weight: 600; }
.account-notice--danger { background: #fde9e7; color: #a12a1e; }
.account-notice--info { background: var(--acc-green-soft); color: var(--acc-green-dark); }
.account-notice--warning { flex-wrap: wrap; background: #fffaf0; box-shadow: 0 0 0 1px #f0dcb0 inset; color: #7a5300; font-weight: 400; }
.account-notice--warning > i { font-size: 1.2rem; }
.account-notice__text { flex: 1 1 260px; }
.account-notice__text b,
.account-notice__text span { display: block; }
.account-notice__action { margin: 0; }

/* ---------- Карточки ---------- */

.account-card { background: #fff; border-radius: var(--acc-radius); box-shadow: var(--acc-shadow); padding: 24px; margin-bottom: 24px; }
.account-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.account-card__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--acc-ink); }
.account-card__title i { color: var(--acc-green); margin-right: 4px; }
.account-card__kicker { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-green); }
.account-card__aside { font-size: 0.8rem; color: var(--acc-muted); }
.account-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--acc-line); }
.account-card__total b { color: var(--acc-ink); font-size: 1.1rem; }
.account-card--highlight { box-shadow: var(--acc-shadow), 0 0 0 1px var(--acc-green-line) inset; background: linear-gradient(180deg, #f8fcf2 0%, #fff 55%); }
.account-card--notice { box-shadow: var(--acc-shadow), 0 0 0 1px #f0dcb0 inset; background: #fffaf0; }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.account-grid > .account-card { margin-bottom: 0; }

/* ---------- Значки статусов ---------- */

.account-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; white-space: nowrap; }
.account-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.account-badge--info { background: #e8f0fc; color: #1d5fbf; }
.account-badge--warning { background: #fdf0db; color: #a1530a; }
.account-badge--primary { background: #eaf5dc; color: #3f6914; }
.account-badge--success { background: #dcefc6; color: #2c5409; }
.account-badge--muted { background: #efefec; color: #5f5f5f; }
.account-badge--danger { background: #fde9e7; color: #b42318; }
.account-badge i + * { margin-left: 2px; }

/* ---------- Ход выполнения заказа ---------- */

.account-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 0; padding: 0; }
.account-progress__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; text-align: center; }
.account-progress__step::before { content: ''; position: absolute; top: 19px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 3px; border-radius: 3px; background: var(--acc-line); }
.account-progress__step:first-child::before { display: none; }
.account-progress__step.is-done::before,
.account-progress__step.is-current::before { background: var(--acc-green); }
.account-progress__dot { position: relative; z-index: 1; width: 40px; height: 40px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--acc-line); background: #fff; color: #b0b0b0; font-size: 0.95rem; }
.account-progress__step.is-done .account-progress__dot { border-color: var(--acc-green); background: var(--acc-green); color: #fff; }
.account-progress__step.is-current .account-progress__dot { border-color: var(--acc-green); color: var(--acc-green); box-shadow: 0 0 0 6px rgb(85 135 28 / 13%); }
.account-progress__label { font-weight: 700; font-size: 0.9rem; color: var(--acc-ink); line-height: 1.3; }
.account-progress__step:not(.is-done):not(.is-current) .account-progress__label { color: var(--acc-muted); font-weight: 600; }
.account-progress__note { font-size: 0.78rem; color: var(--acc-muted); }
/* Текущий шаг ещё не выполнен: линия к нему и обводка круга - пунктиром, подпись "ausstehend" - как бейдж "Zahlung ausstehend" */
.account-progress__step.is-current::before { background: repeating-linear-gradient(90deg, var(--acc-green) 0 7px, transparent 7px 12px); }
.account-progress__step.is-current .account-progress__dot { border-style: dashed; }
.account-progress__note--pending { color: #a1530a; font-weight: 600; }

/* ---------- Плитки с числом заказов - они же фильтр списка (Meine Bestellungen) ---------- */

/* scroll-margin - чтобы при переходе по #bestellungen плитки не уходили под фиксированную шапку */
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; scroll-margin-top: 96px; }
.account-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border-radius: var(--acc-radius); box-shadow: var(--acc-shadow); color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
a.account-stat:hover { transform: translateY(-2px); box-shadow: var(--acc-shadow-hover); color: inherit; text-decoration: none; }
.account-stat.is-active { box-shadow: 0 0 0 2px var(--acc-green) inset, var(--acc-shadow); }
a.account-stat.is-active:hover { box-shadow: 0 0 0 2px var(--acc-green) inset, var(--acc-shadow-hover); }
.account-stat__icon { grid-row: span 2; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--acc-green-soft); color: var(--acc-green); font-size: 1.1rem; }
.account-stat__value { font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--acc-ink); }
.account-stat__label { font-size: 0.82rem; color: var(--acc-muted); }
.account-stat.is-active .account-stat__icon { background: var(--acc-green); color: #fff; }

/* Четыре плитки в ряд узкие: значок - над числом, а не слева, иначе не помещается "Abgeschlossen" */
@media (max-width: 1319.98px) {
	.account-stat { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 16px; }
	.account-stat__icon { grid-row: auto; margin-bottom: 8px; }
}

/* ---------- Список заказов ---------- */

.account-orders { display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
/* Колонки фиксированной ширины - чтобы статусы и суммы стояли ровно друг под другом во всех строках.
   Миниатюры - 192px: до 4 картинок по 48px с нахлёстом 12px и счётчик "+N" ($thumbsLimit в order/_card.php) */
.account-order { display: grid; grid-template-columns: minmax(0, 1fr) 192px 160px 96px 12px; align-items: center; gap: 18px; padding: 16px 18px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--acc-line) inset; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.account-order:hover { box-shadow: 0 0 0 1px var(--acc-green-line) inset, var(--acc-shadow-hover); transform: translateY(-1px); color: inherit; text-decoration: none; }
.account-order__main { min-width: 0; }
.account-order__title { display: block; font-weight: 700; color: var(--acc-ink); }
/* Номер заказа: в узком списке - короткая подпись "Nr. ..." вместо "Bestellung Nr. ...", у всех карточек одинаково.
   По ширине списка, а не экрана: список - в карточке, он уже экрана. От 300px полная подпись помещается
   рядом с самой длинной суммой (пятизначной) */
.account-order__title-short { display: none; }
@container (max-width: 299.98px) {
	.account-order__title-full { display: none; }
	.account-order__title-short { display: inline; }
}
.account-order__meta { font-size: 0.85rem; color: var(--acc-muted); }
/* Миниатюры и статус: на широком экране - отдельные колонки сетки карточки, на телефоне - общая строка под номером */
.account-order__foot { display: contents; }
.account-order__thumbs { display: flex; }
.account-order__thumbs .account-thumb + .account-thumb { margin-left: -12px; }
.account-order__status { justify-self: start; }
.account-order__total { font-weight: 700; color: var(--acc-ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-order__chevron { color: #b8b8b8; font-size: 0.8rem; }

.account-thumb { width: 48px; height: 48px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; border: 2px solid #fff; background: var(--acc-bg); box-shadow: 0 0 0 1px var(--acc-line); color: #b5b5b5; }
.account-thumb img { width: 100%; height: 100%; object-fit: cover; }
.account-thumb--more { font-size: 0.78rem; font-weight: 700; color: var(--acc-muted); }

.account-pager { margin-top: 24px; }
/* Одна страница: LinkPager (hideOnSinglePage) оставляет пустую обёртку - без неё внизу карточки лишний отступ */
.account-pager:empty { display: none; }
.account-pager .pagination { justify-content: center; gap: 6px; margin: 0; }
.account-pager .page-link { min-width: 40px; text-align: center; border: 0; border-radius: 10px !important; background: #fff; box-shadow: 0 0 0 1px var(--acc-line) inset; color: var(--acc-text); font-weight: 600; }
.account-pager .page-item.active .page-link { background: var(--acc-ink); box-shadow: none; color: #fff; }
.account-pager .page-item.disabled .page-link { background: transparent; }

.account-empty { padding: 24px 12px; text-align: center; }
.account-empty__icon { width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--acc-green-soft); color: var(--acc-green); font-size: 1.8rem; }
.account-empty__title { margin-bottom: 6px; font-size: 1.1rem; font-weight: 700; color: var(--acc-ink); }
.account-empty__text { max-width: 440px; margin: 0 auto 20px; font-size: 0.9rem; color: var(--acc-muted); overflow-wrap: anywhere; }

/* ---------- Заказ ---------- */

.account-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; align-items: start; }
.account-columns__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; align-items: start; }

@media (min-width: 1320px) {
	.account-columns { grid-template-columns: minmax(0, 1fr) 340px; }
	.account-columns__side { grid-template-columns: minmax(0, 1fr); }
}

.account-items { list-style: none; margin: 0; padding: 0; }
.account-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto minmax(90px, auto); grid-template-areas: "img body qty sum"; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--acc-line); }
.account-item:first-child { border-top: 0; padding-top: 0; }
.account-item:last-child { padding-bottom: 0; }
.account-item > .account-thumb { grid-area: img; width: 64px; height: 64px; border-radius: 12px; border: 0; align-self: start; }
.account-item__body { grid-area: body; min-width: 0; }
.account-item__title { display: block; font-weight: 700; color: var(--acc-ink); line-height: 1.35; }
a.account-item__title:hover { color: var(--acc-green); text-decoration: none; }
.account-item__meta { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--acc-muted); }
.account-item__qty { grid-area: qty; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.account-item__sum { grid-area: sum; font-weight: 700; color: var(--acc-ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-item__kit { list-style: none; margin: 10px 0 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; border-radius: 10px; background: var(--acc-bg); font-size: 0.82rem; }
.account-item__kit li { display: flex; justify-content: space-between; gap: 12px; }
.account-item__kit-qty { color: var(--acc-muted); white-space: nowrap; }
.account-items--canceled .account-item__body,
.account-items--canceled .account-item__qty,
.account-items--canceled > .account-item > .account-thumb { opacity: 0.6; }

.account-details { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--acc-line); }
.account-details > summary { margin-bottom: 0; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--acc-muted); }
.account-details[open] > summary { margin-bottom: 16px; }

.account-note { margin: 0; white-space: normal; }

/* Итог заказа под товарами, справа - как в счёте */
.account-totals { display: flex; justify-content: flex-end; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--acc-line); }
.account-totals .account-summary { width: 100%; max-width: 340px; }
.account-summary { margin: 0; }
.account-summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 0.92rem; }
.account-summary__row dt { font-weight: 400; }
.account-summary__row dd { margin: 0; font-weight: 600; color: var(--acc-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-summary__row--total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--acc-line); }
.account-summary__row--total:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.account-summary__row--total dt { font-weight: 700; color: var(--acc-ink); }
.account-summary__row--total dd { font-size: 1.2rem; font-weight: 700; }
.account-summary__row--muted dt,
.account-summary__row--muted dd { color: var(--acc-muted); font-size: 0.85rem; font-weight: 400; }

.account-dl { margin: 0; }
.account-dl dt { margin-top: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc-muted); }
.account-dl dt:first-child { margin-top: 0; }
.account-dl dd { margin: 2px 0 0; color: var(--acc-ink); }
.account-dl dd i { color: var(--acc-green); }

.account-address { display: flex; flex-direction: column; margin: 0; font-style: normal; line-height: 1.5; }
.account-address i { color: var(--acc-muted); }
.account-address__extra { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--acc-muted); }

.account-tracking { list-style: none; margin: 0; padding: 0; }
.account-tracking a { font-weight: 600; color: var(--acc-green); }
.account-paid { font-weight: 600; color: var(--acc-green-dark); }

.account-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.account-doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; box-shadow: 0 0 0 1px var(--acc-line) inset; color: var(--acc-ink); font-weight: 600; transition: background-color 0.15s, box-shadow 0.15s; }
.account-doc span { flex: 1; }
.account-doc .fa-file-pdf { color: #c8432d; font-size: 1.2rem; }
.account-doc .fa-download { color: var(--acc-muted); }
.account-doc:hover { background: var(--acc-green-soft); box-shadow: 0 0 0 1px var(--acc-green-line) inset; color: var(--acc-ink); text-decoration: none; }

.account-bank { padding: 14px 16px; margin-top: 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #f0dcb0 inset; font-variant-numeric: tabular-nums; line-height: 1.6; }

/* ---------- Контакты и данные ---------- */

.account-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-top: 14px; }
.account-contact { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--acc-bg); color: var(--acc-ink); font-weight: 600; overflow-wrap: anywhere; }
.account-contact i { color: var(--acc-green); }
.account-contact:hover { background: var(--acc-green-soft); color: var(--acc-ink); text-decoration: none; }

.account-readonly { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 12px; background: var(--acc-bg); color: var(--acc-ink); font-weight: 600; overflow-wrap: anywhere; }
.account-readonly > i { color: var(--acc-green); }

/* ---------- Формы ---------- */

.account-form label,
.auth-form label { font-size: 0.85rem; font-weight: 600; color: var(--acc-ink); margin-bottom: 6px; }
.account-form .form-control,
.account-form .custom-select,
.auth-form .form-control { height: calc(1.5em + 1.2rem + 2px); padding: 0.6rem 0.85rem; border-radius: 10px; border-color: #dcdcd6; transition: border-color 0.15s, box-shadow 0.15s; }
.account-form select.form-control { padding-right: 2rem; }
.account-form .form-control:focus,
.auth-form .form-control:focus { border-color: var(--acc-green); box-shadow: 0 0 0 4px rgb(85 135 28 / 15%); }
.account-form .form-group,
.auth-form .form-group { margin-bottom: 1rem; }
/* Поле пароля с глазком (PasswordInput): кнопка - внутри поля справа. Значок ошибки Bootstrap ушёл бы под кнопку -
   у пароля его нет, остаются рамка и текст. Текст ошибки - и при обёртке (правило Bootstrap ищет его рядом с полем) */
.auth-password { position: relative; }
.account-form .auth-password .form-control,
.auth-form .auth-password .form-control { padding-right: 46px; background-image: none; }
/* У неверного поля Bootstrap ставит отступ под свой значок с !important */
.auth-password .form-control.is-invalid { padding-right: 46px !important; }
.auth-password input::-ms-reveal { display: none; }
.auth-password__toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0 10px 10px 0; background: none; color: var(--acc-muted); cursor: pointer; }
.auth-password__toggle:hover,
.auth-password__toggle:focus-visible { color: var(--acc-ink); }
.auth-password:has(> .is-invalid) ~ .invalid-feedback { display: block; }
.account-form .account-card .form-row { margin-bottom: -1.1rem; }
.account-form__actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- Вход и регистрация ---------- */

/* Карточка - по центру свободного места между шапкой и подвалом (на высоком экране); нижний отступ больше верхнего -
   чуть выше середины */
.auth { display: flex; flex-direction: column; justify-content: center; background: var(--acc-bg); padding: 16px 0 56px; flex-grow: 1; }
.auth__alert { max-width: 980px; margin: 0 auto; }
.auth-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--acc-shadow); }
.auth-card--narrow { max-width: 480px; grid-template-columns: minmax(0, 1fr); }
.auth-card__form { padding: 34px 44px; }
.auth-card__aside { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 34px 44px; color: #fff; background: url(/img/hero_bg_3.webp) center / cover; }
/* Текст - по центру картинки: затемнение гуще посередине, сверху и снизу видно фото */
.auth-card__aside::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 32 8 / 55%) 0%, rgb(20 32 8 / 82%) 30%, rgb(20 32 8 / 82%) 70%, rgb(20 32 8 / 55%) 100%); }
.auth-card__aside > * { position: relative; }
.auth-card__aside-title { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: #fff; }
.auth-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.auth-benefits i { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgb(255 255 255 / 16%); color: #c9eaa0; }
.auth-benefits b { display: block; }
.auth-benefits span { font-size: 0.88rem; color: rgb(255 255 255 / 80%); }

.auth-card__icon { width: 52px; height: 52px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--acc-green-soft); color: var(--acc-green); font-size: 1.3rem; }
.auth-card__title { margin: 0 0 6px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; color: var(--acc-ink); }
.auth-card__sub { margin: 0 0 20px; color: var(--acc-muted); }
/* Вход "сначала email", шаг 2: адрес с шага 1 и ссылка "ändern" */
.auth-email { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--acc-bg); color: var(--acc-ink); }
.auth-email i { color: var(--acc-muted); }
.auth-email__value { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-email a { flex-shrink: 0; font-size: 0.88rem; font-weight: 600; color: var(--acc-green); }

.auth-form .error-summary { display: none; }
.auth-form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 1.1rem; }
.auth-form__row .form-group { margin-bottom: 0; }
.auth-form__row a,
.auth-links a { color: var(--acc-green); font-weight: 600; }
.auth-form__row a { font-size: 0.9rem; }
/* Галочка - вровень со ссылкой "Passwort vergessen?" рядом: без отступа и размера общих подписей полей,
   шрифт как у ссылки, без минимальной высоты Bootstrap (24px), из-за которой подпись прижималась к верху */
.auth-form .custom-control-label { margin-bottom: 0; font-size: inherit; font-weight: 400; color: var(--acc-text); }
.auth-form__row .custom-control { min-height: 0; font-size: 0.9rem; }
.auth-form .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--acc-green); background-color: var(--acc-green); }
.auth-form .account-btn { padding-block: 0.85rem; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 16px 0 12px; font-size: 0.82rem; color: var(--acc-muted); }
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--acc-line); }

.auth-oauth { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.auth-oauth__btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0.75rem 1rem; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #dcdcd6 inset; color: var(--acc-ink); font-weight: 600; transition: background-color 0.15s; }
.auth-oauth__btn:hover { background: var(--acc-bg); color: var(--acc-ink); text-decoration: none; }
.auth-oauth__btn img { width: 20px; height: 20px; }

.auth-links { margin: 16px 0 0; font-size: 0.92rem; color: var(--acc-muted); text-align: center; }
/* Редкая ссылка (повторная отправка активации) - тише основной */
.auth-links .auth-links__minor a { font-size: 0.85rem; font-weight: 400; color: var(--acc-muted); }
.auth-links p { margin: 0 0 6px; }

/* ---------- Планшет и телефон ---------- */

@media (max-width: 991.98px) {
	.account { padding-top: 4px; }
	.account__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.account__aside { position: static; margin-inline: -15px; }
	.account-nav { padding: 0 15px; border-radius: 0; background: transparent; box-shadow: none; }
	.account-nav__user { display: none; }
	.account-nav__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.account-nav__list::-webkit-scrollbar { display: none; }
	/* Затухание у края, за которым есть ещё пункты (классы ставит скрипт в account-menu.php) */
	.account-nav__list.has-more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
	.account-nav__list.has-more-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
	.account-nav__list.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
	.account-nav__list > li { flex-shrink: 0; }
	.account-nav__link { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--acc-line) inset; white-space: nowrap; font-size: 0.9rem; }
	.account-nav__link.is-active { box-shadow: none; }
	.account-nav__logout { margin: 0; padding: 0; border: 0; }

	.auth-card { grid-template-columns: minmax(0, 1fr); }
	.auth-card__aside { display: none; }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
	.account-order { grid-template-columns: minmax(0, 1fr) 160px 96px 12px; }
	.account-order__thumbs { display: none; }
}

@media (max-width: 767.98px) {
	/* Статус - в одной строке с миниатюрами, а не в колонке суммы: иначе длинный статус сужал бы колонку с номером заказа */
	.account-order { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main total" "foot foot"; gap: 12px; }
	.account-order__foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
	.account-order__main { grid-area: main; }
	.account-order__total { grid-area: total; }
	/* Миниатюры, которые не помещаются рядом со статусом, переносятся во вторую строку и скрываются - число товаров есть в строке под номером.
	   padding 1px - чтобы не обрезалась рамка-тень миниатюр */
	.account-order__thumbs { min-width: 0; flex-wrap: wrap; height: 50px; padding: 1px; overflow: hidden; }
	.account-order__status { flex-shrink: 0; }
	.account-order__chevron { display: none; }
}

@media (max-width: 575.98px) {
	.account-card { padding: 18px; margin-bottom: 16px; border-radius: 14px; }
	.account-head { margin-bottom: 18px; }
	.account-head__actions { width: 100%; }
	.account-head__actions .account-btn { flex: 1; }

	.account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
	.account-stat { grid-template-columns: minmax(0, 1fr); padding: 14px; row-gap: 2px; }
	.account-stat__icon { grid-row: auto; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 10px; font-size: 0.95rem; }
	.account-stat__value { font-size: 1.25rem; }
	.account-stat__label { font-size: 0.76rem; }

	.account-progress { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.account-progress__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 0; text-align: left; }
	.account-progress__step::before { top: -18px; left: 18.5px; right: auto; width: 3px; height: 18px; }
	.account-progress__step.is-current::before { background: repeating-linear-gradient(180deg, var(--acc-green) 0 4px, transparent 4px 7px); }
	.account-progress__dot { grid-row: span 2; margin: 0; }
	.account-progress__label { align-self: end; }
	.account-progress__note { align-self: start; }
	.account-progress__step:not(:has(.account-progress__note)) .account-progress__label { grid-row: span 2; align-self: center; }

	.account-item { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img body body" "img qty sum"; gap: 6px 14px; }
	.account-item > .account-thumb { width: 56px; height: 56px; }
	.account-item__qty { color: var(--acc-muted); font-weight: 400; }

	.account-order { padding: 14px; gap: 10px 12px; }
	.account-card .account-order { margin-inline: -6px; }
	.account-order__title,
	.account-order__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.account-order__title { font-size: 0.95rem; }

	.account-form__actions .account-btn { width: 100%; }

	.auth { padding: 20px 0 48px; }
	.auth-card { border-radius: 16px; }
	.auth-card__form { padding: 28px 22px; }
	.auth-card__title { font-size: 1.5rem; }
}
