/**
 * Сравнение товаров: иконка в шапке, кнопки на карточках, таблица.
 */

.ekl .ekl-compare-link {
	position: relative;
}

.ekl .ekl-compare-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--cyan, #0AA2C0);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.ekl .ekl-compare-count[hidden] {
	display: none;
}

/* Кнопка на карточке */
.ekl .card-compare {
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 4;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #D6DEE8;
	border-radius: 8px;
	background: rgba(255, 255, 255, .92);
	color: #1E3240;
	display: grid;
	place-items: center;
	cursor: pointer;
	opacity: .85;
	transition: opacity .15s, background .15s, border-color .15s, color .15s;
}

.ekl .card-compare:hover,
.ekl .card-compare:focus-visible,
.ekl .card-compare.is-active {
	opacity: 1;
	background: #fff;
	border-color: var(--cyan, #0AA2C0);
	color: var(--cyan-d, #0C7C93);
}

/* Кнопка на странице товара */
.ekl .ekl-compare-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 13px;
}

.ekl .ekl-compare-btn.is-active {
	border-color: var(--cyan, #0AA2C0);
	color: var(--cyan-d, #0C7C93);
}

/* Страница сравнения */
.ekl .ekl-compare {
	margin-top: 8px;
}

.ekl .ekl-compare-scroll {
	overflow-x: auto;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 12px;
}

.ekl .ekl-compare table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	background: #fff;
}

.ekl .ekl-compare th,
.ekl .ekl-compare td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line, #DBE3EC);
	vertical-align: top;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: left;
}

.ekl .ekl-compare thead th {
	vertical-align: top;
	background: #F7F9FC;
}

.ekl .ekl-compare tbody th,
.ekl .ekl-compare tfoot th {
	width: 180px;
	color: var(--muted, #6B7C90);
	font-weight: 500;
	background: #FBFCFE;
}

.ekl .ekl-compare tbody tr.is-diff td {
	background: #FFF9E8;
}

.ekl .ekl-compare tbody tr.is-diff td:first-of-type {
	box-shadow: inset 3px 0 0 #F2B01E;
}

.ekl .ekl-compare-head {
	position: relative;
	display: grid;
	gap: 8px;
	min-width: 160px;
}

.ekl .ekl-compare-remove {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 26px;
	height: 26px;
	border: 1px solid #D6DEE8;
	border-radius: 50%;
	background: #fff;
	color: #6B7C90;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.ekl .ekl-compare-remove:hover {
	color: #A12626;
	border-color: #E7B4B4;
}

.ekl .ekl-compare-thumb {
	display: grid;
	place-items: center;
	height: 120px;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 8px;
	background: #fff;
}

.ekl .ekl-compare-thumb img {
	max-width: 100%;
	max-height: 110px;
	object-fit: contain;
}

.ekl .ekl-compare-name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--navy, #08222B);
	text-decoration: none;
}

.ekl .ekl-compare-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--navy, #08222B);
}

.ekl .ekl-compare-stock {
	font-size: 12px;
	color: #1B7A45;
}

.ekl .ekl-compare-actions {
	display: grid;
	gap: 8px;
}

.ekl .ekl-compare-actions .btn {
	width: 100%;
	justify-content: center;
	font-size: 13px;
}

.ekl .ekl-compare-ask {
	font-size: 13px;
	color: var(--muted, #6B7C90);
}

.ekl .ekl-compare-note {
	margin-top: 10px;
	font-size: 12.5px;
	color: var(--muted, #6B7C90);
}

.ekl .ekl-compare-empty {
	padding: 28px;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 12px;
	background: #F7F9FC;
	color: #3A4A5E;
}

.ekl .ekl-compare-empty p {
	margin: 0 0 14px;
}

.ekl .ekl-compare-warning {
	margin-bottom: 12px;
	padding: 10px 14px;
	border: 1px solid #F0D9A8;
	border-radius: 9px;
	background: #FFF9E8;
	color: #7A5A10;
	font-size: 13px;
	line-height: 1.45;
}

/* Запасные стили тоста, если AJAX-корзина выключена. */
.ekl .ekl-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 360px;
	padding: 14px 16px;
	background: var(--navy, #08222B);
	color: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 44px rgba(8, 34, 43, .28);
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	z-index: 200;
}

.ekl .ekl-toast.is-visible {
	opacity: 1;
	transform: none;
}

.ekl .ekl-mob-compare {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 10px;
	background: #fff;
	color: var(--navy, #08222B);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.ekl .ekl-mob-compare span {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--cyan, #0AA2C0);
	color: #fff;
	font-size: 11px;
	line-height: 20px;
	text-align: center;
}

.ekl .ekl-mob-compare span[hidden] {
	display: none;
}

@media (max-width: 1024px) {
	.ekl .ekl-compare-link {
		display: none;
	}
}
