/* ==========================================================================
   SmartCompare — 商品比較 page (templates/page-compare.html, inc/compare.php).
   Desktop: label column + up to 4 product columns.
   Phones (< 600px): labels become captions above each row, product columns
   are 2 per screen and scroll sideways with snap; names and prices stay
   visible in a bar at the top while the table scrolls.
   ========================================================================== */

.sc-cmp {
	--cmp-label: 168px;
	--cmp-pad: 0.75rem;
	position: relative;
	margin-top: 0 !important;
}

/* Lead under the page title (the page content, editable in the block editor). */
.sc-compare-intro {
	margin-top: 0.75rem;
	color: var(--sc-c-secondary);
	font-size: var(--sc-fs-small);
	line-height: 1.9;
}

.sc-compare-intro > * {
	max-width: 46em;
	margin: 0 !important;
}

.sc-compare-intro > * + * {
	margin-top: 0.5em !important;
}

.sc-compare-intro:empty {
	display: none;
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */

.sc-cmp__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2rem;
	padding: 0 0 1rem;
	border-bottom: 1px solid var(--sc-c-border-light);
}

.sc-cmp__count {
	margin: 0;
	font-size: var(--sc-fs-small);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.sc-cmp__count-max {
	margin-left: 0.25em;
	color: var(--sc-c-secondary);
	font-weight: 400;
	font-size: 0.75rem;
}

.sc-cmp__opts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.sc-cmp__opts[hidden],
.sc-cmp [data-cmp-js][hidden] {
	display: none;
}

.sc-cmp__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
	margin-left: auto;
}

.sc-cmp__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sc-c-main);
	font: inherit;
	font-size: var(--sc-fs-x-small);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-decoration-color: var(--sc-c-main-accent);
	text-underline-offset: 4px;
	cursor: pointer;
	white-space: nowrap;
}

.sc-cmp__link:hover {
	text-decoration-color: currentColor;
}

.sc-cmp__link[hidden] {
	display: none;
}

.sc-cmp__more {
	text-decoration: none;
	padding: 0 0.9rem;
	border: 1px solid var(--sc-c-main);
	border-radius: var(--wp--custom--radius--control);
}

.sc-cmp__more:hover {
	background: var(--sc-c-main);
	color: var(--sc-c-white);
}

.sc-cmp__more-left {
	color: inherit;
	opacity: 0.75;
	font-weight: 400;
}

.sc-cmp :focus-visible {
	outline: 2px solid var(--sc-c-main);
	outline-offset: 2px;
}

/* Switches (checkbox role="switch") */
.sc-cmp .sc-switch {
	position: relative;
	display: inline-flex;
	width: auto;
	margin: 0;
	align-items: center;
	gap: 0.6rem;
	min-height: 40px;
	font-size: var(--sc-fs-x-small);
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
	user-select: none;
}

.sc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.sc-switch__track {
	position: relative;
	flex: none;
	width: 36px;
	height: 20px;
	border-radius: var(--wp--custom--radius--pill);
	background: #8C887F; /* off: 3.4:1 on the page background */
	transition: background-color var(--wp--custom--transition);
}

.sc-switch__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--sc-c-white);
	box-shadow: 0 1px 2px rgba(28, 27, 25, 0.25);
	transition: transform var(--wp--custom--transition);
}

.sc-switch input:checked + .sc-switch__track {
	background: var(--sc-c-main);
}

.sc-switch input:checked + .sc-switch__track::after {
	transform: translateX(16px);
}

.sc-switch input:focus-visible + .sc-switch__track {
	outline: 2px solid var(--sc-c-main);
	outline-offset: 2px;
}

.sc-switch input:disabled {
	cursor: not-allowed;
}

.sc-switch input:disabled ~ * {
	opacity: 0.5;
}

/* One product: nothing to compare yet, the hint below says so. */
.sc-cmp.is-single .sc-cmp__opts {
	display: none !important;
}

/* Notices */
.sc-cmp__notice {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--sc-c-tertiary);
	font-size: var(--sc-fs-x-small);
}

.sc-cmp__notice[hidden] {
	display: none;
}

.sc-cmp__notice a {
	color: var(--sc-c-main);
	font-weight: 500;
}

.sc-cmp__notice:focus {
	outline: none;
}

.sc-cmp__notice-text {
	flex: 1 1 22em;
	align-self: center;
	line-height: 1.7;
}

.sc-cmp__notice-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
}

.sc-cmp__notice-btn {
	min-height: 36px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--sc-c-main);
	border-radius: var(--wp--custom--radius--control);
	background: var(--sc-c-main);
	color: var(--sc-c-white);
	font: inherit;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.sc-cmp__notice-btn:hover {
	border-color: var(--sc-c-border-dark);
	background: var(--sc-c-border-dark);
}

.sc-cmp__hint-single {
	display: none;
	margin: 1rem 0 0;
	font-size: var(--sc-fs-small);
}

.sc-cmp.is-single .sc-cmp__hint-single {
	display: block;
}

.sc-cmp__ship {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 1rem 0 1.75rem;
	color: var(--sc-c-secondary);
	font-size: var(--sc-fs-x-small);
	line-height: 1.7;
}

.sc-cmp__ship svg {
	flex: none;
	margin-top: 0.05rem;
	color: var(--sc-c-main);
}

.sc-cmp__all-same {
	margin: 1.25rem 0 0;
	padding: 1rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--sc-c-tertiary);
	font-size: var(--sc-fs-small);
	text-align: center;
}

.sc-cmp__all-same[hidden] {
	display: none;
}

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */

/* Frame: edge fades and ‹ › buttons when columns are hidden to the side. */
.sc-cmp__frame {
	position: relative;
}

.sc-cmp__frame::before,
.sc-cmp__frame::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	width: 36px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.sc-cmp__frame::before {
	left: var(--cmp-label);
	background: linear-gradient(to right, rgba(250, 250, 247, 0.95), rgba(250, 250, 247, 0));
}

.sc-cmp__frame::after {
	right: 0;
	background: linear-gradient(to left, rgba(250, 250, 247, 0.95), rgba(250, 250, 247, 0));
}

.sc-cmp__frame.has-left::before,
.sc-cmp__frame.has-right::after {
	opacity: 1;
}

.sc-cmp__step {
	position: absolute;
	top: var(--cmp-step-top, 120px);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 1px solid var(--sc-c-border-light);
	border-radius: 50%;
	background: var(--sc-c-white);
	box-shadow: var(--sc-sh-soft);
	color: var(--sc-c-main);
	cursor: pointer;
}

.sc-cmp__step[hidden] {
	display: none;
}

.sc-cmp__step:hover {
	border-color: var(--sc-c-main);
}

.sc-cmp__step.is-prev {
	left: calc(var(--cmp-label) + 4px);
}

.sc-cmp__step.is-prev svg {
	transform: rotate(180deg);
}

.sc-cmp__step.is-next {
	right: 4px;
}

.sc-cmp__scroller {
	/* positioned, so screen-reader-only text in off-screen columns is clipped too */
	position: relative;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--cmp-label);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.sc-cmp__scroller:focus-visible {
	outline-offset: 4px;
}

.sc-cmp__table {
	table-layout: fixed;
	width: min(100%, calc(var(--cmp-label) + var(--cmp-n) * 320px));
	min-width: calc(var(--cmp-label) + var(--cmp-n) * 190px);
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: none;
	font-size: var(--sc-fs-small);
	line-height: 1.75;
}

.sc-cmp__table col.sc-cmp__col-label {
	width: var(--cmp-label);
}

.sc-cmp__table th,
.sc-cmp__table td {
	padding: 0.95rem var(--cmp-pad);
	border: 0;
	background: none;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

/* Label column: stays put when the table scrolls sideways. */
.sc-cmp__table .sc-cmp__row > th,
.sc-cmp__table .sc-cmp__corner {
	position: sticky;
	left: 0;
	z-index: 2;
	background: var(--sc-c-base);
}

.sc-cmp__row > th {
	color: var(--sc-c-secondary);
	font-size: var(--sc-fs-x-small);
	font-weight: 500;
	letter-spacing: 0.06em;
}

.sc-cmp__table .sc-cmp__row > * {
	border-top: 1px solid var(--sc-c-border-light);
}

.sc-cmp__table tbody:last-of-type .sc-cmp__row > * {
	border-bottom: 1px solid var(--sc-c-border-light);
}

.sc-cmp__cap {
	display: none;
}

/* Product heads */
.sc-cmp__table thead th,
.sc-cmp__table thead td {
	padding-top: 0;
	padding-bottom: 0;
}

.sc-cmp__media {
	scroll-snap-align: start;
}

.sc-cmp__media-box {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--sc-c-tertiary);
	aspect-ratio: 1 / 1;
}

.sc-cmp__media-link {
	display: block;
	height: 100%;
}

.sc-cmp__media-box img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sc-cmp__media-box:hover img {
	transform: scale(1.03);
}

.sc-cmp__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 0.3em 0.85em;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--sc-c-primary);
	color: var(--sc-c-white);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	pointer-events: none;
}

.sc-cmp__remove {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 1px 4px rgba(28, 27, 25, 0.16);
	color: var(--sc-c-main);
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition);
}

.sc-cmp__remove:hover {
	background: var(--sc-c-main);
	color: var(--sc-c-white);
}

.sc-cmp__name {
	padding-top: 0.9rem !important;
	font-size: var(--sc-fs-small);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.04em;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.sc-cmp__name a {
	color: var(--sc-c-main);
	text-decoration: none;
}

.sc-cmp__name a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Prices: struck-through regular price, vermilion sale price, （税込）. */
.sc-cmp__price {
	padding-top: 0.35rem !important;
	font-size: var(--sc-fs-base);
	font-weight: 500;
	line-height: 1.5;
	font-feature-settings: "tnum" 1;
}

.sc-cmp__price del,
.sc-cmp__float-price del {
	margin-right: 0.4em;
	color: var(--sc-c-secondary);
	font-size: max(12px, 0.8em);
	font-weight: 400;
	text-decoration-thickness: 1px;
}

.sc-cmp__price ins,
.sc-cmp__float-price ins {
	color: var(--sc-c-primary);
	text-decoration: none;
	background: none;
}

.sc-cmp__price .woocommerce-price-suffix,
.sc-cmp__float-price .woocommerce-price-suffix {
	margin-left: 0.15em;
	color: var(--sc-c-secondary);
	font-size: max(12px, 0.72em);
	font-weight: 400;
	white-space: nowrap;
}

.sc-cmp .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Buy */
.sc-cmp__buycell {
	padding-top: 0.9rem !important;
	padding-bottom: 1.5rem !important;
}

.sc-cmp__buy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 44px;
	padding: 0.6em 0.9em;
	border: 1px solid var(--sc-c-main);
	border-radius: var(--wp--custom--radius--control);
	background: var(--sc-c-main);
	color: var(--sc-c-white);
	font-size: var(--sc-fs-x-small);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), border-color var(--wp--custom--transition);
}

.sc-cmp__buy:hover {
	border-color: var(--sc-c-border-dark);
	background: var(--sc-c-border-dark);
	color: var(--sc-c-white);
}

.sc-cmp__buy.is-options,
.sc-cmp__buy.is-external {
	background: var(--sc-c-white);
	color: var(--sc-c-main);
}

.sc-cmp__buy.is-options:hover,
.sc-cmp__buy.is-external:hover {
	background: var(--sc-c-main);
	color: var(--sc-c-white);
}

.sc-cmp__buy.is-disabled {
	border-color: var(--sc-c-tertiary);
	background: var(--sc-c-tertiary);
	color: #6F6B64;
	cursor: not-allowed;
}

.sc-cmp__buy.is-loading {
	opacity: 0.7;
	cursor: progress;
}

.sc-cmp__buy.is-added::before {
	content: "";
	width: 5px;
	height: 9px;
	margin: -3px 0.15em 0 0;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.sc-cmp__cartlink {
	display: block;
	margin-top: 0.6rem;
	color: var(--sc-c-main);
	font-size: 0.75rem;
	font-weight: 500;
	text-align: center;
	text-underline-offset: 3px;
}

/* Values: Japanese words are not split (「グリー／ン」), long runs still wrap. */
.sc-cmp__row td {
	color: var(--sc-c-main);
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.sc-cmp__row td a {
	color: inherit;
	text-decoration-color: var(--sc-c-main-accent);
	text-underline-offset: 4px;
}

.sc-cmp__row td a:hover {
	text-decoration-color: currentColor;
}

.sc-cmp__none {
	color: var(--sc-c-main-accent);
}

.sc-cmp__sub {
	display: block;
	color: var(--sc-c-secondary);
	font-size: 0.75rem;
	line-height: 1.6;
}

.sc-cmp__summary {
	word-break: normal;
	font-size: var(--sc-fs-x-small);
	line-height: 1.85;
}

.sc-cmp__summary p {
	margin: 0;
}

.sc-cmp__summary p + p {
	margin-top: 0.5em;
}

.sc-cmp__stock {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.sc-cmp__stock::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

/* Same colours as the product page: 在庫あり green, 残りわずか vermilion. */
.sc-cmp__stock.is-in {
	color: var(--sc-c-success);
}

.sc-cmp__stock.is-low {
	color: var(--sc-c-primary);
}

.sc-cmp__stock.is-out {
	color: var(--sc-c-secondary);
}

/* 「＋ 商品を追加」 column: wide screens only (see the media query below). */
.sc-cmp__add,
.sc-cmp__addcell {
	display: none;
}

.sc-cmp__add-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	/* one product column wide, whatever the number of free slots it spans */
	width: calc((100% + 2 * var(--cmp-pad)) / var(--cmp-k, 1) - 2 * var(--cmp-pad));
	aspect-ratio: 1 / 1;
	border: 1px dashed var(--sc-c-main-accent);
	border-radius: var(--wp--custom--radius--card);
	color: var(--sc-c-secondary);
	font-size: 0.75rem;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: border-color var(--wp--custom--transition), color var(--wp--custom--transition), background-color var(--wp--custom--transition);
}

.sc-cmp__add-box:hover {
	border-color: var(--sc-c-main);
	background: var(--sc-c-white);
	color: var(--sc-c-main);
}

.sc-cmp__add-plus {
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--sc-c-main);
}

.sc-cmp__add-text {
	color: var(--sc-c-main);
	font-size: var(--sc-fs-x-small);
	font-weight: 500;
	letter-spacing: 0.06em;
}

@media (min-width: 1200px) {
	/* Laid out for the maximum number of products: columns keep one size. */
	.sc-cmp__table {
		width: min(100%, calc(var(--cmp-label) + var(--cmp-cols, var(--cmp-n)) * 320px));
	}

	.sc-cmp__add:not([hidden]),
	.sc-cmp__addcell:not([hidden]) {
		display: table-cell;
	}
}

/* View options */
.sc-cmp__group[hidden],
.sc-cmp.is-diff-only .sc-cmp__group[data-same="1"] {
	display: none;
}

/* 違いをハイライト: rows that differ get a faint band and a dot, rows that
   are the same for every product step back. */
.sc-cmp {
	--cmp-hl: #F5F4EF;
}

.sc-cmp.is-highlight:not(.is-single) .sc-cmp__group[data-same="0"] .sc-cmp__row > * {
	background: var(--cmp-hl);
}

.sc-cmp.is-highlight:not(.is-single) .sc-cmp__group[data-same="0"] .sc-cmp__row > th {
	color: var(--sc-c-main);
}

.sc-cmp.is-highlight:not(.is-single) .sc-cmp__group[data-same="1"] .sc-cmp__row td {
	color: var(--sc-c-secondary);
}

.sc-cmp.is-highlight:not(.is-single) .sc-cmp__group[data-same="0"] .sc-cmp__label::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0.5em 0.15em 0;
	border-radius: 50%;
	background: var(--sc-c-main);
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Sticky names and prices
   -------------------------------------------------------------------------- */

.sc-cmp__float {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 80;
	width: 100%;
	max-width: 100vw;
	overflow: hidden;
	border-bottom: 1px solid var(--sc-c-border-light);
	background: var(--sc-c-base);
	box-shadow: 0 8px 20px rgba(28, 27, 25, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	pointer-events: none;
}

.sc-cmp__float.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sc-cmp__float-inner {
	display: flex;
	will-change: transform;
}

.sc-cmp__float-corner,
.sc-cmp__float-cell {
	flex: none;
	box-sizing: border-box;
}

.sc-cmp__float-cell {
	min-width: 0;
	padding: 0.55rem var(--cmp-pad);
}

.sc-cmp__float-name {
	display: block;
	overflow: hidden;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.04em;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sc-cmp__float-price {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.sc-cmp-empty {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
	text-align: center;
}

.sc-cmp-redirecting .sc-cmp-empty {
	visibility: hidden;
}

.sc-cmp-empty__icon {
	color: var(--sc-c-secondary);
}

.sc-cmp-empty__title {
	margin: 1.25rem 0 0;
	font-size: var(--sc-fs-medium);
	letter-spacing: 0.06em;
}

.sc-cmp-empty__note {
	margin: 0.75rem 0 0;
	color: var(--sc-c-secondary);
	font-size: var(--sc-fs-small);
}

.sc-cmp-empty__text {
	word-break: keep-all;
	overflow-wrap: anywhere;
	text-wrap: balance;
	margin: 0.75rem auto 0;
	max-width: 32em;
	color: var(--sc-c-secondary);
	font-size: var(--sc-fs-small);
	line-height: 1.9;
}

.sc-cmp-empty__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.5rem;
	margin: 1.75rem 0 0;
}

.sc-cmp-empty__restore {
	color: var(--sc-c-main);
	font-size: var(--sc-fs-small);
	font-weight: 500;
	text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Tablets: a little tighter
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.sc-cmp {
		--cmp-label: 128px;
	}
}

/* --------------------------------------------------------------------------
   Phones: caption rows, 2 columns per screen, sideways scrolling with snap
   -------------------------------------------------------------------------- */

@media (max-width: 599px) {
	.sc-cmp {
		--cmp-label: 0px;
		--cmp-pad: 0.5rem;
		--cmp-gutter: var(--wp--style--root--padding-left, 16px);
		/* two columns per screen with a peek of the next one */
		--cmp-colw: max(140px, calc((100vw - 2 * var(--cmp-gutter) - 28px) / 2 + var(--cmp-pad)));
	}

	.sc-cmp__bar {
		gap: 0.25rem 1rem;
	}

	.sc-cmp__count {
		flex-basis: 100%;
	}

	.sc-cmp__opts {
		flex-basis: 100%;
		gap: 0 1.25rem;
	}

	.sc-cmp__links {
		margin-left: 0;
		gap: 0.25rem 1.25rem;
	}

	.sc-cmp__frame {
		margin-left: calc(-1 * var(--cmp-gutter));
		margin-right: calc(-1 * var(--cmp-gutter));
	}

	.sc-cmp__step {
		display: none !important;
	}

	.sc-cmp__frame::after {
		width: 24px;
	}

	.sc-cmp__scroller {
		padding: 0 calc(var(--cmp-gutter) - var(--cmp-pad));
		scroll-padding-left: calc(var(--cmp-gutter) - var(--cmp-pad));
		scrollbar-width: none;
	}

	.sc-cmp__scroller::-webkit-scrollbar {
		display: none;
	}

	.sc-cmp__table {
		width: calc(var(--cmp-n) * var(--cmp-colw));
		min-width: 0;
	}

	/* The label column keeps its cells (for screen readers) but takes no space. */
	.sc-cmp__table .sc-cmp__row > th,
	.sc-cmp__table .sc-cmp__corner,
	.sc-cmp.is-highlight:not(.is-single) .sc-cmp__group .sc-cmp__row > th {
		position: static;
		width: 0;
		padding: 0 !important;
		border: 0 !important;
		background: none;
	}

	.sc-cmp__row > th .sc-cmp__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.sc-cmp__cap {
		display: table-row;
	}

	.sc-cmp__cap td {
		padding: 0.85rem var(--cmp-pad) 0.15rem;
		border-top: 1px solid var(--sc-c-border-light);
	}

	.sc-cmp__cap span {
		position: sticky;
		left: var(--cmp-pad);
		display: inline-block;
		color: var(--sc-c-secondary);
		font-size: 0.75rem;
		font-weight: 500;
		letter-spacing: 0.06em;
	}

	.sc-cmp__table .sc-cmp__row > td {
		padding-top: 0.15rem;
		padding-bottom: 0.85rem;
		border-top: 0;
	}

	.sc-cmp__table tbody:last-of-type .sc-cmp__row > td {
		border-bottom: 1px solid var(--sc-c-border-light);
	}

	.sc-cmp.is-highlight:not(.is-single) .sc-cmp__group[data-same="0"] .sc-cmp__cap td {
		background: var(--cmp-hl);
	}

	.sc-cmp.is-highlight:not(.is-single) .sc-cmp__group[data-same="0"] .sc-cmp__cap span::before {
		content: "";
		display: inline-block;
		width: 6px;
		height: 6px;
		margin: 0 0.5em 0.15em 0;
		border-radius: 50%;
		background: var(--sc-c-main);
		vertical-align: middle;
	}

	.sc-cmp__name {
		font-size: 0.8125rem;
	}

	.sc-cmp__price {
		font-size: var(--sc-fs-small);
	}

	.sc-cmp__buy {
		min-height: 42px;
		padding: 0.5em 0.4em;
		font-size: 0.75rem;
		letter-spacing: 0.02em;
	}

	.sc-cmp__remove {
		top: 6px;
		right: 6px;
		width: 32px;
		height: 32px;
	}

	.sc-cmp__badge {
		top: 8px;
		left: 8px;
	}

	.sc-cmp__summary {
		font-size: 0.75rem;
		line-height: 1.8;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-cmp__float,
	.sc-cmp__media-box img {
		transition: none;
	}

	.sc-cmp__scroller {
		scroll-behavior: auto;
	}
}

/* The notices slot takes no room while it is empty. */
.sc-compare-notices:not(:has(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-error, .woocommerce-info)) {
	display: none;
}
