﻿/* ────────────────────────────────────────────────────────────
   Stickers KZ — My Account page (orders list + sidebar).
   Scope: страницы /account/* (logged-in user).
   Design system: Bounded (display), Golos Text (body), 16px radius,
   #FF3600 accent, #F5F5F5 card grey.
   ──────────────────────────────────────────────────────────── */

/* ─── Двухколоночный layout: сайдбар + контент ───────────────
   После удаления YITH дефолтные WC-стили (float: left 30%) не подходят.
   Делаем flexbox на ближайшем общем родителе — обёртке `.woocommerce`
   (WC оборачивает контент в неё на странице /account/). Скоупим жёстко
   к body.woocommerce-account, чтобы не задеть другие WC-страницы. */
body.woocommerce-account .woocommerce {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}
body.woocommerce-account .woocommerce > .ss-acc-sidebar {
	flex: 0 0 280px;
}
/* Контентная колонка: flex:1 + min-width:0 чтобы внутренние горизонтальные
   скроллеры (карусель статусов) не «разрывали» layout и сайдбар оставался
   слева, а не уезжал наверх. */
body.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
	flex: 1 1 0;
	min-width: 0;
}
body.woocommerce-account .woocommerce > .woocommerce-MyAccount-content > h2:first-child { display: none; }

/* ─── Тип/цвета ──────────────────────────────────────────── */
.ss-acc-sidebar, .ss-acc-page, .ss-acc-order, .ss-acc-popover, .ss-acc-btn,
.ss-acc-pagination, .ss-acc-title, .ss-acc-section-head, .ss-acc-empty {
	font-family: "Golos Text", system-ui, -apple-system, sans-serif;
	color: #262626;
	box-sizing: border-box;
}

/* ─── Сайдбар (десктоп; на мобилках скрыт — см. media-query внизу) ─── */
.ss-acc-sidebar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 280px;
}

.ss-acc-sidebar__profile {
	background: #F5F5F5;
	border-radius: 18px;
	padding: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.ss-acc-sidebar__avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
}
.ss-acc-sidebar__avatar img {
	width: 100%; height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 50%;
}
.ss-acc-sidebar__profile-text { min-width: 0; }
.ss-acc-sidebar__name {
	font-weight: 600; font-size: 14px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-acc-sidebar__email {
	font-size: 12px; color: #8B8B8B; margin-top: 2px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Навигация */
.ss-acc-sidebar__nav {
	background: #F5F5F5;
	border-radius: 18px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ss-acc-sidebar__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	font-family: "Golos Text", system-ui, sans-serif;
	font-weight: 400; font-size: 14px;
	color: #262626;
	text-decoration: none;
	transition: background .12s ease;
}
.ss-acc-sidebar__link:hover { background: rgba(255,255,255,.5); color: #262626; }
.ss-acc-sidebar__link.is-active { background: #fff; color: #262626; }
.ss-acc-sidebar__link-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* Значение баллов справа использует общесайтовый класс .sticker-points
   (оранжевая пилюля с белой цифрой + иконка) — стили в style.css темы. */
.ss-acc-sidebar__link .sticker-points {
	flex-shrink: 0;
}

/* ─── Заголовок страницы ─── */
.ss-acc-title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 30px;
	letter-spacing: -0.01em;
	margin: 0 0 24px;
	color: #262626;
}

.ss-acc-section-head {
	font-size: 14px;
	color: rgb(163, 163, 163);
	margin: 8px 4px 14px;
}
.ss-acc-section-head--spaced { margin-top: 32px; }

.ss-acc-empty { padding: 24px; }

/* ─── Список заказов: один <a> на строку ─── */
.ss-acc-orders {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ss-acc-order {
	display: grid;
	grid-template-columns: 360px 1px 1fr;
	align-items: stretch;
	gap: 28px;
	background: #F5F5F5;
	border-radius: 20px;
	padding: 28px 32px;
	text-decoration: none;
	color: inherit;
	transition: background .12s ease;
}
.ss-acc-order:hover { background: #F0F0F0; color: inherit; }

.ss-acc-order__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ss-acc-order__head {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	color: #262626;
}
.ss-acc-order--done .ss-acc-order__head { color: #5C5C5C; }
.ss-acc-order__title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	color: inherit;
}
.ss-acc-order__chev {
	flex-shrink: 0;
	color: #262626;
	margin-left: 2px;
}
.ss-acc-order__meta {
	font-size: 13px; color: #8B8B8B;
	margin-top: 8px;
}
.ss-acc-order__sentence {
	font-size: 14px; color: #262626;
	font-weight: 600;
	margin-top: 10px;
}
.ss-acc-order__actions {
	margin-top: auto;
	padding-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ss-acc-order__divider {
	width: 1px;
	margin: 4px 0;
	background: rgb(218, 218, 218);
}
.ss-acc-order__thumbs {
	align-self: center;
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Миниатюры макетов */
.ss-acc-thumb {
	width: 112px; height: 112px;
	border-radius: 16px;
	overflow: hidden;
	display: block;
	background: rgb(218, 218, 218);
	flex-shrink: 0;
	position: relative;
}
/* Картинка позиционируется через absolute, чтобы можно было анимировать
   её box (width/height) при hover — рамка остаётся, картинка «отзумивается»
   до своего нативного aspect-ratio. См. JS: вычисление hoverW/hoverH. */
.ss-acc-thumb img {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 100%; height: 100%;
	object-fit: cover;
	transition: width 320ms cubic-bezier(.22,.61,.36,1),
	            height 320ms cubic-bezier(.22,.61,.36,1);
	will-change: width, height;
}
.ss-acc-thumb--more {
	display: grid; place-items: center;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 24px;
	color: #262626;
	letter-spacing: -0.01em;
}
.ss-acc-thumb--empty { background: rgb(238,238,238); }

/* ─── Кнопки в карточке ─── */
.ss-acc-btn {
	display: inline-flex;
	align-items: center; justify-content: center;
	gap: 6px;
	border: 1px solid rgb(218, 218, 218);
	border-radius: 10px;
	padding: 9px 14px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 13px; line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .12s ease, transform .12s ease;
	text-decoration: none;
}
.ss-acc-btn:hover { opacity: .85; }
.ss-acc-btn:active { transform: translateY(1px); }
.ss-acc-btn--accent { background: #FF3600; color: #fff; }
.ss-acc-btn--dark   { background: #262626; color: #fff; }
.ss-acc-btn--white  { background: #fff;    color: #262626; }

/* ─── Hover-попап (прогресс + тёмный тултип) ─── */
.ss-acc-popover {
	position: absolute;
	top: calc(100% + 12px); left: -18px;
	z-index: 50;
	width: 340px;
	opacity: 0; visibility: hidden;
	pointer-events: none;
	transition: opacity .14s ease, visibility .14s ease;
}
.ss-acc-popover.is-open { opacity: 1; visibility: visible; }
.ss-acc-popover__arrow {
	position: absolute;
	top: -6px; left: 36px;
	width: 12px; height: 12px;
	transform: rotate(45deg);
	z-index: 0;
}
.ss-acc-popover__inner {
	position: relative; z-index: 1;
	padding: 20px 22px;
	border-radius: 18px;
}

/* Светлый (прогресс) */
.ss-acc-popover--progress .ss-acc-popover__inner {
	background: #fff;
	box-shadow: 0 18px 44px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
}
.ss-acc-popover--progress .ss-acc-popover__arrow {
	background: #fff;
	box-shadow: -1px -1px 1px rgba(0,0,0,0.04);
}
.ss-acc-popover__row {
	display: flex;
	gap: 14px;
	position: relative;
	padding-bottom: 16px;
}
.ss-acc-popover__row.is-last { padding-bottom: 0; }
.ss-acc-popover__bullet {
	position: relative;
	width: 20px; height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
	display: grid; place-items: center;
	z-index: 1;
}
.ss-acc-popover--progress .is-done    .ss-acc-popover__bullet { background: #262626; }
.ss-acc-popover--progress .is-current .ss-acc-popover__bullet { background: #095EF7; box-shadow: 0 0 0 4px rgba(9,94,247,0.20); }
.ss-acc-popover--progress .is-pending .ss-acc-popover__bullet { background: #fff; border: 2px solid #E5E5E5; }
.ss-acc-popover__dot-inner {
	width: 5px; height: 5px;
	border-radius: 999px;
	background: #fff;
}
.ss-acc-popover__line {
	position: absolute;
	left: 10px; top: 22px; bottom: -14px;
	width: 2px;
	transform: translateX(-50%);
}
.ss-acc-popover--progress .is-done .ss-acc-popover__line { background: #262626; }
.ss-acc-popover--progress .ss-acc-popover__line { background: #EFEFEF; }
.ss-acc-popover__text {
	flex: 1; min-width: 0;
	padding-top: 1px;
}
.ss-acc-popover__label {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 14px;
	color: #262626; line-height: 1.2;
}
.ss-acc-popover--progress .is-pending .ss-acc-popover__label { color: #A3A3A3; }
.ss-acc-popover__desc {
	font-size: 13px; margin-top: 4px; line-height: 1.4; color: #8B8B8B;
}
.ss-acc-popover--progress .is-current .ss-acc-popover__desc { color: #5C5C5C; }
.ss-acc-popover--progress .is-pending .ss-acc-popover__desc { color: #A3A3A3; }
.ss-acc-popover__now {
	background: #095EF7; color: #fff;
	border-radius: 999px;
	padding: 2px 8px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 10px;
	letter-spacing: 0.06em; text-transform: uppercase;
	line-height: 1.3;
}

/* ─── Пагинация ─── */
.ss-acc-pagination {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 16px;
	margin-top: 28px;
	padding: 20px 4px 0;
	border-top: 1px solid #EFEFEF;
}
.ss-acc-pagination__info {
	font-size: 13px; color: #8B8B8B;
}
.ss-acc-pagination__info b {
	color: #262626;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500;
}
.ss-acc-pagination__nav {
	display: inline-flex; align-items: center; gap: 4px;
}
.ss-acc-page {
	min-width: 38px; height: 38px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center; justify-content: center;
	border-radius: 12px;
	background: transparent;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 14px;
	color: #262626;
	text-decoration: none;
	transition: background .12s ease, color .12s ease;
}
.ss-acc-page:hover { background: #F5F5F5; color: #262626; }
.ss-acc-page.is-active {
	background: #262626; color: #fff; font-weight: 600;
}
.ss-acc-page--arrow {
	width: 38px; background: #F5F5F5;
}
.ss-acc-page--arrow:hover { background: #262626; color: #fff; }
.ss-acc-page--arrow.is-disabled {
	background: transparent;
	color: #C7C7C7;
	pointer-events: none;
}
.ss-acc-page--ellipsis { color: #8B8B8B; }

/* ════════════════════════════════════════════════════════════
   VIEW-ORDER: страница одного заказа.
   Сетка: левая колонка (header + status+items), правая колонка
   (sticky summary + service-links + cancel).
   ════════════════════════════════════════════════════════════ */

/* На странице одного заказа левое меню аккаунта скрыто — всё
   доступное пространство отдаём контенту, чтобы шапка/состав/сводка
   гарантированно влезли в одну ширину. */
body.woocommerce-view-order .ss-acc-sidebar { display: none; }

.ss-vo {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 16px;
	align-items: start;
}

.ss-vo-card {
	background: #F5F5F5;
	border-radius: 16px;
	padding: 28px 32px;
}

/* ── Header card ── */
.ss-vo-header { grid-column: 1; grid-row: 1; }
.ss-vo-back {
	display: inline-flex; align-items: center; gap: 8px;
	color: #5C5C5C; font-size: 14px;
	text-decoration: none;
	margin-bottom: 14px;
}
.ss-vo-back:hover { color: #262626; }
.ss-vo-title {
	margin: 0;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 26px;
	line-height: 1.1; letter-spacing: -0.01em;
	color: #262626;
}
.ss-vo-date {
	font-size: 13px; color: #8B8B8B;
	margin-top: 8px;
}
.ss-vo-rows {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
}
.ss-vo-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #E5E5E5;
}
.ss-vo-row:last-child { border-bottom: 0; }
.ss-vo-bubble {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: #EBEBEB;
	display: grid; place-items: center;
	flex-shrink: 0;
}
.ss-vo-row__text { flex: 1; min-width: 0; }
.ss-vo-row__label {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 15px;
	color: #262626;
}
.ss-vo-row__mute {
	font-size: 14px;
	color: #8B8B8B;
	margin-top: 4px;
	line-height: 1.4;
}

.ss-vo-ghost {
	background: #fff;
	color: #262626;
	border: 1px solid #DADADA;
	padding: 7px 13px;
	border-radius: 10px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 13px;
	white-space: nowrap;
	text-decoration: none;
	transition: opacity .12s ease;
}
.ss-vo-ghost:hover { opacity: .85; color: #262626; }

/* ── Status + items card ── */
.ss-vo-status { grid-column: 1; grid-row: 2; }

.ss-vo-status__head {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ss-vo-status__title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 26px;
	letter-spacing: -0.01em;
	color: #262626;
	line-height: 1.15;
}
.ss-vo-status__eta {
	margin-top: 12px;
	display: flex; align-items: baseline; gap: 8px;
	font-size: 15px; color: #262626;
}
.ss-vo-status__eta-label { font-weight: 600; }

.ss-vo-status__subhead {
	margin-top: 28px;
	font-size: 13px;
	color: #8B8B8B;
}
.ss-vo-items {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
}

/* Одна позиция */
.ss-vo-item {
	display: grid;
	grid-template-columns: 84px 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 16px 0;
	border-bottom: 1px solid #E5E5E5;
}
.ss-vo-item.is-last { border-bottom: 0; }
.ss-vo-item__thumb {
	position: relative;
	width: 84px; height: 84px;
	border-radius: 12px;
	overflow: hidden;
	/* Серый фон — становится виден при hover-зуме (картинка сжимается,
	   рамка остаётся). Тот же цвет, что у placeholder'а (StickerThumb из дизайна). */
	background: rgb(218, 218, 218);
	flex-shrink: 0;
}
/* Картинка позиционируется через absolute, чтобы JS мог анимировать
   её box (width/height) при hover — рамка остаётся, картинка «отзумивается»
   до своего нативного aspect-ratio. См. account.js. */
.ss-vo-item__thumb img {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 100%; height: 100%;
	object-fit: cover;
	transition: width 320ms cubic-bezier(.22,.61,.36,1),
	            height 320ms cubic-bezier(.22,.61,.36,1);
	will-change: width, height;
}
/* Заглушка превью: серый квадрат с иконкой картинки. */
.ss-vo-item__thumb.is-empty {
	background: rgb(218, 218, 218);
	display: grid;
	place-items: center;
}
.ss-vo-item__thumb.is-empty .ss-thumb-placeholder {
	width: 28px; height: 28px;
}

/* То же для миниатюр в списке заказов. */
.ss-acc-thumb--placeholder {
	display: grid;
	place-items: center;
	background: rgb(218, 218, 218);
}
.ss-acc-thumb--placeholder .ss-thumb-placeholder {
	width: 32px; height: 32px;
}
.ss-vo-item__body { min-width: 0; }
.ss-vo-item__name-row {
	display: flex; align-items: baseline;
	gap: 10px; flex-wrap: wrap;
}
.ss-vo-item__name {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 16px;
	color: #262626; line-height: 1.15;
}
.ss-vo-item__qty {
	font-size: 13px;
	color: #8B8B8B;
}
.ss-vo-item__chips {
	margin-top: 10px;
	display: flex; flex-wrap: wrap; gap: 6px;
}

.ss-vo-chip {
	background: #fff;
	color: #262626;
	padding: 4px 9px;
	border-radius: 8px;
	font-family: "Golos Text", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ss-vo-chip--maket {
	background: #095EF7;
	color: #fff;
}

.ss-vo-item__repeat {
	display: inline-flex;
	align-items: center; justify-content: center;
	background: #262626;
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 9px 14px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 13px; line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity .12s ease;
}
.ss-vo-item__repeat:hover,
.ss-vo-item__repeat:focus { opacity: .85; color: #fff; text-decoration: none; }

/* ── Summary column (sticky на десктопе) ── */
.ss-vo-summary {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: sticky;
	top: 24px;
}
.ss-vo-summary__totals {
	padding: 24px 24px 22px;
}
.ss-vo-summary__heading {
	margin: 0 0 16px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 18px;
	color: #262626;
}
.ss-vo-line {
	display: flex; justify-content: space-between;
	align-items: baseline;
	font-family: "Golos Text", system-ui, sans-serif;
	font-weight: 400;
	font-size: 14px; line-height: 1.9;
	color: #262626;
}
.ss-vo-line__v {
	font-family: "Golos Text", system-ui, sans-serif;
	font-weight: 400;
}
.ss-vo-divider {
	height: 1px; background: #E5E5E5;
	margin: 14px 0;
}
.ss-vo-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.ss-vo-total__label {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 18px;
	color: #262626;
}
.ss-vo-total__value {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 22px;
	color: #262626;
}
.ss-vo-paymeth {
	font-size: 13px; color: #8B8B8B;
	margin-top: 4px;
}

/* Кнопки CTA в правой колонке */
.ss-vo-btn {
	display: block;
	text-align: center;
	width: 100%;
	padding: 14px 18px;
	border-radius: 16px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 18px;
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: opacity .12s ease;
	box-sizing: border-box;
}
.ss-vo-btn:hover { opacity: .85; }
.ss-vo-btn--primary {
	margin-top: 20px;
	background: #262626; color: #fff;
	border: 0;
}
.ss-vo-btn--primary:hover { color: #fff; }
.ss-vo-btn--secondary {
	margin-top: 10px;
	background: #fff; color: #262626;
	border: 1px solid #DADADA;
	padding: 13px 18px;
}
.ss-vo-btn--secondary:hover { color: #262626; }

/* Service-links (Вопросы / Чеки и документы) */
.ss-vo-services {
	padding: 10px;
}
.ss-vo-service {
	display: flex; align-items: center; gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	background: transparent;
	border: 0;
	color: #262626;
	text-align: left;
	cursor: pointer;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 14px;
	transition: background .12s ease;
}
/* Hover-стили: явно перебиваем глобальный monstroid2 `button:hover`,
   который иначе красит шрифт в белый и меняет фон на оранжевый. */
.ss-vo-service:hover,
.ss-vo-service:focus {
	background: rgba(255,255,255,.5);
	color: #262626;
}
.ss-vo-service[disabled] {
	cursor: not-allowed;
	opacity: .55;
}
.ss-vo-service[disabled]:hover { background: transparent; }
.ss-vo-service__icon {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: #EBEBEB;
	display: grid; place-items: center;
	flex-shrink: 0;
}
.ss-vo-service__label {
	flex: 1; min-width: 0;
}
.ss-vo-service__chev {
	display: inline-flex;
	flex-shrink: 0;
}

/* Cancel button (мягкая деструктивная) */
.ss-vo-cancel {
	display: block;
	text-align: center;
	width: 100%;
	padding: 13px 18px;
	background: #FFEEE6;
	color: #FF3600;
	border: 0;
	border-radius: 16px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 15px;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity .12s ease;
}
.ss-vo-cancel:hover { opacity: .85; color: #FF3600; }

/* ─── Модалка «Вопросы по заказу» ─────────────────────────── */
.ss-vo-modal {
	position: fixed; inset: 0;
	z-index: 9999;
	display: grid; place-items: center;
	padding: 24px;
}
.ss-vo-modal[hidden] { display: none; }
.ss-vo-modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(38, 38, 38, 0.45);
}
.ss-vo-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 24px;
	width: min(620px, 100%);
	max-height: min(86vh, 820px);
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}
.ss-vo-modal__head {
	padding: 28px 32px 18px;
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 16px;
	background: #fff;
}
.ss-vo-modal__title {
	margin: 0;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 26px;
	letter-spacing: -0.01em;
	color: #262626;
	line-height: 1.15;
}
.ss-vo-modal__close {
	width: 36px; height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: #EFEFEF;
	color: #262626;
	display: grid; place-items: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity .12s ease;
}
/* Перебиваем monstroid2 button:hover (цвет/фон). */
.ss-vo-modal__close:hover,
.ss-vo-modal__close:focus {
	opacity: .85;
	background: #EFEFEF;
	color: #262626;
}

.ss-vo-modal__body {
	flex: 1;
	overflow-y: auto;
	/* Справа меньше padding: 4px сам скроллбар + по 2px зазора с каждой
	   стороны = 8px, чтобы суммарный визуальный отступ от края модалки
	   до текста был одинаковым слева и справа. */
	padding: 4px 24px 8px 32px;
	/* Минималистичный скроллбар: 4px, серый ползунок только при hover. */
	scrollbar-width: thin;
	scrollbar-color: rgba(38, 38, 38, 0.15) transparent;
}
.ss-vo-modal__body::-webkit-scrollbar { width: 4px; }
.ss-vo-modal__body::-webkit-scrollbar-track { background: transparent; }
.ss-vo-modal__body::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 2px;
	transition: background .15s ease;
}
.ss-vo-modal__body:hover::-webkit-scrollbar-thumb {
	background: rgba(38, 38, 38, 0.18);
}
.ss-vo-modal__body::-webkit-scrollbar-thumb:hover {
	background: rgba(38, 38, 38, 0.32);
}

.ss-vo-help-section { margin-bottom: 24px; }
.ss-vo-help-section__title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 13px;
	color: #8B8B8B;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 6px 0 6px;
}
.ss-vo-help-section__items {
	background: #F5F5F5;
	border-radius: 16px;
	padding: 4px 18px;
}

.ss-vo-faq { border-bottom: 1px solid #E5E5E5; }
.ss-vo-faq:last-child { border-bottom: 0; }
.ss-vo-faq__q {
	width: 100%;
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px;
	padding: 16px 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: "Golos Text", system-ui, sans-serif;
	font-weight: 500; font-size: 15px;
	color: #262626;
	line-height: 1.4;
}
/* Перебиваем monstroid2 button:hover (цвет/фон). */
.ss-vo-faq__q:hover,
.ss-vo-faq__q:focus {
	background: transparent;
	color: #262626;
}
.ss-vo-faq__chev {
	flex-shrink: 0;
	transition: transform 200ms cubic-bezier(.4, 0, .2, 1);
}
.ss-vo-faq__q[aria-expanded="true"] .ss-vo-faq__chev { transform: rotate(180deg); }
.ss-vo-faq__a {
	padding: 0 0 18px;
	font-family: "Golos Text", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #5C5C5C;
	max-width: 480px;
}
.ss-vo-faq__a[hidden] { display: none; }

.ss-vo-modal__foot {
	padding: 16px 32px 28px;
	border-top: 1px solid #EFEFEF;
	background: #fff;
}
.ss-vo-modal__cta {
	width: 100%;
	padding: 14px 18px;
	background: #262626;
	color: #fff;
	border: 0;
	border-radius: 16px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 16px;
	letter-spacing: -0.01em;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	gap: 10px;
	transition: opacity .12s ease;
}
/* Перебиваем monstroid2 button:hover (фон на оранжевый). */
.ss-vo-modal__cta:hover,
.ss-vo-modal__cta:focus {
	opacity: .85;
	background: #262626;
	color: #fff;
}

/* ─── Документы в модалке «Документы по заказу» ───────────── */
.ss-vo-docs {
	background: #F5F5F5;
	border-radius: 16px;
	padding: 4px 22px;
}
.ss-vo-doc {
	display: flex; align-items: center;
	gap: 14px;
	padding: 18px 0;
	border-bottom: 1px solid #E5E5E5;
	text-decoration: none;
	color: inherit;
	transition: opacity .12s ease;
}
.ss-vo-doc:last-child { border-bottom: 0; }
.ss-vo-doc:hover { opacity: .8; color: inherit; text-decoration: none; }
.ss-vo-doc__text { flex: 1; min-width: 0; }
.ss-vo-doc__title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 15px;
	color: #262626;
	line-height: 1.25;
}
.ss-vo-doc__meta {
	font-family: "Golos Text", system-ui, sans-serif;
	font-size: 13px;
	color: #8B8B8B;
	margin-top: 6px;
}
.ss-vo-doc__badge {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 11px;
	color: #8B8B8B;
	letter-spacing: 0.04em;
	background: #fff;
	padding: 4px 8px;
	border-radius: 6px;
	flex-shrink: 0;
}
.ss-vo-doc__chev { flex-shrink: 0; }

.ss-vo-docs__note {
	font-family: "Golos Text", system-ui, sans-serif;
	font-size: 13px;
	color: #8B8B8B;
	line-height: 1.5;
	padding: 14px 6px 16px;
}

/* Модалка на мобилке */
@media (max-width: 600px) {
	.ss-vo-modal { padding: 0; }
	.ss-vo-modal__dialog {
		width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}
	.ss-vo-modal__head { padding: 20px 18px 14px; }
	.ss-vo-modal__title { font-size: 22px; }
	.ss-vo-modal__body { padding: 4px 10px 8px 18px; }
	.ss-vo-help-section__items { padding: 4px 14px; }
	.ss-vo-modal__foot { padding: 14px 18px 22px; }
}

/* Customer notes fallback (если есть) */
.ss-vo-notes {
	grid-column: 1;
	grid-row: 3;
}
.ss-vo-notes__title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600; font-size: 18px;
	color: #262626;
	margin-bottom: 14px;
}
.ss-vo-notes__list {
	list-style: none;
	padding: 0; margin: 0;
	display: flex; flex-direction: column;
	gap: 12px;
}
.ss-vo-note {
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
}
.ss-vo-note__date {
	font-size: 12px;
	color: #8B8B8B;
	margin-bottom: 6px;
}
.ss-vo-note__text {
	font-size: 14px;
	color: #262626;
	line-height: 1.45;
}
.ss-vo-note__text p { margin: 0; }

/* ────────────────────────────────────────────────────────────
   ADAPTIVE: ≤880px — сайдбар скрыт, карточка в одну колонку,
   кнопки на всю ширину. Мобильное меню — отдельный бургер темы.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
	body.woocommerce-account .woocommerce { display: block; }
	body.woocommerce-account .ss-acc-sidebar { display: none; }

	/* Боковой отступ 20px на мобиле.
	   У monstroid2 .container без padding, а .row имеет margin:-20px, который
	   ровно гасит padding:20px у .col-xs-12 → на полноширинном (мобильном)
	   контейнере контент ЛК прилипает к краям экрана (gutter 0). Обнуляем
	   отрицательный margin ТОЛЬКО у внешней grid-строки страницы, чтобы
	   существующий padding:20px колонки стал реальным боковым отступом.
	   Вложенных .row в контенте ЛК нет — поэтому это безопасно. */
	body.woocommerce-account .site-content__wrap > .row {
		margin-left: 0;
		margin-right: 0;
	}

	.ss-acc-title { font-size: 24px; margin-bottom: 18px; }

	.ss-acc-order {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 18px 18px 20px;
		border-radius: 18px;
	}
	.ss-acc-order__divider { display: none; }
	.ss-acc-order__title { font-size: 20px; }

	.ss-acc-order__thumbs {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
		width: 100%;
		padding-top: 16px;
		border-top: 1px solid rgb(218, 218, 218);
	}
	.ss-acc-thumb {
		width: auto;
		height: auto;
		aspect-ratio: 1 / 1;
		border-radius: 14px;
	}
	.ss-acc-thumb--more { font-size: 20px; }

	.ss-acc-order__actions {
		flex-direction: column;
		padding-top: 18px;
	}
	.ss-acc-btn { width: 100%; padding: 12px 14px; }

	/* Hover-попапы на тач-устройствах прячем — для них есть отдельная
	   страница заказа со своим прогресс-баром. */
	.ss-acc-popover { display: none; }

	.ss-acc-pagination__info { font-size: 12px; }

	/* ─── view-order: одна колонка ─── */
	.ss-vo {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.ss-vo-summary {
		grid-column: 1;
		grid-row: 3;
		position: static;
		top: auto;
	}
	.ss-vo-status { grid-row: 2; }
	.ss-vo-notes { grid-row: 4; }

	.ss-vo-card { padding: 20px 18px; border-radius: 16px; }
	.ss-vo-title { font-size: 22px; }
	.ss-vo-status__title { font-size: 20px; }
	.ss-vo-summary__heading { font-size: 16px; }
	.ss-vo-total__label { font-size: 16px; }
	.ss-vo-total__value { font-size: 20px; }

	.ss-vo-item {
		grid-template-columns: 64px 1fr;
		gap: 14px;
		padding: 12px 0;
	}
	.ss-vo-item__thumb {
		width: 64px; height: 64px;
		border-radius: 10px;
	}
	.ss-vo-item__name { font-size: 14px; }
	.ss-vo-item__qty { font-size: 12px; }
	.ss-vo-chip {
		padding: 2px 7px;
		font-size: 11px;
		border-radius: 6px;
	}
	/* Кнопка «Повторить» уезжает под чипы (третья колонка пропала) */
	.ss-vo-item__repeat {
		grid-column: 1 / -1;
		margin-top: 4px;
		justify-self: stretch;
		text-align: center;
	}

	.ss-vo-row {
		flex-wrap: wrap;
	}
	.ss-vo-ghost {
		width: 100%;
		text-align: center;
		margin-left: 56px; /* отступ под bubble + gap */
	}
}

/* ════════════════════════════════════════════════════════════
   SETTINGS PAGE — Настройки аккаунта
   ════════════════════════════════════════════════════════════ */
.ss-set {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.ss-set .ss-acc-title { margin-bottom: 0; }

.ss-set-section-head--with-hint .ss-set-hint {
	color: #8B8B8B;
	margin-left: 6px;
	font-size: 13px;
}

.ss-set-card {
	background: #F5F5F5;
	border-radius: 20px;
	padding: 8px 24px;
}
.ss-set-intro {
	padding: 12px 4px 6px;
	font-size: 13px;
	color: #5C5C5C;
}

/* ─── Row (Профиль + Безопасность) ─── */
.ss-set-row {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 18px 4px;
	border-bottom: 1px solid rgb(218, 218, 218);
}
.ss-set-row.is-last { border-bottom: 0; }
.ss-set-row__label {
	font-size: 14px;
	color: #5C5C5C;
}
.ss-set-row__view {
	min-width: 0;
}
.ss-set-row__value {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 16px;
	color: #262626;
	letter-spacing: -0.005em;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ss-set-pwd-dots { letter-spacing: 1px; }
.ss-set-row__hint {
	font-size: 12px;
	color: #8B8B8B;
	margin-top: 4px;
}
.ss-set-row__hint.is-saved {
	color: #2D7A00;
	display: inline-flex; align-items: center; gap: 4px;
}
.ss-set-row__edit-btn { white-space: nowrap; }

/* Read-only маркер (замочек) — для логина и других неизменяемых полей.
   Полупрозрачная плашка + cursor:not-allowed подсказывают что поле залочено. */
.ss-set-row__lock {
	display: inline-grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid rgb(218, 218, 218);
	color: #8B8B8B;
	opacity: .55;
	cursor: not-allowed;
	box-sizing: border-box;
	flex-shrink: 0;
}
.ss-set-row.is-readonly .ss-set-row__value {
	opacity: .85;
}

/* Edit-mode: input + actions занимают всю ширину, скрывая edit-btn */
.ss-set-row.is-editing { grid-template-columns: 200px 1fr; }
.ss-set-row.is-editing .ss-set-row__view { display: none; }
.ss-set-row.is-editing .ss-set-row__edit-btn { display: none; }

.ss-set-row__edit { min-width: 0; }
/* Ширину инпута inline-редактирования имени/email ограничиваем здесь —
   а не на родителе `.ss-set-row__edit`, иначе зажмутся pwd-форма и пр. */
.ss-set-row__input { max-width: 460px; }
.ss-set-row__err {
	font-size: 12px;
	color: #FF3600;
	margin-top: 6px;
}
.ss-set-row__actions {
	display: flex; gap: 8px;
	margin-top: 12px;
}

/* ─── Input field ─── */
.ss-set-input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgb(218, 218, 218);
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	outline: none;
	background: #fff;
	color: #262626;
	transition: border-color .12s ease;
	box-sizing: border-box;
}
.ss-set-input:focus { border-color: #262626; }
.ss-set-input.has-error { border-color: #FF3600; }

/* ─── Buttons ─── */
.ss-set-btn {
	display: inline-flex;
	align-items: center; justify-content: center;
	gap: 6px;
	border: 1px solid rgb(218, 218, 218);
	border-radius: 10px;
	padding: 10px 16px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 13px; line-height: 1;
	background: #fff;
	color: #262626;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity .12s ease;
}
.ss-set-btn:hover,
.ss-set-btn:focus { opacity: .85; color: #262626; background: #fff; text-decoration: none; }
.ss-set-btn--dark {
	background: #262626; color: #fff; border-color: #262626;
}
.ss-set-btn--dark:hover,
.ss-set-btn--dark:focus { background: #262626; color: #fff; }
.ss-set-btn--danger {
	background: #fff; color: #D90000; border-color: rgb(218, 218, 218);
}
.ss-set-btn--danger:hover,
.ss-set-btn--danger:focus { background: #fff; color: #D90000; }
.ss-set-btn--ghost {
	background: transparent; border-color: transparent;
}
.ss-set-btn[disabled] {
	opacity: .45; cursor: not-allowed;
}

/* ─── Password form ─── */
.ss-set-pwd-form { padding: 6px 0 4px; }
.ss-set-pwd-field {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
	align-items: start;
	margin-bottom: 14px;
}
.ss-set-pwd-field > label {
	font-size: 14px;
	color: #5C5C5C;
	padding-top: 13px;
}
/* Колонка справа: input + шкала силы + подсказка. Тесный gap 6px между
   шкалой и подсказкой, чтобы не отрывались от инпута. */
.ss-set-pwd-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	max-width: 460px;
}
.ss-set-pwd-input { position: relative; max-width: 460px; min-width: 0; }
.ss-set-pwd-input .ss-set-input { padding-right: 44px; }
.ss-set-pwd-col .ss-set-row__hint { margin-top: 0; }
/* Глаз показать/скрыть пароль — те же SVG что и на WC-форме входа/регистрации
   (используются через .show-password-input в stickerstudio.css). Единые иконки
   на всех формах пароля. */
.ss-set-pwd-eye {
	position: absolute;
	right: 12px; top: 50%;
	transform: translateY(-50%);
	width: 28px; height: 20px;
	border-radius: 6px;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: transparent url('../../../../../img/visible-password.svg') no-repeat center / 24px 18px;
}
.ss-set-pwd-eye.is-shown {
	background-image: url('../../../../../img/hidden-password.svg');
}
.ss-set-pwd-eye:hover,
.ss-set-pwd-eye:focus { background-color: transparent; opacity: .85; }

.ss-set-pwd-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}
.ss-set-pwd-bars {
	display: flex; gap: 4px;
	flex: 1; max-width: 220px;
}
.ss-set-pwd-bars span {
	flex: 1; height: 3px;
	background: rgb(218, 218, 218);
	border-radius: 999px;
	transition: background .15s ease;
}
.ss-set-pwd-label {
	font-size: 12px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500;
}

/* Форма смены пароля разворачивается на всю строку: label/view/edit-btn
   прячем, форма раскрывается JS'ом (он же убирает hidden-атрибут). */
[data-ss-pwd-row].is-editing { grid-template-columns: 1fr; }
[data-ss-pwd-row].is-editing > .ss-set-row__label,
[data-ss-pwd-row].is-editing > .ss-set-row__view,
[data-ss-pwd-row].is-editing > [data-ss-pwd-open] { display: none; }

/* ─── Providers (Yandex / Google) ─── */
.ss-set-prov {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px 4px;
	border-bottom: 1px solid rgb(218, 218, 218);
}
.ss-set-prov.is-last { border-bottom: 0; }
.ss-set-prov__logo {
	width: 36px; height: 36px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid rgb(218, 218, 218);
	display: grid; place-items: center;
	flex-shrink: 0;
	box-sizing: border-box;
}
.ss-set-prov__logo img,
.ss-set-prov__logo svg,
.ss-set-key__icon svg {
	width: 24px; height: 24px;
	display: block;
}
.ss-set-prov__text { min-width: 0; }
.ss-set-prov__name {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 15px;
	color: #262626;
}
.ss-set-prov__status {
	font-size: 12px;
	color: #8B8B8B;
	margin-top: 2px;
	display: inline-flex; align-items: center; gap: 4px;
}
.ss-set-prov__status.is-on { color: #2D7A00; }

/* ─── Passkey ─── */
.ss-set-empty {
	padding: 20px 4px;
	font-size: 14px;
	color: #5C5C5C;
}
.ss-set-key {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px 4px;
	border-bottom: 1px solid rgb(218, 218, 218);
}
.ss-set-key.is-last { border-bottom: 0; }
.ss-set-key__icon {
	width: 36px; height: 36px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid rgb(218, 218, 218);
	display: grid; place-items: center;
	flex-shrink: 0;
}
.ss-set-key__text { min-width: 0; }
.ss-set-key__name {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 15px;
	color: #262626;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ss-set-key__meta {
	font-size: 12px;
	color: #8B8B8B;
	margin-top: 2px;
}
.ss-set-passkey-add {
	display: flex;
	justify-content: center;
	padding: 16px 0 8px;
}

/* ─── Danger zone ─── */
.ss-set-danger {
	background: #FFEEE6;
	border-radius: 20px;
	padding: 8px 24px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: center;
}
.ss-set-danger__text { padding: 14px 4px; }
.ss-set-danger__title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500; font-size: 15px;
	color: #FF3600;
}
.ss-set-danger__desc {
	font-size: 13px;
	color: #A6321A;
	margin-top: 4px;
}
.ss-set-danger__btn {
	background: #fff;
	color: #FF3600;
	border-color: transparent;
}
.ss-set-danger__btn:hover,
.ss-set-danger__btn:focus {
	background: #fff;
	color: #FF3600;
}

/* ─── Delete-account modal ─── */
.ss-set-delete__warn {
	margin: 0 0 14px;
	font-size: 14px;
	color: #5C5C5C;
	line-height: 1.5;
}
.ss-set-delete__label {
	display: block;
	font-size: 13px;
	color: #262626;
	margin-bottom: 8px;
}
.ss-set-delete__input {
	width: 100%;
	max-width: 360px;
}
.ss-set-delete__err {
	font-size: 12px;
	color: #FF3600;
	margin-top: 8px;
}
.ss-set-delete__foot {
	display: flex !important;
	justify-content: flex-end;
	gap: 8px;
}

/* ─── Mobile ─── */
@media (max-width: 880px) {
	.ss-set-card { padding: 4px 16px; border-radius: 16px; }
	.ss-set-row,
	.ss-set-pwd-field {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.ss-set-row__label,
	.ss-set-pwd-field > label { padding-top: 0; }
	.ss-set-row.is-editing { grid-template-columns: 1fr; }
	.ss-set-row__edit-btn {
		justify-self: start;
		margin-top: 4px;
	}
	.ss-set-danger {
		grid-template-columns: 1fr;
		padding: 4px 16px 16px;
	}
	.ss-set-danger__btn { width: 100%; }
	.ss-set-prov,
	.ss-set-key {
		grid-template-columns: auto 1fr;
	}
	.ss-set-prov > a,
	.ss-set-key > a {
		grid-column: 1 / -1;
		justify-self: stretch;
		text-align: center;
		margin-top: 4px;
	}
}

/* ════════════════════════════════════════════════════════════
   «МОИ БАЛЛЫ» — /account/bonuses/
   ════════════════════════════════════════════════════════════ */
.ss-bonus {
	display: flex;
	flex-direction: column;
	gap: 24px;       /* единый ритм: h1→карусель, секция→секция */
	min-width: 0;    /* чтобы внутренний горизонтальный скроллер не растягивал родителя */
	width: 100%;
}
/* h1 «Баллы» — отступ контролирует gap родителя, собственный margin сбрасываем */
.ss-bonus .ss-acc-title { margin: 0; }

/* ─── Карусель статусов ─── */
.ss-bonus-carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 0 12px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	max-width: 100%;
	min-width: 0;
}
.ss-bonus-carousel::-webkit-scrollbar { display: none; height: 0; }

/* Карточка статуса */
.ss-bonus-tier {
	position: relative;
	flex: 0 0 430px;
	width: 430px;
	height: 270px;
	border-radius: 20px;
	overflow: hidden;
	scroll-snap-align: start;
	background-color: #F5F5F5;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: filter .24s ease;
	box-sizing: border-box;
}
/* Неактивные карточки — обесцвечиваем */
.ss-bonus-tier--next, .ss-bonus-tier--far {
	filter: grayscale(1) brightness(1.04);
}
.ss-bonus-tier__lock {
	position: absolute; inset: 0;
	background: rgba(245, 245, 245, .55);
	z-index: 1;
}
.ss-bonus-tier__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px 30px;
	box-sizing: border-box;
	color: var(--ink);
}
.ss-bonus-tier__name {
	margin: 0;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600;
	font-size: 44px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--ink);
}
/* Locked карточки — текст приглушаем до серого */
.ss-bonus-tier--next .ss-bonus-tier__name,
.ss-bonus-tier--far  .ss-bonus-tier__name { color: #8B8B8B; }

.ss-bonus-tier__cashback {
	margin-top: 8px;
	font-size: 15px;
	color: var(--ink-soft);
}
.ss-bonus-tier--next .ss-bonus-tier__cashback,
.ss-bonus-tier--far  .ss-bonus-tier__cashback { color: #A6A6A6; }

.ss-bonus-tier__bottom {
	margin-top: auto;
	max-width: 60%;
}

/* Состояние current: монетка + крупное число баланса */
.ss-bonus-tier__balance {
	display: flex; align-items: center; gap: 10px;
}
.ss-bonus-tier__balance svg { display: block; }
.ss-bonus-tier__balance-num {
	font-family: "Golos Text", system-ui, sans-serif;
	font-weight: 600;
	font-size: 30px;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--ink);
}

/* Состояние next: прогресс-бар */
.ss-bonus-tier__progress-label {
	font-size: 12px;
	color: #5C5C5C;
	line-height: 1.4;
	margin-bottom: 10px;
}
.ss-bonus-tier__progress-label b { color: #262626; font-weight: 600; }
.ss-bonus-tier__progress-track {
	position: relative;
	height: 10px;
	background: rgba(38, 38, 38, .22);
	border-radius: 999px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(38, 38, 38, .06);
}
.ss-bonus-tier__progress-fill {
	height: 100%;
	background: #095EF7;
	border-radius: 999px;
	transition: width .32s cubic-bezier(.22, .61, .36, 1);
}
.ss-bonus-tier__progress-marks {
	display: flex; justify-content: space-between;
	font-size: 11px;
	color: #5C5C5C;
	margin-top: 6px;
}

/* Состояние far: только порог */
.ss-bonus-tier__threshold {
	font-size: 13px;
	color: #A6A6A6;
}

/* ─── Секция (заголовок + контент) ─── */
/* Каждая секция — flex-колонка с тем же gap, что и снаружи (24px).
   Так отступ под любым заголовком (h1, h2 в __head, голый h2) одинаковый. */
.ss-bonus-section {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ss-bonus-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0;                /* отступ задаёт parent gap, чтобы не двоилось */
	gap: 14px;
	flex-wrap: wrap;
}
.ss-bonus-section__title {
	margin: 0;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600;
	font-size: 22px;
	letter-spacing: -0.01em;
	color: #262626;
	line-height: 1.2;
}

/* ─── Лево-секция заголовка истории: title + «Показано X из Y» в одну строку ─── */
.ss-bonus-section__head-left {
	display: inline-flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	min-width: 0;
}
.ss-bonus-section__meta {
	font-size: 13px;
	color: #5C5C5C;
	white-space: nowrap;
}
.ss-bonus-section__meta b {
	color: #262626;
	font-weight: 600;
}

/* ─── Фильтр (Все N / Начисления N / Списания N) ─── */
.ss-bonus-filter {
	display: flex; gap: 6px;
	background: #F5F5F5;
	padding: 4px;
	border-radius: 10px;
}
.ss-bonus-filter__btn {
	background: transparent;
	color: #262626;
	border: 0;
	padding: 7px 12px;
	border-radius: 8px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500;
	font-size: 12px;
	cursor: pointer;
	transition: background .12s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ss-bonus-filter__btn.is-active {
	background: #fff;
}
.ss-bonus-filter__btn:hover,
.ss-bonus-filter__btn:focus {
	background: rgba(255, 255, 255, .6);
	color: #262626;
}
.ss-bonus-filter__btn.is-active:hover,
.ss-bonus-filter__btn.is-active:focus {
	background: #fff;
}
.ss-bonus-filter__count {
	font-size: 11px;
	color: #8B8B8B;
	font-weight: 500;
}

/* ─── Кнопки «Показать ещё» / «Свернуть» под историей ─── */
.ss-bonus-history__more-bar {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ss-bonus-history__more-bar[hidden] { display: none; }
.ss-bonus-history__more,
.ss-bonus-history__collapse {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500;
	font-size: 13px;
	border-radius: 12px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ss-bonus-history__more {
	background: #262626;
	color: #fff;
	border: 0;
	padding: 12px 22px;
}
.ss-bonus-history__more:hover,
.ss-bonus-history__more:focus { background: #000; }
.ss-bonus-history__collapse {
	background: transparent;
	color: #262626;
	border: 1px solid #E5E5E5;
	padding: 11px 18px;  /* -1 чтобы итог совпал с .ss-bonus-history__more (12 - 1px border) */
}
.ss-bonus-history__collapse:hover,
.ss-bonus-history__collapse:focus {
	border-color: #BDBDBD;
	background: #F5F5F5;
}
.ss-bonus-history__more[hidden],
.ss-bonus-history__collapse[hidden] { display: none; }

/* ─── История ─── */
.ss-bonus-history {
	background: #F5F5F5;
	border-radius: 18px;
	padding: 4px 22px;
}
.ss-bonus-history__empty {
	padding: 28px 4px;
	font-size: 14px;
	color: #8B8B8B;
	text-align: center;
}
.ss-bonus-history__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 16px 4px;
	border-bottom: 1px solid #E5E5E5;
}
.ss-bonus-history__row:last-child { border-bottom: 0; }
.ss-bonus-history__row[hidden] { display: none; }

.ss-bonus-history__icon {
	width: 40px; height: 40px;
	border-radius: 50%;
	display: grid; place-items: center;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600;
	font-size: 16px;
	flex-shrink: 0;
}
.ss-bonus-history__icon--in {
	background: #EAF6E0;
	color: #2D7A00;
}
.ss-bonus-history__icon--out {
	background: #FFEEE6;
	color: #FF3600;
}
.ss-bonus-history__text { min-width: 0; }
.ss-bonus-history__title {
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: #262626;
}
.ss-bonus-history__sub {
	font-size: 12px;
	color: #8B8B8B;
	margin-top: 3px;
}
.ss-bonus-history__amount {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 600;
	font-size: 16px;
}
.ss-bonus-history__amount svg { display: block; }
.ss-bonus-history__amount--in  { color: #2D7A00; }
.ss-bonus-history__amount--out { color: #FF3600; }

/* ─── FAQ ─── */
.ss-bonus-faq {
	background: #F5F5F5;
	border-radius: 18px;
	padding: 4px 22px;
}
.ss-bonus-faq__item {
	border-bottom: 1px solid #E5E5E5;
}
.ss-bonus-faq__item:last-child { border-bottom: 0; }
.ss-bonus-faq__q {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 18px 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: "Bounded", system-ui, sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: #262626;
}
.ss-bonus-faq__q:hover,
.ss-bonus-faq__q:focus {
	background: transparent;
	color: #262626;
}
.ss-bonus-faq__chev {
	flex-shrink: 0;
	transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}
.ss-bonus-faq__q[aria-expanded="true"] .ss-bonus-faq__chev {
	transform: rotate(180deg);
}
.ss-bonus-faq__a {
	padding: 0 0 18px;
	font-size: 14px;
	color: #5C5C5C;
	line-height: 1.55;
	max-width: 720px;
}
.ss-bonus-faq__a[hidden] { display: none; }

/* ─── Mobile ─── */
@media (max-width: 880px) {
	.ss-bonus-tier {
		flex: 0 0 320px;
		width: 320px;
		height: 200px;
	}
	.ss-bonus-tier__inner { padding: 20px 22px; }
	.ss-bonus-tier__name { font-size: 32px; }
	.ss-bonus-tier__cashback { font-size: 13px; }
	.ss-bonus-tier__balance-num { font-size: 24px; }
	.ss-bonus-section__title { font-size: 18px; }
	.ss-bonus-filter__btn { font-size: 11px; padding: 6px 10px; }
	.ss-bonus-history,
	.ss-bonus-faq { padding: 4px 16px; }
	.ss-bonus-history__title { font-size: 13px; }
	.ss-bonus-history__sub { font-size: 11px; }
	.ss-bonus-history__amount { font-size: 14px; }
	.ss-bonus-faq__q { font-size: 14px; padding: 16px 0; }
	.ss-bonus-faq__a { font-size: 13px; }
}
