.rt-compare-button {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	line-height: inherit;
	text-decoration: none;
}

.rt-compare-button.is-active {
	color: var(--color-primary, #2f8f46);
}

.product-card__action.rt-compare-button.is-active {
	color: var(--color-primary, #2f8f46);
}

.single-product-toolbar__action.rt-compare-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rt-compare__toolbar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.rt-compare__count {
	margin: 0;
	color: var(--gray-40, #888);
	font-size: 14px;
	line-height: 1.4;
}

.rt-compare__clear,
.rt-compare-bar__clear {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gray-40, #888);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rt-compare__clear:hover,
.rt-compare-bar__clear:hover {
	color: #c0392b;
}

.rt-compare__scroll {
	overflow-x: auto;
	margin: 0 -4px;
	padding: 0 4px;
}

.rt-compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	background: var(--white, #fff);
}

.rt-compare-table th,
.rt-compare-table td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	vertical-align: top;
	text-align: left;
	font-size: 14px;
	line-height: 1.45;
}

.rt-compare-table thead th {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	min-width: 180px;
	background: var(--white, #fff);
}

.rt-compare-table__label {
	position: sticky;
	left: 0;
	z-index: 2;
	width: 140px;
	min-width: 120px;
	background: var(--white, #fff);
	color: var(--color-title, #111);
	font-weight: 700;
}

.rt-compare-head {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 8px;
}

.rt-compare-head__remove {
	appearance: none;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--white, #fff);
	color: var(--gray-50, #888);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.rt-compare-head__remove:hover {
	color: #c0392b;
}

.rt-compare-head__media {
	display: block;
	width: 100%;
	max-width: 160px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: var(--white-97, #f4f4f4);
}

.rt-compare-head__image,
.rt-compare-head__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rt-compare-head__title {
	color: var(--color-title, #111);
	font-family: var(--primary-font, inherit);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.rt-compare-head__title:hover {
	color: var(--color-primary, #2f8f46);
}

.rt-compare-head__price {
	color: var(--color-primary, #2f8f46);
	font-family: var(--entities-font, inherit);
	font-size: 16px;
	font-weight: 800;
}

.rt-compare-table__cart {
	white-space: nowrap;
}

.rt-compare__empty[hidden],
.rt-compare__scroll[hidden],
.rt-compare__toolbar[hidden] {
	display: none !important;
}

.account-page .rt-compare__empty,
.rt-compare__empty {
	display: block;
	width: 100%;
	margin: 0;
	padding: 20px;
	border: 1px dashed rgba(0, 0, 0, 0.12);
	border-radius: 16px;
	background: transparent;
	color: var(--gray-40, #888);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.account-page .rt-compare__empty .compare-page__empty-icon {
	display: none;
}

.rt-compare-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(10px);
}

.rt-compare-bar[hidden] {
	display: none !important;
}

body.rt-compare-bar-open {
	padding-bottom: 96px;
}

.rt-compare-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.rt-compare-bar__count {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-title, #111);
}

.rt-compare-bar__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rt-compare-bar__item {
	position: relative;
}

.rt-compare-bar__thumb {
	display: block;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--white-97, #f4f4f4);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.rt-compare-bar__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rt-compare-bar__remove {
	appearance: none;
	position: absolute;
	top: -6px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--white, #fff);
	color: var(--gray-50, #888);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	line-height: 1;
}

.rt-compare-bar__notice {
	flex: 1 1 100%;
	margin: 0;
	color: #c0392b;
	font-size: 13px;
	font-weight: 600;
}

.rt-compare-bar__notice[hidden] {
	display: none !important;
}

.rt-compare-bar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-inline-start: auto;
}

@media (min-width: 720px) {
	.rt-compare-bar__notice {
		flex: 1 1 auto;
	}
}
