/* Сравнение товаров (proxcards) */

/* Ссылка в шапке */
.compare_holder {
	margin-right: 28px;
}
.compare_header_link {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	color: #000;
	text-decoration: none;
	padding-right: 26px;
}
.compare_header_link:hover {
	color: #0e8ce4;
}
.compare_header_link i {
	margin-right: 6px;
	color: #0e8ce4;
}
.compare_header_link .compare_count {
	display: none;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	min-width: 20px;
	height: 20px;
	background: #0e8ce4;
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	line-height: 20px;
	text-align: center;
	padding: 0 5px;
}

/* Кнопка в карточке товара */
.product_compare {
	margin-top: 16px;
}
.comparison-toggle {
	display: inline-block;
	padding: 8px 16px;
	font-size: 13px;
	color: #0e8ce4;
	border: 1px solid #0e8ce4;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
	transition: all 200ms ease;
	background: transparent;
}
.comparison-toggle:hover {
	background: #0e8ce4;
	color: #fff;
}
.comparison-toggle.is-active {
	background: #0e8ce4;
	color: #fff;
}

/* Таблица сравнения */
.compare-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-top: 10px;
	background: #fff;
}
.compare-table col.compare-col-label,
.compare-remove-table col.compare-col-label {
	width: 25%;
}
.compare-table th,
.compare-table td {
	border: 1px solid #e5e5e5;
	padding: 10px 14px;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
}
.compare-table thead th {
	background: #fafafa;
	text-align: center;
}
.compare-table thead th a {
	color: #000;
	font-weight: 600;
}
.compare-table thead th a:hover {
	color: #0e8ce4;
}
.compare-table .compare-price {
	margin-top: 6px;
	font-weight: 500;
	color: #000;
}
.compare-table tbody th {
	width: 25%;
	background: #fafafa;
	font-weight: 600;
	color: #333;
}
.compare-table tbody td {
	color: #555;
}
.compare-empty {
	color: #999;
	font-style: italic;
	padding: 20px 0;
}

/* Шапка: вертикальный блок «Сравнение + Избранное» */
.compare_fav_block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	margin-right: 28px;
}
.compare_fav_block .compare_holder {
	margin-right: 0;
	margin-bottom: 2px;
}
.compare_fav_block .compare_header_link i,
.favorites_header_link i {
	width: 20px;
	text-align: center;
}
.favorites_holder {
	display: block;
}
.favorites_header_link {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	color: #000;
	text-decoration: none;
	line-height: 1.4;
}
.favorites_header_link:hover {
	color: #0e8ce4;
}
.favorites_header_link i {
	margin-right: 6px;
	color: #e0245e;
}

/* Шапка: ссылки «Вход / Личный кабинет» */
.user_links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-right: 28px;
}
.user_link {
	font-size: 14px;
	color: #000;
	text-decoration: none;
	line-height: 1.5;
}
.user_link:hover {
	color: #0e8ce4;
}
.user_link + .user_link {
	margin-top: 2px;
}

/* Шапка: компактные отступы и без переносов в блоке ЛК */
.compare_fav_block {
	margin-right: 26px;
}
.user_links {
	margin-right: 16px;
}
.user_link {
	white-space: nowrap;
}

/* Панель кнопок удаления над таблицей сравнения */
.compare-remove-bar {
	margin-bottom: 8px;
}
.compare-remove-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border: none;
}
.compare-remove-table td {
	border: none;
	padding: 0;
	text-align: center;
}
.compare-remove-spacer {
	width: 25%;
}
.compare-remove {
	display: inline-block;
	padding: 4px 14px;
	font-size: 13px;
	color: #e0245e;
	border: 1px solid #e0245e;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: all 150ms ease;
}
.compare-remove:hover {
	background: #e0245e;
	color: #fff;
}

/* Переключатель характеристик: все / различающиеся */
.compare-filter {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}
.compare-filter-btn {
	padding: 5px 16px;
	font-size: 13px;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: all 150ms ease;
}
.compare-filter-btn:hover {
	border-color: #0e8ce4;
	color: #0e8ce4;
}
.compare-filter-btn.is-active {
	background: #0e8ce4;
	border-color: #0e8ce4;
	color: #fff;
}
.compare-table tbody tr.compare-row-hidden {
	display: none;
}

/* Страница сравнения: верхний отступ контейнера */
.single_post:has(.compare-wrap) {
	padding-top: 15px;
}
