/*
 * Выбор вариантов на карточке товара (тег [offers_switcher]) в палитре simvorota.ru: образцы покрытия и цвета кружками,
 * остекление и размер таблетками, всё в одной аккуратной карточке над ценой. Разметку и работу даёт модуль каталога
 * (modules/catalog_items/css/offers_switcher.css, js/catalog_offers_switcher.js); здесь только оформление сайта.
 */
.catalog-offers-switcher {
	--offers-accent: #00349a;
	--offers-accent-contrast: #fff;
	--offers-border: #d7deec;
	--offers-border-hover: #00349a;
	--offers-text: #001e29;
	--offers-text-muted: #6b7a88;
	--offers-radius: 8px;
	margin: 8px 0 18px;
	padding: 20px 22px 8px;
	border: 1px solid #e5ebf8;
	border-radius: 12px;
	background: #f7f9fe;
	font-family: 'Montserrat', sans-serif;
}
.catalog-offers-switcher .catalog-offers-axis {
	margin-bottom: 18px;
}
.catalog-offers-switcher .catalog-offers-axis-name {
	margin: 0 0 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6b7a88;
}
.catalog-offers-switcher .catalog-offers-axis-current {
	margin-left: 2px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #00349a;
}

/* Образцы покрытия и цвета */
.catalog-offers-switcher .catalog-offers-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.catalog-offers-switcher a.catalog-offers-color {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid #fff;
	border-radius: 50%;
	background-color: #eef2fa;
	background-position: center;
	background-size: cover;
	box-shadow: 0 0 0 1px #d7deec;
	color: #001e29;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: box-shadow .15s ease, transform .15s ease;
}
.catalog-offers-switcher a.catalog-offers-color:hover {
	box-shadow: 0 0 0 2px #00349a;
	transform: translateY(-1px);
}
.catalog-offers-switcher a.catalog-offers-color--active,
.catalog-offers-switcher a.catalog-offers-color--active:hover {
	box-shadow: 0 0 0 2px #00349a;
	transform: none;
}
.catalog-offers-switcher a.catalog-offers-color--active::after {
	content: '';
	position: absolute;
	right: -3px;
	bottom: -3px;
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #00349a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Остекление, размер: таблетки */
.catalog-offers-switcher .catalog-offers-values {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.catalog-offers-switcher .catalog-offers-value {
	min-width: 56px;
	justify-content: center;
	padding: 10px 14px !important;
	border: 1.5px solid #d7deec;
	border-radius: 8px;
	background: #fff;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.catalog-offers-switcher .catalog-offers-value span {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #001e29;
}
.catalog-offers-switcher .catalog-offers-value:hover {
	border-color: #00349a;
	background: #fff;
}
.catalog-offers-switcher .catalog-offers-value:has(input:checked) {
	border-color: #00349a;
	background: #00349a;
	box-shadow: 0 2px 8px rgba(0, 52, 154, .25);
}
.catalog-offers-switcher .catalog-offers-value input:checked + span {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}
.catalog-offers-switcher .catalog-offers-value input:focus-visible ~ span {
	outline: 2px solid #fe9900;
	outline-offset: 4px;
}

.catalog-offers-switcher .catalog-offers-note,
.catalog-offers-switcher .catalog-offers-hint {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #6b7a88;
}
.catalog-offers-switcher .catalog-offers-selection {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #001e29;
}
.catalog-offers-switcher .catalog-offers-stock {
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 575.98px) {
	.catalog-offers-switcher { padding: 16px 14px 6px; }
	.catalog-offers-switcher a.catalog-offers-color { width: 38px; height: 38px; }
	.catalog-offers-switcher .catalog-offers-value { padding: 10px 12px !important; }
}

/* Строка «Артикул:» у предложений без артикула не показывается (раньше пустая строка висела до загрузки скрипта) */
.catalog-offers-articul:has(.catalog-offers-articul-value:empty) { display: none; }
