.wssqo-root,
.wssqo-modal {
	--wssqo-bg: #FAF8F5;
	--wssqo-surface: #FFFFFF;
	--wssqo-text: #2C2623;
	--wssqo-muted: #6E655F;
	--wssqo-accent: #B59253;
	--wssqo-accent-contrast: #FFFFFF;
	--wssqo-border: #EFEBE4;
	--wssqo-radius: 12px;
	--wssqo-swatch-size: 36px;
	--wssqo-swatch-radius: 10px;
	--wssqo-gap: 8px;
	--wssqo-transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);

	color: var(--wssqo-text);
	font-family: inherit;
	text-align: left;
}

.wssqo-root[data-shape="circle"] { --wssqo-swatch-radius: 999px; }
.wssqo-root[data-shape="rounded"] { --wssqo-swatch-radius: 10px; }
.wssqo-root[data-shape="square"] { --wssqo-swatch-radius: 2px; }

.wssqo-field-group {
	margin-bottom: 12px;
	padding: 4px;
	border-radius: calc(var(--wssqo-radius) - 2px);
	border: 1px solid transparent;
	transition: border-color var(--wssqo-transition), background-color var(--wssqo-transition);
}

.wssqo-field-group.is-missing {
	border-color: #c94a4a;
	background-color: rgba(201, 74, 74, 0.05);
}

.wssqo-field-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 13px;
}

.wssqo-field-label {
	font-weight: 600;
	color: var(--wssqo-text);
}

.wssqo-selected-value {
	color: var(--wssqo-muted);
	font-size: 12.5px;
}

.wssqo-swatches-list,
.wssqo-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wssqo-gap);
}

.wssqo-tags-list {
	margin-bottom: 10px;
}

.wssqo-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--wssqo-swatch-size);
	height: var(--wssqo-swatch-size);
	padding: 0 10px;
	border-radius: var(--wssqo-swatch-radius);
	border: 1.5px solid var(--wssqo-border);
	background: var(--wssqo-surface);
	color: var(--wssqo-text);
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--wssqo-transition), border-color var(--wssqo-transition), box-shadow var(--wssqo-transition), opacity var(--wssqo-transition);
}

.wssqo-swatch--color,
.wssqo-swatch--dual-color,
.wssqo-swatch--image {
	width: var(--wssqo-swatch-size);
	padding: 2px;
}

.wssqo-swatch-fill {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: calc(var(--wssqo-swatch-radius) - 3px);
	background-color: var(--wssqo-fill, transparent);
	background-position: center;
	background-size: cover;
}

.wssqo-swatch:hover:not(.is-unavailable) {
	border-color: var(--wssqo-accent);
	transform: translateY(-1px);
}

.wssqo-swatch.is-selected {
	border-color: var(--wssqo-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wssqo-accent) 30%, transparent);
	font-weight: 600;
}

.wssqo-swatch[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 7px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--wssqo-text);
	color: var(--wssqo-surface);
	font-size: 11.5px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease, transform 150ms ease;
	z-index: 20;
}

.wssqo-swatch[data-tooltip]:hover::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.wssqo-swatch.is-unavailable {
	opacity: 0.4;
}

.wssqo-root[data-unavailable="cross"] .wssqo-swatch.is-unavailable::before {
	content: "";
	position: absolute;
	inset: 2px;
	background: linear-gradient(to top left, transparent calc(50% - 1px), #9e2a2b 50%, transparent calc(50% + 1px));
	pointer-events: none;
}

.wssqo-root[data-unavailable="hide"] .wssqo-swatch.is-unavailable {
	display: none !important;
}

.wssqo-clear-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
	padding: 3px 8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--wssqo-muted);
	font-size: 12px;
	cursor: pointer;
	transition: color var(--wssqo-transition), background-color var(--wssqo-transition);
}

.wssqo-clear-btn:hover {
	color: var(--wssqo-text);
	background: var(--wssqo-bg);
}

.wssqo-clear-btn[hidden] {
	display: none !important;
}

.wssqo-tag-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wssqo-bg);
	border: 1px solid var(--wssqo-border);
	color: var(--wssqo-muted);
	font-size: 12px;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color var(--wssqo-transition), filter var(--wssqo-transition);
}

a.wssqo-tag-chip:hover {
	border-color: var(--wssqo-accent);
	filter: brightness(0.96);
}

.wssqo-variation-meta:not(:empty) {
	margin: 10px 0;
}

.wssqo-dynamic-price {
	font-weight: 600;
	font-size: 15px;
}

.wssqo-dynamic-price--single {
	font-size: 20px;
	margin-bottom: 4px;
}

.wssqo-stock-status {
	font-size: 13px;
	color: var(--wssqo-muted);
}

.wssqo-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.wssqo-qty-wrap {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--wssqo-border);
	border-radius: var(--wssqo-radius);
	background: var(--wssqo-bg);
	overflow: hidden;
}

.wssqo-qty-btn {
	width: 34px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--wssqo-text);
	font-size: 16px;
	cursor: pointer;
}

.wssqo-qty-input {
	width: 44px;
	height: 40px;
	border: 0;
	background: transparent;
	text-align: center;
	color: var(--wssqo-text);
	font-size: 14px;
	-moz-appearance: textfield;
}

.wssqo-qty-input::-webkit-outer-spin-button,
.wssqo-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wssqo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: var(--wssqo-radius);
	border: 1px solid transparent;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: filter var(--wssqo-transition), border-color var(--wssqo-transition), opacity var(--wssqo-transition);
}

.wssqo-btn--primary {
	background: var(--wssqo-accent);
	color: var(--wssqo-accent-contrast);
}

.wssqo-btn--primary:hover:not(:disabled) {
	filter: brightness(0.94);
}

.wssqo-btn--secondary {
	background: var(--wssqo-bg);
	color: var(--wssqo-text);
	border-color: var(--wssqo-border);
}

.wssqo-btn--secondary:hover:not(:disabled) {
	border-color: var(--wssqo-accent);
}

.wssqo-btn--full {
	width: 100%;
}

.wssqo-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wssqo-feedback {
	margin-top: 6px;
	font-size: 12.5px;
}

.wssqo-feedback.is-success { color: #256d45; }
.wssqo-feedback.is-error { color: #9e2a2b; }

dialog.wssqo-modal {
	border: 1px solid var(--wssqo-border);
	border-radius: calc(var(--wssqo-radius) + 4px);
	background: var(--wssqo-surface);
	padding: 0;
	max-width: 450px;
	width: calc(100% - 28px);
	box-shadow: 0 24px 60px rgba(44, 38, 35, 0.18);
}

dialog.wssqo-modal::backdrop {
	background: rgba(44, 38, 35, 0.45);
	backdrop-filter: blur(4px);
}

.wssqo-modal-inner {
	padding: 22px;
}

.wssqo-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.wssqo-modal-title {
	margin: 0 0 4px;
	font-size: 18px;
}

.wssqo-modal-product {
	margin: 0;
	font-size: 13px;
	color: var(--wssqo-muted);
}

.wssqo-modal-close {
	background: var(--wssqo-bg);
	border: 1px solid var(--wssqo-border);
	border-radius: 8px;
	width: 32px;
	height: 32px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: var(--wssqo-text);
}

.wssqo-form-row {
	margin-bottom: 12px;
}

.wssqo-form-row label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
}

.wssqo-form-row input,
.wssqo-form-row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border-radius: calc(var(--wssqo-radius) - 2px);
	border: 1px solid var(--wssqo-border);
	background: var(--wssqo-bg);
	color: var(--wssqo-text);
	font-size: 14px;
}

.wssqo-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

/* === Плашки характеристик для простых товаров в каталоге (заполнение пустоты) === */
.wssqo-simple-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.wssqo-spec-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: var(--wssqo-swatch-radius);
	border: 1px solid var(--wssqo-border);
	background: var(--wssqo-bg);
	color: var(--wssqo-text);
	font-size: 12px;
	line-height: 1.25;
}

.wssqo-spec-pill__name {
	color: var(--wssqo-muted);
}

.wssqo-spec-pill__val {
	font-weight: 500;
}

/* === Выравнивание карточек в сетке каталога по нижнему краю === */
body.wssqo-align-cards ul.products li.product,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product {
	display: flex;
	flex-direction: column;
}

body.wssqo-align-cards ul.products li.product .wssqo-context-catalog,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wssqo-context-catalog {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

body.wssqo-align-cards ul.products li.product .wssqo-context-catalog .wssqo-actions--catalog {
	margin-top: auto;
}

/* === Разделение размеров кнопок: компактные в каталоге vs стандартные на странице товара === */
.wssqo-context-catalog .wssqo-btn--compact {
	padding: 8px 13px;
	font-size: 13px;
}

.wssqo-context-product .wssqo-actions--single {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin-top: 14px;
}

.wssqo-context-product .wssqo-qty-wrap {
	height: auto;
	min-height: 46px;
}

.wssqo-context-product .wssqo-qty-btn,
.wssqo-context-product .wssqo-qty-input {
	height: 100%;
	min-height: 44px;
}

.wssqo-context-product .wssqo-btn--single-theme,
.wssqo-context-product .wssqo-btn--single-theme-secondary {
	min-height: 46px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--wssqo-radius);
}

.wssqo-context-product .wssqo-btn--single-theme {
	background-color: var(--wssqo-accent);
	color: var(--wssqo-accent-contrast);
	border: 1px solid var(--wssqo-accent);
}

/* === Трек горизонтального скролла сватчей и характеристик с визуальной подсказкой === */
.wssqo-swatches-track {
	position: relative;
	display: flex;
	align-items: center;
}

.wssqo-swatches-track .wssqo-swatches-list,
.wssqo-swatches-track .wssqo-simple-specs {
	width: 100%;
}

.wssqo-scroll-hint {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--wssqo-border);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--wssqo-accent);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: -6px 0 12px rgba(255, 255, 255, 0.92), 0 2px 6px rgba(44, 38, 35, 0.12);
	z-index: 5;
	animation: wssqo-nudge-right 1.8s ease-in-out infinite;
}

.wssqo-scroll-hint[hidden] {
	display: none !important;
}

@keyframes wssqo-nudge-right {
	0%, 100% { transform: translateY(-50%) translateX(0); }
	50% { transform: translateY(-50%) translateX(-2px); }
}

/* === Мобильный свайп-слайдер галереи (первые 3 фото как на маркетплейсах) === */
.wssqo-gal-slider-wrap {
	display: none;
	position: relative;
	width: 100%;
	margin-bottom: 6px;
}

.wssqo-gal-viewport {
	position: relative;
	width: 100%;
	border-radius: calc(var(--wssqo-radius) - 2px);
	overflow: hidden;
}

.wssqo-gal-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.wssqo-gal-track::-webkit-scrollbar {
	display: none;
}

.wssqo-gal-slide {
	flex: 0 0 100%;
	width: 100%;
	scroll-snap-align: start;
	display: block;
}

.wssqo-gal-slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin: 0 auto !important;
}

.wssqo-gal-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px 0 2px;
	width: 100%;
}

.wssqo-gal-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wssqo-text, #2C2623) 22%, transparent);
	cursor: pointer;
	transition: width 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 200ms ease, transform 200ms ease;
}

.wssqo-gal-dot.is-active {
	width: 16px;
	background: var(--wssqo-accent, #B59253);
}

/* === Адаптация каталога для мобильных устройств (< 640px) === */
@media (max-width: 639px) {
	/* Показываем свайп-галерею на мобильных вместо одиночного фото */
	li.product[data-wssqo-gal-init="1"] .wssqo-desktop-thumb,
	.wc-block-grid__product[data-wssqo-gal-init="1"] .wssqo-desktop-thumb {
		display: none !important;
	}

	li.product[data-wssqo-gal-init="1"] .wssqo-gal-slider-wrap,
	.wc-block-grid__product[data-wssqo-gal-init="1"] .wssqo-gal-slider-wrap {
		display: block;
	}

	/* Режим горизонтальной ленты сватчей в 1 строку */
	.wssqo-context-catalog[data-mobile-layout="scroll"] .wssqo-swatches-list,
	.wssqo-context-catalog[data-mobile-layout="scroll"] .wssqo-simple-specs {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 2px 26px 4px 1px;
		gap: 6px;
	}

	.wssqo-context-catalog[data-mobile-layout="scroll"] .wssqo-swatches-list::-webkit-scrollbar,
	.wssqo-context-catalog[data-mobile-layout="scroll"] .wssqo-simple-specs::-webkit-scrollbar {
		display: none;
	}

	.wssqo-context-catalog[data-mobile-layout="scroll"] .wssqo-swatches-track.has-overflow::after {
		content: "";
		position: absolute;
		right: 0;
		top: 0;
		bottom: 2px;
		width: 34px;
		background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--wssqo-surface) 82%);
		pointer-events: none;
		z-index: 3;
	}

	/* Крупные, читаемые кнопки размеров и плашки под палец */
	.wssqo-context-catalog .wssqo-swatch,
	.wssqo-context-catalog .wssqo-spec-pill {
		flex: 0 0 auto;
		scroll-snap-align: start;
		min-height: 36px;
		height: 36px;
		padding: 0 11px;
		font-size: 13.5px;
		white-space: nowrap;
	}

	.wssqo-context-catalog .wssqo-swatch--color,
	.wssqo-context-catalog .wssqo-swatch--dual-color,
	.wssqo-context-catalog .wssqo-swatch--image {
		width: 36px;
		padding: 2px;
	}

	/* Режим переноса в несколько строк, если выбран в настройках */
	.wssqo-context-catalog[data-mobile-layout="wrap"] .wssqo-swatches-list,
	.wssqo-context-catalog[data-mobile-layout="wrap"] .wssqo-simple-specs {
		flex-wrap: wrap;
	}

	.wssqo-context-catalog[data-mobile-layout="wrap"] .wssqo-scroll-hint {
		display: none !important;
	}

	/* Убираем дубль цены снизу в каталоге, т.к. обновляется верхняя цена .price */
	.wssqo-context-catalog .wssqo-variation-meta {
		display: none !important;
	}

	/* Кнопка «В корзину» на всю ширину карточки на мобильных */
	.wssqo-context-catalog[data-mobile-full-btn="1"] .wssqo-actions--catalog {
		flex-direction: column;
		align-items: stretch;
	}

	.wssqo-context-catalog[data-mobile-full-btn="1"] .wssqo-actions--catalog .wssqo-btn {
		width: 100%;
		min-height: 40px;
		padding: 10px 12px;
		font-size: 13.5px;
	}
}

/* === Размещение меток и атрибутов под названием товара, а кнопок покупки — внизу карточки === */
.wssqo-part-top {
	margin-top: 8px;
	margin-bottom: 10px;
}

.wssqo-part-bottom {
	width: 100%;
	margin-top: auto;
}

body.wssqo-align-cards ul.products li.product,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product {
	display: flex;
	flex-direction: column;
}

body.wssqo-align-cards ul.products li.product .wssqo-part-bottom,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wssqo-part-bottom {
	margin-top: auto !important;
	padding-top: 8px;
}

/* === Десктопная версия (>= 640px): крупные кнопки вариаций в каталоге и карточке === */
@media (min-width: 640px) {
	.wssqo-context-catalog .wssqo-swatch {
		min-width: 42px;
		height: 38px;
		padding: 0 13px;
		font-size: 14px;
		font-weight: 500;
	}

	.wssqo-context-catalog .wssqo-swatch--color,
	.wssqo-context-catalog .wssqo-swatch--dual-color,
	.wssqo-context-catalog .wssqo-swatch--image {
		width: 40px;
		height: 40px;
		padding: 3px;
	}

	.wssqo-context-catalog .wssqo-spec-pill {
		padding: 6px 12px;
		font-size: 13px;
	}
}

/* === Мобильная галерея в каталоге (<= 767px): повышенный приоритет для совместимости с темами === */
@media (max-width: 767px) {
	.product[data-wssqo-gal-init="1"] .wssqo-desktop-thumb,
	li.product[data-wssqo-gal-init="1"] .wssqo-desktop-thumb,
	.wc-block-grid__product[data-wssqo-gal-init="1"] .wssqo-desktop-thumb {
		display: none !important;
	}

	.product[data-wssqo-gal-init="1"] .wssqo-gal-slider-wrap,
	li.product[data-wssqo-gal-init="1"] .wssqo-gal-slider-wrap,
	.wc-block-grid__product[data-wssqo-gal-init="1"] .wssqo-gal-slider-wrap {
		display: block !important;
		width: 100% !important;
	}
}

/* === Фиксация тегов и атрибутов наверху сразу под названием (даже в простых товарах рядом с вариативными) === */
.wssqo-part-top {
	margin-top: 8px !important;
	margin-bottom: auto !important;
	align-self: stretch;
}

body.wssqo-align-cards ul.products li.product,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
}

body.wssqo-align-cards ul.products li.product .wssqo-part-top,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wssqo-part-top {
	margin-bottom: auto !important;
}

body.wssqo-align-cards ul.products li.product .wssqo-part-bottom,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wssqo-part-bottom {
	margin-top: 10px !important;
	padding-top: 4px;
}

/* === Универсальные правила горизонтального скроллинга (Десктоп и/или Мобильные по настройке) === */
.wssqo-context-catalog[data-scroll-scope="scroll_all"] .wssqo-swatches-list,
.wssqo-context-catalog[data-scroll-scope="scroll_all"] .wssqo-simple-specs {
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px 28px 4px 1px;
	gap: 6px;
}

.wssqo-context-catalog[data-scroll-scope="scroll_all"] .wssqo-swatches-list::-webkit-scrollbar,
.wssqo-context-catalog[data-scroll-scope="scroll_all"] .wssqo-simple-specs::-webkit-scrollbar {
	display: none;
}

.wssqo-context-catalog[data-scroll-scope="scroll_all"] .wssqo-swatch,
.wssqo-context-catalog[data-scroll-scope="scroll_all"] .wssqo-spec-pill {
	flex: 0 0 auto;
	white-space: nowrap;
}

.wssqo-context-catalog[data-scroll-scope="scroll_all"] .wssqo-swatches-track.has-overflow::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 2px;
	width: 36px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--wssqo-surface) 82%);
	pointer-events: none;
	z-index: 3;
}

@media (max-width: 639px) {
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-swatches-list,
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-simple-specs {
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 2px 26px 4px 1px;
		gap: 6px;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-swatches-list::-webkit-scrollbar,
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-simple-specs::-webkit-scrollbar {
		display: none;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-swatch,
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-spec-pill {
		flex: 0 0 auto;
		white-space: nowrap;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-swatches-track.has-overflow::after {
		content: "";
		position: absolute;
		right: 0;
		top: 0;
		bottom: 2px;
		width: 34px;
		background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--wssqo-surface) 82%);
		pointer-events: none;
		z-index: 3;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-scroll-hint,
	.wssqo-context-catalog[data-scroll-scope="wrap_all"] .wssqo-scroll-hint {
		display: none !important;
	}
}

@media (min-width: 640px) {
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-swatches-list,
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-simple-specs {
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding: 2px 28px 4px 1px;
		gap: 6px;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-swatches-list::-webkit-scrollbar,
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-simple-specs::-webkit-scrollbar {
		display: none;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-swatch,
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-spec-pill {
		flex: 0 0 auto;
		white-space: nowrap;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_desktop"] .wssqo-swatches-track.has-overflow::after {
		content: "";
		position: absolute;
		right: 0;
		top: 0;
		bottom: 2px;
		width: 36px;
		background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--wssqo-surface) 82%);
		pointer-events: none;
		z-index: 3;
	}
	.wssqo-context-catalog[data-scroll-scope="scroll_mobile"] .wssqo-scroll-hint,
	.wssqo-context-catalog[data-scroll-scope="wrap_all"] .wssqo-scroll-hint {
		display: none !important;
	}
}

/* === Двусторонний скролл (стрелка ‹ слева и › справа + перетаскивание мышью) === */
.wssqo-scroll-hint--prev {
	left: 0;
	right: auto;
	box-shadow: 6px 0 12px rgba(255, 255, 255, 0.92), 0 2px 6px rgba(44, 38, 35, 0.12);
	animation: wssqo-nudge-left 1.8s ease-in-out infinite;
}

.wssqo-scroll-hint--next {
	right: 0;
	left: auto;
}

@keyframes wssqo-nudge-left {
	0%, 100% { transform: translateY(-50%) translateX(0); }
	50% { transform: translateY(-50%) translateX(2px); }
}

.wssqo-swatches-track.has-overflow-left::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 2px;
	width: 34px;
	background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--wssqo-surface) 82%);
	pointer-events: none;
	z-index: 3;
}

.wssqo-swatches-track.is-scrolled .wssqo-swatches-list,
.wssqo-swatches-track.is-scrolled .wssqo-simple-specs {
	padding-left: 28px;
}

.wssqo-swatches-list.is-dragging,
.wssqo-simple-specs.is-dragging {
	cursor: grabbing;
	user-select: none;
	scroll-snap-type: none !important;
}

/* === Выравнивание атрибутов простых товаров в одну горизонтальную линию с размерами === */
.wssqo-field-group--specs {
	margin-bottom: 12px;
}

.wssqo-field-header--spacer {
	visibility: hidden;
	pointer-events: none;
	user-select: none;
}

.wssqo-context-catalog .wssqo-simple-specs {
	align-items: center;
	margin-bottom: 0;
}

@media (min-width: 640px) {
	.wssqo-context-catalog .wssqo-spec-pill {
		height: 38px;
		min-height: 38px;
		padding: 0 13px;
		font-size: 14px;
		font-weight: 500;
	}
}

/* === Жесткое выравнивание высоты тегов, размеров и атрибутов в соседних карточках === */
.wssqo-context-catalog .wssqo-tags-slot {
	min-height: 26px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
}

.wssqo-context-catalog .wssqo-tags-list {
	flex-wrap: nowrap;
	overflow: hidden;
	margin-bottom: 0;
	width: 100%;
}

.wssqo-context-catalog .wssqo-tags-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 26px;
	margin-bottom: 8px;
}

.wssqo-context-catalog .wssqo-tag-chip {
    display: block;
    align-items: center;
    justify-content: center;
    height: auto;
    line-height: 1.4;
    padding: 0 5px;
    border-radius: 5px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    vertical-align: middle;
}

.wssqo-context-catalog .wssqo-field-group,
.wssqo-context-catalog .wssqo-field-group--specs {
	padding: 0 !important;
	border: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 10px !important;
}

.wssqo-context-catalog .wssqo-field-header,
.wssqo-context-catalog .wssqo-field-header--spacer {
	height: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
	line-height: 20px !important;
	margin-bottom: 6px !important;
	overflow: hidden;
}

.wssqo-context-catalog .wssqo-swatches-track {
	min-height: 38px;
	align-items: center;
}

.wssqo-context-catalog .wssqo-swatch,
.wssqo-context-catalog .wssqo-spec-pill {
	box-sizing: border-box !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
}

@media (min-width: 640px) {
	.wssqo-context-catalog .wssqo-swatch,
	.wssqo-context-catalog .wssqo-spec-pill {
		height: 38px !important;
		min-height: 38px !important;
		max-height: 38px !important;
	}
}

/* === Нижний отступ витрины каталога на мобильных от плавающих виджетов чата и «Наверх» === */
@media (max-width: 767px) {
	body.wssqo-align-cards ul.products,
	body.wssqo-align-cards .wc-block-grid__products {
		padding-bottom: 68px;
	}
}

/* === Аккуратное отображение выбранного размера в корзине и мини-корзине === */
.woocommerce-cart-form dl.variation,
.woocommerce-mini-cart dl.variation,
.wc-block-components-product-details {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--wssqo-muted, #6E655F);
}


/* === Порядок и акценты элементов карточки в каталоге: Фото -> Название -> Метка -> Артикул -> Цена -> Размер -> Кнопки === */
body.wssqo-align-cards ul.products li.product .woocommerce-loop-product__title,
body.wssqo-align-cards ul.products li.product .wc-block-grid__product-title,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
	margin-top: 8px !important;
	margin-bottom: 6px !important;
}

.wssqo-context-catalog .wssqo-tags-slot:empty,
.wssqo-context-catalog .wssqo-catalog-sku-slot:empty,
.wssqo-context-catalog .wssqo-catalog-price-slot:empty {
	display: none;
}

.wssqo-context-catalog .wssqo-tags-slot {
	margin-top: 2px;
	margin-bottom: 6px;
}

.wssqo-context-catalog .wssqo-catalog-sku-slot {
	margin-bottom: 6px;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--wssqo-muted, #6E655F);
}

.wssqo-context-catalog .wssqo-catalog-sku-slot .wssqo-moved-sku,
.wssqo-context-catalog .wssqo-catalog-sku-slot .sku_wrapper,
.wssqo-context-catalog .wssqo-catalog-sku-slot .sku {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 12.5px !important;
	line-height: 1.3 !important;
	color: var(--wssqo-muted, #6E655F) !important;
	display: inline-block;
}

.wssqo-context-catalog .wssqo-catalog-price-slot {
	margin-top: 2px;
	margin-bottom: 10px;
}

.wssqo-context-catalog .wssqo-catalog-price-slot .price,
.wssqo-context-catalog .wssqo-catalog-price-slot .wssqo-moved-price {
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
	color: var(--wssqo-text, #2C2623) !important;
}

.wssqo-context-catalog .wssqo-catalog-price-slot .price .woocommerce-Price-amount,
.wssqo-context-catalog .wssqo-catalog-price-slot .price bdi {
	font-size: 17px !important;
	font-weight: 700 !important;
}

@media (min-width: 640px) {
	.wssqo-context-catalog .wssqo-catalog-price-slot .price,
	.wssqo-context-catalog .wssqo-catalog-price-slot .wssqo-moved-price,
	.wssqo-context-catalog .wssqo-catalog-price-slot .price .woocommerce-Price-amount,
	.wssqo-context-catalog .wssqo-catalog-price-slot .price bdi {
		font-size: 18.5px !important;
	}
}


/* === Пара «Метка + Полное наименование иконы» рядом в карточке === */
.wssqo-context-catalog .wssqo-tags-list--with-fullname {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	width: 100%;
	overflow: hidden;
}

.wssqo-context-catalog .wssqo-tags-list--with-fullname > .wssqo-tag-chip:not(.wssqo-tag-chip--full-name) {
	flex: 0 0 auto;
	max-width: 48%;
}

.wssqo-context-catalog .wssqo-tags-list--with-fullname > .wssqo-tag-chip--full-name {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wssqo-context-product .wssqo-tags-list--with-fullname {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}


.wssqo-tag-chip.is-current {
	border-color: color-mix(in srgb, var(--wssqo-accent, #B59253) 45%, var(--wssqo-border, #EFEBE4));
	color: var(--wssqo-text, #2C2623);
	cursor: default;
}


/* === Независимые дополнительные опции в карточке вариативного товара === */
.wssqo-addons-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0 10px;
}

.wssqo-addon-item {
	background: var(--wssqo-bg, #FAF8F5);
	border: 1px solid var(--wssqo-border, #EFEBE4);
	border-radius: var(--wssqo-radius, 12px);
	padding: 10px 12px;
	transition: border-color 180ms ease;
}

.wssqo-addon-item:has(.wssqo-addon-cb:checked) {
	border-color: var(--wssqo-accent, #B59253);
}

.wssqo-addon-toggle {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	cursor: pointer;
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--wssqo-text, #2C2623);
	user-select: none;
}

.wssqo-addon-cb {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--wssqo-accent, #B59253);
	flex: 0 0 auto;
	cursor: pointer;
}

.wssqo-addon-title {
	flex: 1 1 auto;
	font-weight: 500;
}

.wssqo-addon-price {
	flex: 0 0 auto;
	font-weight: 600;
	font-size: 13px;
	color: var(--wssqo-accent, #B59253);
	white-space: nowrap;
}

.wssqo-addon-extra {
	margin-top: 8px;
}

.wssqo-addon-textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid var(--wssqo-border, #EFEBE4);
	border-radius: 8px;
	background: var(--wssqo-surface, #FFFFFF);
	color: var(--wssqo-text, #2C2623);
	font-size: 13px;
	line-height: 1.4;
	resize: vertical;
}

.wssqo-addon-textarea:focus {
	outline: none;
	border-color: var(--wssqo-accent, #B59253);
}


/* === v2.15.0: Фиксированные 4 строки заголовка, нижнее выравнивание цены+свотчей+кнопок и превью доп. опций === */
body.wssqo-align-cards ul.products li.product .woocommerce-loop-product__title,
body.wssqo-align-cards ul.products li.product .wc-block-grid__product-title,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
	display: -webkit-box !important;
	-webkit-line-clamp: 4 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	line-height: 1.35em !important;
	min-height: 5.4em !important;
	max-height: 5.4em !important;
	margin-top: 8px !important;
	margin-bottom: 6px !important;
}

body.wssqo-align-cards ul.products li.product .wssqo-part-top,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wssqo-part-top {
	margin-top: 0 !important;
	margin-bottom: 8px !important;
}

body.wssqo-align-cards ul.products li.product .wssqo-part-bottom,
body.wssqo-align-cards .wc-block-grid__products .wc-block-grid__product .wssqo-part-bottom {
	margin-top: auto !important;
	padding-top: 6px !important;
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
}

.wssqo-part-bottom .wssqo-catalog-price-slot:empty {
	display: none;
}

.wssqo-part-bottom .wssqo-catalog-price-slot {
	margin-top: 0;
	margin-bottom: 8px;
}

.wssqo-part-bottom .wssqo-catalog-price-slot .price,
.wssqo-part-bottom .wssqo-catalog-price-slot .wssqo-moved-price {
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
	color: var(--wssqo-text, #2C2623) !important;
}

.wssqo-part-bottom .wssqo-catalog-price-slot .price .woocommerce-Price-amount,
.wssqo-part-bottom .wssqo-catalog-price-slot .price bdi {
	font-size: 17px !important;
	font-weight: 700 !important;
}

@media (min-width: 640px) {
	.wssqo-part-bottom .wssqo-catalog-price-slot .price,
	.wssqo-part-bottom .wssqo-catalog-price-slot .wssqo-moved-price,
	.wssqo-part-bottom .wssqo-catalog-price-slot .price .woocommerce-Price-amount,
	.wssqo-part-bottom .wssqo-catalog-price-slot .price bdi {
		font-size: 18.5px !important;
	}
}

.wssqo-part-bottom .wssqo-field-group,
.wssqo-part-bottom .wssqo-field-group--specs {
	padding: 0 !important;
	border: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 10px !important;
}

.wssqo-part-bottom .wssqo-field-header,
.wssqo-part-bottom .wssqo-field-header--spacer {
	height: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
	line-height: 20px !important;
	margin-bottom: 6px !important;
	overflow: hidden;
}

.wssqo-part-bottom .wssqo-swatches-track {
	min-height: 38px;
	align-items: center;
}

.wssqo-part-bottom .wssqo-swatch,
.wssqo-part-bottom .wssqo-spec-pill {
	box-sizing: border-box !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	flex: 0 0 auto;
	white-space: nowrap;
}

@media (min-width: 640px) {
	.wssqo-part-bottom .wssqo-swatch,
	.wssqo-part-bottom .wssqo-spec-pill {
		height: 38px !important;
		min-height: 38px !important;
		max-height: 38px !important;
	}
}

.wssqo-part-bottom .wssqo-swatches-list,
.wssqo-part-bottom .wssqo-simple-specs {
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px 28px 4px 1px;
	gap: 6px;
}

.wssqo-part-bottom .wssqo-swatches-list::-webkit-scrollbar,
.wssqo-part-bottom .wssqo-simple-specs::-webkit-scrollbar {
	display: none;
}

.wssqo-part-bottom .wssqo-swatches-track.has-overflow::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 2px;
	width: 34px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--wssqo-surface) 82%);
	pointer-events: none;
	z-index: 3;
}

@media (max-width: 639px) {
	.wssqo-part-bottom .wssqo-actions--catalog {
		flex-direction: column;
		align-items: stretch;
	}
	.wssqo-part-bottom .wssqo-actions--catalog .wssqo-btn {
		width: 100%;
		min-height: 40px;
		padding: 10px 12px;
		font-size: 13.5px;
	}
}

/* === Компактная плашка фото-примера внутри доп. опции (киот / надпись) === */
.wssqo-addon-preview-card {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: 8px;
	padding: 6px 10px;
	border: 1px solid var(--wssqo-border, #EFEBE4);
	border-radius: 8px;
	background: var(--wssqo-surface, #FFFFFF);
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wssqo-addon-preview-card:hover {
	border-color: var(--wssqo-accent, #B59253);
	box-shadow: 0 2px 8px rgba(44, 38, 35, 0.06);
}

.wssqo-addon-preview-thumb {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	flex: 0 0 auto;
	border: 1px solid var(--wssqo-border, #EFEBE4);
}

.wssqo-addon-preview-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wssqo-addon-preview-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--wssqo-text, #2C2623);
	line-height: 1.25;
}

.wssqo-addon-preview-zoom {
	font-size: 11.5px;
	color: var(--wssqo-accent, #B59253);
	line-height: 1.2;
}

dialog.wssqo-zoom-modal {
	max-width: 560px;
}

.wssqo-zoom-modal-inner {
	padding: 16px;
}

.wssqo-zoom-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wssqo-bg, #FAF8F5);
	border-radius: 10px;
	overflow: hidden;
}

.wssqo-zoom-img-wrap img {
	display: block;
	max-width: 100%;
	max-height: 75vh;
	width: auto;
	height: auto;
	object-fit: contain;
}


/* === v2.15.1: Гарантированная видимость кнопок-стрелок скролла в нижнем блоке карточек каталога === */
.wssqo-part-bottom .wssqo-scroll-hint {
	z-index: 6 !important;
	width: 24px !important;
	height: 30px !important;
	border-radius: 7px !important;
	background: rgba(255, 255, 255, 0.96) !important;
	border: 1px solid var(--wssqo-border, #EFEBE4) !important;
	color: var(--wssqo-accent, #B59253) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

.wssqo-part-bottom .wssqo-scroll-hint[hidden] {
	display: none !important;
}

.wssqo-part-bottom .wssqo-scroll-hint:not([hidden]) {
	display: inline-flex !important;
}


/* === v2.16.0: Согласие на обработку ПДн, профиль в Мой аккаунт и встраиваемые карточки === */
.wssqo-checkout-privacy {
	margin: 14px 0 16px !important;
	padding: 12px 14px;
	background: var(--wssqo-bg, #FAF8F5);
	border: 1px solid var(--wssqo-border, #EFEBE4);
	border-radius: var(--wssqo-radius, 12px);
}

.wssqo-checkout-privacy .woocommerce-form__label-for-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
	cursor: pointer;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--wssqo-text, #2C2623);
}

.wssqo-checkout-privacy input[type="checkbox"] {
	margin-top: 3px !important;
	flex: 0 0 auto;
	accent-color: var(--wssqo-accent, #B59253);
}

.wssqo-checkout-privacy a {
	color: var(--wssqo-accent, #B59253);
	text-decoration: underline;
}

.wssqo-form-row--checkbox .wssqo-privacy-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	line-height: 1.4;
	cursor: pointer;
	color: var(--wssqo-text, #2C2623);
}

.wssqo-form-row--checkbox input[type="checkbox"] {
	margin-top: 2px;
	flex: 0 0 auto;
	accent-color: var(--wssqo-accent, #B59253);
}

.wssqo-account-profile-card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--wssqo-bg, #FAF8F5);
	border: 1px solid var(--wssqo-border, #EFEBE4);
	border-radius: var(--wssqo-radius, 12px);
}

.wssqo-account-profile-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wssqo-account-profile-label {
	font-size: 12px;
	color: #78706A;
}

.wssqo-account-profile-val {
	font-size: 15px;
	font-weight: 700;
	color: var(--wssqo-text, #2C2623);
}

.wssqo-embedded-card-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
	max-width: 320px;
}


/* === v2.17.0: Уведомление залогиненного пользователя о покупке, доставке и оплате === */
.wssqo-logged-payment-box {
	margin: 0 0 18px;
	padding: 14px 16px;
	background: var(--wssqo-surface, #FFFFFF);
	border: 1px solid var(--wssqo-accent, #B59253);
	border-radius: var(--wssqo-radius, 12px);
	color: var(--wssqo-text, #2C2623);
}

.wssqo-logged-payment-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--wssqo-text, #2C2623);
}

.wssqo-logged-payment-line {
	margin: 4px 0 !important;
	font-size: 13.5px;
	line-height: 1.45;
}

.wssqo-pay-order-link {
	display: inline-block;
	margin-left: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--wssqo-accent, #B59253);
	color: #FFFFFF !important;
	font-weight: 600;
	text-decoration: none !important;
}
