:root {
	--wpc-accent: #00b3e3;
	--wpc-accent-contrast: #ffffff;
	--wpc-border: #d9dde3;
	--wpc-surface: #ffffff;
	--wpc-muted: #667085;
	--wpc-text: #1f2937;
	--wpc-highlight-color: #fff8dc;
	--wpc-radius: 6px;
	--wpc-space: 12px;
}

.wpc-floating-counter {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 999;
}

.wpc-compare-counter {
	align-items: center;
	background: var(--wpc-accent);
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
	color: var(--wpc-accent-contrast);
	display: inline-flex;
	font-weight: 600;
	gap: 8px;
	line-height: 1;
	padding: 11px 15px;
	text-decoration: none;
}

.wpc-compare-counter:hover,
.wpc-compare-counter:focus {
	color: var(--wpc-accent-contrast);
	outline: 2px solid color-mix(in srgb, var(--wpc-accent) 38%, white);
	outline-offset: 2px;
}

.wpc-counter-badge {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	min-width: 24px;
	padding: 5px 7px;
	text-align: center;
}

.wpc-compare-counter.is-pulsing {
	animation: wpc-counter-pulse 680ms ease;
}

@keyframes wpc-counter-pulse {
	0% {
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
		transform: translateY(0) scale(1);
	}
	38% {
		box-shadow: 0 12px 30px color-mix(in srgb, var(--wpc-accent) 36%, transparent);
		transform: translateY(-5px) scale(1.07);
	}
	100% {
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
		transform: translateY(0) scale(1);
	}
}

.wpc-compare-button {
	display: block;
    background-color: var(--white);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: 18px;
    border-color: var(--accent-blue);
    text-transform: uppercase;
    padding: 10px 40px;
    transition: all .3s;
    width: 100%;
}

.wpc-compare-button:hover {
	background: var(--accent-cyan-dark)!important;
    color: var(--badge-blue-dark)!important;
}

.woocommerce-page ul.products li.product .wpc-compare-button {
	font-size: 10px;
}


.wpc-compare-button[title]:hover::after,
.wpc-compare-button[title]:focus-visible::after {
	background: var(--accent-cyan-dark)!important;
    color: var(--badge-blue-dark)!important;
	z-index: 5;
}

.wpc-compare-button.is-added .wpc-compare-icon {
	color: var(--wpc-accent);
	font-size: 15px;
    padding-right: 3px;
}

.wpc-single-compare {
	margin: 12px 0;
}

.wpc-compare-page {
	color: var(--wpc-text);
	margin: 0 auto;
	max-width: 1180px;
}

.wpc-compare-header {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.wpc-compare-title {
	margin: 0;
}

.wpc-compare-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.wpc-differences-toggle {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.wpc-empty-state {
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	padding: 22px;
}

.wpc-tabs {
	border-bottom: 1px solid var(--wpc-border);
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
	overflow-x: auto;
}

.wpc-tab {
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	color: var(--wpc-muted);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 10px 12px;
}

.wpc-tab.is-active {
	border-color: var(--wpc-accent);
	color: var(--wpc-text);
}

.wpc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wpc-compare-table {
	background: var(--wpc-surface);
	border-collapse: separate;
	border-spacing: 0;
	min-width: 760px;
	table-layout: fixed;
	width: 100%;
}

.wpc-compare-table th,
.wpc-compare-table td {
	border-bottom: 1px solid var(--wpc-border);
	padding: 13px;
	text-align: left;
	vertical-align: top;
}

.wpc-compare-table thead th {
	background: var(--wpc-surface);
	position: sticky;
	top: 0;
	z-index: 2;
}

.wpc-attribute-heading,
.wpc-attribute-name {
	background: var(--wpc-surface);
	font-weight: 700;
	left: 0;
	position: sticky;
	width: 180px;
	z-index: 3;
}

.wpc-product-card {
	display: grid;
	gap: 9px;
	justify-items: start;
	min-width: 138px;
	position: relative;
}

.wpc-product-image img {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	width: 92px;
}

.wpc-product-title {
	color: var(--wpc-text);
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.wpc-product-price {
	color: var(--wpc-muted);
}

.wpc-remove-product {
	align-items: center;
	background: #f3f4f6;
	border: 1px solid var(--wpc-border);
	border-radius: 999px;
	color: var(--wpc-text);
	cursor: pointer;
	display: inline-flex;
	font-size: 20px;
	height: 30px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 30px;
}

.wpc-remove-product:hover,
.wpc-remove-product:focus-visible {
	background: #fee2e2;
	border-color: #fecaca;
}

.wpc-compare-table tr.is-different > th,
.wpc-compare-table tr.is-different > td {
	background: var(--wpc-highlight-color);
}

.wpc-toast-region {
	top: 22px;
	display: grid;
	gap: 10px;
	position: fixed;
	right: 22px;
	z-index: 1000;
}

.wpc-toast {
	background: #111827;
	border-left: 4px solid var(--wpc-accent);
	border-radius: var(--wpc-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	color: #ffffff;
	max-width: min(360px, calc(100vw - 32px));
	padding: 12px 14px;
	transition: opacity 200ms ease, transform 200ms ease;
}

.wpc-toast.is-warning {
	border-left-color: #d97706;
}

.wpc-toast.is-error {
	border-left-color: #dc2626;
}

.wpc-toast.is-hiding {
	opacity: 0;
	transform: translateY(8px);
}

@media (max-width: 700px) {
	.wpc-floating-counter {
		bottom: 12px;
		right: 12px;
	}

	.wpc-counter-text {
		display: none;
	}

	.wpc-compare-header {
		display: block;
	}

	.wpc-compare-actions {
		justify-content: flex-start;
		margin-top: 14px;
	}

	.wpc-attribute-heading,
	.wpc-attribute-name {
		width: 140px;
	}
}
