/* =========================================================
   Button: kw-product-compare-btn
   ========================================================= */

.kw-product-compare-btn {
	width: fit-content;
	font-size: 14px;
	font-weight: 500;
	background: transparent;
	color: #5C5D60;
	padding: 0px;
	margin: 0 auto;
	min-height: unset;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: none;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s;
	line-height: 1.3;
}

.kw-product-compare-btn:before {
	content: '';
	background: url(../../assets/compare.svg) no-repeat center / contain;
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
}

.kw-product-compare-btn:hover {
	color: #222;
}

.kw-product-compare-btn--active {
	color: #222;
	font-weight: 600;
	font-size: 12px;
	text-decoration: underline;
}

.kw-product-compare-btn--active.kw-product-compare-btn:before {
	display: none;
}

/* =========================================================
   Bar: kw-product-compare-bar
   ========================================================= */

.kw-product-compare-bar {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 30px;
	border-bottom: 1px solid #CFCFCF;
}

.kw-product-compare-bar--empty {
	display: none;
}

.kw-product-compare-bar__heading {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.kw-product-compare-bar__heading-icon {
	background: url(../../assets/compare.svg) no-repeat center / contain;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

.kw-product-compare-bar__heading-text {
	display: flex;
	flex-direction: column;
}

.kw-product-compare-bar__title {
	margin: 0;
	white-space: nowrap;
	color: #222;
	font-weight: 600;
}

.kw-product-compare-bar__clear {
	font-size: 13px;
	color: #5C5D60;
	text-decoration: underline;
	white-space: nowrap;
	text-align: left;
}

.kw-product-compare-bar__clear:hover {
	color: #222;
}

.kw-product-compare-bar__pills {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	overflow: auto;
	padding: 2px 0;
}

.kw-product-compare-bar__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border: 1.03px solid #00000030;
	border-radius: 10px;
	background: #fff;
	white-space: nowrap;
}

.kw-product-compare-bar__pill-title {
	font-size: 15px;
	font-weight: 700;
	color: #5C5D60;
	line-height: 1;
}

.kw-product-compare-bar__pill-remove {
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	opacity: .7;
}

.kw-product-compare-bar__pill-remove:hover {
	opacity: 1;
}

.kw-product-compare-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 10px;
	background: #222;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.kw-product-compare-bar__btn:hover {
	filter: brightness(.95);
	color: #FFF;
}

/* =========================================================
   Table: kw-product-compare-table
   ========================================================= */

#compare {
	border-radius: 17px;
	margin-bottom: 40px;
}

#compare .kw-product-compare-table {
	overflow: auto;
}

#compare .kw-product-compare-table .kw-product-compare-table__wrap {
	width: fit-content;
}

.kw-product-compare-table {
	width: 100%;
	margin-top: 24px;
}

.kw-product-compare-table__loading,
.kw-product-compare-table__empty {
	padding: 18px;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #fff;
}

.kw-product-compare-table__products {
	display: grid;
	grid-template-columns: repeat(var(--kw-cols), minmax(220px, 1fr));
	gap: 22px;
	align-items: start;
}

.kw-product-compare-table__product {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.kw-product-compare-table__product-img {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.kw-product-compare-table__product-img img {
	width: 100%;
	height: auto;
	display: block;
}

.kw-product-compare-table__remove {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, .15);
	background: #fff;
	cursor: pointer;
	line-height: 1;
	font-size: 18px;
	opacity: .9;
	background-image: url(../../assets/close.svg);
	background-position: center;
	background-size: 15px;
	background-repeat: no-repeat;
}

.kw-product-compare-table__remove:hover {
	opacity: 1;
}

.kw-product-compare-table__rating {
	display: flex;
	align-items: center;
	justify-content: center;
}

.kw-product-compare-table__title {
	font-weight: 700;
	font-size: 16px;
	color: #39383D;
	text-decoration: none;
	line-height: 1.25;
	text-align: center;
}

.kw-product-compare-table__title:hover {
	text-decoration: underline;
}

.kw-product-compare-table__price {
	font-weight: 700;
}

.kw-product-compare-table__price del {
	opacity: .45;
	margin-left: 6px;
}

.kw-product-compare-table__price ins {
	text-decoration: none;
}

.kw-product-compare-table__specs {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.kw-product-compare-table__spec-title {
	font-weight: 700;
	color: #111;
	margin-bottom: 10px;
	position: sticky;
	left: 0;
	width: fit-content;
}

.kw-product-compare-table__spec-values {
	display: grid;
	grid-template-columns: repeat(var(--kw-cols), minmax(220px, 1fr));
	background: #f3f3f3;
	border-radius: 12px;
	gap: 22px;
	width: fit-content;
	min-width: 100%;
}

.kw-product-compare-table__cell-inner {
	padding: 16px 16px;
	min-height: 48px;
	display: flex;
	align-items: center;
	position: relative;
}

.kw-product-compare-table__cell-inner:after {
	content: '';
	position: absolute;
	background: #27282A36;
	top: 10px;
	bottom: 10px;
	right: -11px;
	width: 1px;
}

.kw-product-compare-table__cell:last-child .kw-product-compare-table__cell-inner:after {
	display: none;
}

/* =========================================================
   Popup close: kw-product-compare-popup
   ========================================================= */

.kw-product-compare-popup__close {
	cursor: pointer;
}

.mfp-wrap:has(.kw-product-compare-popup__close) .mfp-close {
	display: none;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 849px) {
	.kw-product-compare-bar {
		border: 1.03px solid #00000030;
		justify-content: space-between;
		border-radius: 10px;
		padding: 5px;
		padding-left: 10px;
	}

	.kw-product-compare-bar__pills {
		display: none;
	}
}
