[data-bitshop-compare-link] { position: relative; }
.bitshop-compare-page { padding: 0 0 56px; }
.bitshop-compare-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.bitshop-compare-heading h1 { margin: 0; color: var(--bitshop-graphite); font-size: clamp(28px, 3vw, 42px); font-weight: 900; letter-spacing: -.035em; }
.bitshop-compare-clear.btn-primary { flex: 0 0 auto; min-height: 42px; padding: 10px 18px; border-color: var(--bitshop-cyan-dark); border-radius: 10px; background-color: var(--bitshop-white); color: var(--bitshop-cyan-dark); font-size: 13px; font-weight: 800; cursor: pointer; }
.bitshop-compare-clear.btn-primary:hover, .bitshop-compare-clear.btn-primary:focus { border-color: var(--bitshop-cyan-dark); background-color: var(--bitshop-cyan-soft); color: var(--bitshop-cyan-dark); box-shadow: none; }
.bitshop-compare-clear.btn-primary:not(:disabled):not(.disabled):active { border-color: var(--bitshop-cyan-dark); background-color: var(--bitshop-cyan-soft); color: var(--bitshop-cyan-dark); box-shadow: none; }
.bitshop-compare-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.bitshop-compare-tab { display: inline-flex; min-height: 42px; padding: 10px 15px; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; background: #f3f4f5; color: var(--bitshop-graphite-muted); font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.bitshop-compare-tab span { display: grid; min-width: 21px; height: 21px; padding: 0 6px; place-items: center; border-radius: 999px; background: #e3e5e7; color: var(--bitshop-graphite-muted); font-size: 11px; }
.bitshop-compare-tab:hover, .bitshop-compare-tab:focus-visible { border-color: var(--bitshop-cyan-dark); color: var(--bitshop-graphite); outline: none; }
.bitshop-compare-tab.is-active { border-color: var(--bitshop-cyan-dark); background: #dedfe2; color: var(--bitshop-graphite); }
.bitshop-compare-tab.is-active span { background: var(--bitshop-white); color: var(--bitshop-graphite); }
.bitshop-compare-panel[hidden] { display: none; }
.bitshop-compare-scroll { width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--bitshop-border); border-radius: 16px; background: var(--bitshop-white); scrollbar-width: thin; }
.bitshop-compare-table { width: calc(180px + var(--bitshop-compare-count) * 196px); min-width: calc(180px + var(--bitshop-compare-count) * 196px); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.bitshop-compare-table th, .bitshop-compare-table td { box-sizing: border-box; width: 196px; padding: 15px 14px; border-bottom: 1px solid var(--bitshop-border); border-left: 1px solid var(--bitshop-border); color: var(--bitshop-graphite); font-size: 13px; line-height: 1.45; vertical-align: top; word-break: break-word; }
.bitshop-compare-table tr:last-child th, .bitshop-compare-table tr:last-child td { border-bottom: 0; }
.bitshop-compare-table th:first-child, .bitshop-compare-table td:first-child { width: 180px; border-left: 0; }
.bitshop-compare-table thead th:not(.bitshop-compare-label-cell), .bitshop-compare-table tbody td { position: relative; z-index: 1; }
.bitshop-compare-table tbody th, .bitshop-compare-table thead .bitshop-compare-label-cell { position: sticky; left: 0; z-index: 20; background: #f6f7f8; color: var(--bitshop-graphite-muted); font-size: 12px; font-weight: 800; text-align: left; isolation: isolate; }
.bitshop-compare-table thead th { padding: 0; background: var(--bitshop-white); vertical-align: top; }
.bitshop-compare-table thead .bitshop-compare-label-cell { z-index: 30; padding: 20px 14px; color: var(--bitshop-graphite); font-size: 13px; }
.bitshop-compare-card-shell, .bitshop-compare-card-shell .product-item { position: relative; width: 195px; height: 195px; min-height: 195px; padding: 0; border: 0; border-radius: 0; background: var(--bitshop-white); }
.bitshop-compare-card-shell .product-item-image-wrapper { display: grid; width: 100%; height: 195px !important; margin: 0; padding: 0 !important; place-items: center; border: 0; border-radius: 0; background: var(--bitshop-white); overflow: hidden; }
.bitshop-compare-card-shell .product-item-image-wrapper::after { display: none; }
.bitshop-compare-card-shell picture { display: contents; }
.bitshop-compare-card-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.bitshop-compare-no-photo { color: var(--bitshop-graphite-muted); font-size: 12px; }
.bitshop-compare-card-shell .bitshop-product-availability { padding-inline: 14px; }
.bitshop-compare-card-shell .bitshop-catalog-compare, .bitshop-compare-card-shell .bitshop-catalog-favorite { top: 12px; width: 38px; height: 38px; padding: 7px; }
.bitshop-compare-card-shell .bitshop-catalog-compare { left: 12px; }
.bitshop-compare-card-shell .bitshop-catalog-favorite { right: 12px; }
.bitshop-compare-card-shell .product-item-button-container { top: auto !important; right: 12px !important; bottom: 12px !important; }
.bitshop-compare-name-row td a { color: var(--bitshop-graphite); font-weight: 800; text-decoration: none; }
.bitshop-compare-name-row td a:hover { color: var(--bitshop-cyan-dark); }
.bitshop-compare-important-row td strong { color: var(--bitshop-cyan-dark); font-size: 16px; }
.bitshop-compare-price-list { display: grid; gap: 5px; }
.bitshop-compare-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bitshop-compare-price-row span { color: var(--bitshop-graphite-muted); font-size: 12px; font-weight: 700; }
.bitshop-compare-price-row strong { flex: 0 0 auto; white-space: nowrap; }
.bitshop-compare-confirm { position: fixed; inset: 0; z-index: 10000; display: grid; padding: 20px; place-items: center; }
.bitshop-compare-confirm[hidden] { display: none; }
.bitshop-compare-confirm-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(24, 27, 35, .38); }
.bitshop-compare-confirm-dialog { position: relative; z-index: 1; width: min(100%, 430px); padding: 30px; border-radius: 16px; background: var(--bitshop-white); text-align: center; }
.bitshop-compare-confirm-dialog h2 { margin: 0 30px 8px; color: var(--bitshop-graphite); font-size: 23px; font-weight: 900; }
.bitshop-compare-confirm-dialog p { margin: 0 0 24px; color: var(--bitshop-graphite-muted); }
.bitshop-compare-confirm-close { position: absolute; top: 12px; right: 14px; padding: 4px 8px; border: 0; background: transparent; color: var(--bitshop-graphite-muted); font-size: 28px; cursor: pointer; }
.bitshop-compare-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bitshop-compare-confirm-submit, .bitshop-compare-confirm-cancel { min-height: 46px; padding: 11px 18px; border-radius: 9px; font: inherit; font-weight: 800; cursor: pointer; }
.bitshop-compare-confirm-submit { border: 1px solid var(--bitshop-graphite); background: var(--bitshop-graphite); color: var(--bitshop-white); }
.bitshop-compare-confirm-cancel { border: 1px solid var(--bitshop-border); background: var(--bitshop-white); color: var(--bitshop-graphite); }
body.bitshop-compare-modal-open { overflow: hidden; }

@media (max-width: 767px) {
	.bitshop-compare-page { padding-bottom: 28px; }
	.bitshop-compare-heading { display: block; margin-bottom: 20px; }
	.bitshop-compare-heading h1 { font-size: 28px; }
	.bitshop-compare-clear { margin-top: 10px; }
	.bitshop-compare-scroll { margin-right: -16px; border-right: 0; border-radius: 14px 0 0 14px; }
	.bitshop-compare-table { width: calc(128px + var(--bitshop-compare-count) * 184px); min-width: calc(128px + var(--bitshop-compare-count) * 184px); }
	.bitshop-compare-table th, .bitshop-compare-table td { width: 184px; padding: 13px 11px; }
	.bitshop-compare-card-shell .bitshop-product-availability { padding-inline: 11px; }
	.bitshop-compare-table th:first-child, .bitshop-compare-table td:first-child { width: 128px; }
	.bitshop-compare-card-shell, .bitshop-compare-card-shell .product-item, .bitshop-compare-card-shell .product-item-image-wrapper { width: 183px; height: 183px !important; min-height: 183px; }
	.bitshop-compare-confirm-dialog { padding: 26px 20px 20px; }
}

.bitshop-compare-table tbody td {
	background: var(--bitshop-white);
}
.bitshop-compare-table .bitshop-compare-different-row > td {
	background: var(--bitshop-color-comparison-difference);
}

.bitshop-compare-heading-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
}
.bitshop-compare-heading-actions .bitshop-compare-clear { margin: 0; }
.bitshop-compare-differences-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	margin: 0;
	color: var(--bitshop-graphite);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.bitshop-compare-differences-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.bitshop-compare-switch-track {
	position: relative;
	flex: 0 0 42px;
	width: 42px;
	height: 24px;
	border: 1px solid var(--bitshop-border);
	border-radius: 999px;
	background: var(--bitshop-interactive-soft);
	transition: background-color .16s ease, border-color .16s ease;
}
.bitshop-compare-switch-track::after {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bitshop-white);
	content: "";
	transition: transform .16s ease;
}
.bitshop-compare-differences-toggle input:checked + .bitshop-compare-switch-track {
	border-color: var(--bitshop-cyan-dark);
	background: var(--bitshop-cyan-dark);
}
.bitshop-compare-differences-toggle input:checked + .bitshop-compare-switch-track::after { transform: translateX(18px); }
.bitshop-compare-differences-toggle input:focus-visible + .bitshop-compare-switch-track {
	outline: 2px solid var(--bitshop-cyan-dark);
	outline-offset: 3px;
}
.bitshop-compare-page.is-differences-only .bitshop-compare-table tbody tr:not(.bitshop-compare-different-row) { display: none; }
@media (max-width: 767px) {
	.bitshop-compare-heading-actions { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.bitshop-compare-switch-track, .bitshop-compare-switch-track::after { transition: none; }
}
