.solartek-compare-active,
.solartek-favorites-active {
	--sa-border: #e3e6ea;
	--sa-heading: #20242a;
	--sa-accent: #ff8618;
	--sa-control-radius: 12px;
	--sa-shadow-soft: 0 14px 28px rgba(15, 23, 35, 0.06);
}

.sa-visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.sa-favorite-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sa-border);
	border-radius: 999px;
	box-shadow: var(--sa-shadow-soft);
	color: var(--sa-heading);
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	margin-top: 10px;
	position: relative;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.sa-favorite-button:hover {
	background: #fff;
	border-color: #ffcda8;
	box-shadow: 0 14px 28px rgba(31, 41, 55, 0.08);
	color: var(--sa-accent);
	transform: translateY(-1px);
}

.sa-favorite-button__icon {
	align-items: center;
	display: inline-flex;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	text-align: center;
	width: 1em;
}

.sa-favorite-button__icon::before {
	content: "\2661";
}

.sa-favorite-button.is-added .sa-favorite-button__icon::before {
	content: "\2665";
}

.sa-favorite-button.is-added {
	background: #ff8618 !important;
	border-color: #ff8618 !important;
	box-shadow: 0 10px 24px rgba(255, 122, 24, 0.24);
	color: #111 !important;
}

.sa-favorite-button.is-added:hover {
	background: #ff9a3f !important;
	border-color: #ff9a3f !important;
	color: #111 !important;
}

.sa-favorite-button.is-pending {
	opacity: 0.6;
	pointer-events: none;
}

.sa-favorite-button--icon-only {
	height: 38px;
	margin-top: 0;
	min-width: 38px;
	padding: 0;
	width: 38px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.w-grid-item.product .w-grid-item-h,
.woocommerce ul.products li.product .w-post-elm.post_image,
.woocommerce-page ul.products li.product .w-post-elm.post_image,
.w-grid-item.product .w-post-elm.post_image {
	position: relative;
}

.woocommerce ul.products li.product .sa-favorite-button--loop,
.woocommerce-page ul.products li.product .sa-favorite-button--loop,
.w-grid-item.product .sa-favorite-button--loop {
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(23, 48, 74, 0.08);
	box-shadow: 0 8px 22px rgba(16, 42, 67, 0.1);
	pointer-events: auto;
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 31;
}

.sa-favorite-popup {
	bottom: 22px;
	max-width: min(332px, calc(100vw - 32px));
	position: fixed;
	right: 22px;
	transform: translateY(10px) scale(0.98);
	transition: opacity 0.16s ease, transform 0.16s ease;
	width: 100%;
	z-index: 10000;
}

.sa-favorite-popup[hidden] {
	display: none;
}

.sa-favorite-popup:not(.is-open) {
	opacity: 0;
	pointer-events: none;
}

.sa-favorite-popup.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.sa-favorite-popup__panel {
	background: rgba(18, 18, 18, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
	padding: 12px 44px 12px 12px;
	position: relative;
}

.sa-favorite-popup__close {
	align-items: center;
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.62);
	cursor: pointer;
	display: inline-flex;
	font-size: 20px;
	height: 28px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 8px;
	top: 8px;
	width: 28px;
}

.sa-favorite-popup-card {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 30px minmax(0, 1fr);
}

.sa-favorite-popup-card__icon {
	align-items: center;
	background: #ff8618;
	border-radius: 999px;
	color: #111;
	display: inline-flex;
	font-size: 15px;
	font-weight: 800;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.sa-favorite-popup-card__icon::before {
	content: "\2713";
}

.sa-favorite-popup-card__body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.sa-favorite-popup-card__body strong {
	color: #fff;
	font-size: 14px;
	line-height: 1.25;
}

.sa-favorite-popup-card__body p,
.sa-favorite-popup-card__body span {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
}

.sa-favorite-popup-card__link {
	color: #ffad66;
	font-size: 12px;
	font-weight: 800;
	grid-column: 2;
	text-decoration: none;
}

.sa-favorite-popup-card__actions--stacked {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.sa-favorite-popup-card__actions--stacked .button {
	flex: 1 1 140px;
	margin: 0;
	text-align: center;
}

.sa-compare-button {
	align-items: center;
	border-radius: 14px;
	display: inline-flex !important;
	gap: 10px;
	justify-content: center;
	margin-top: 10px;
	position: relative;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
}

.sa-compare-button__icon {
	border: 2px solid currentColor;
	border-radius: 4px;
	display: inline-block;
	flex: 0 0 auto;
	height: 14px;
	margin-right: 2px;
	position: relative;
	width: 14px;
}

.sa-compare-button__icon::before,
.sa-compare-button__icon::after {
	background: currentColor;
	content: "";
	display: block;
	height: 2px;
	left: 3px;
	position: absolute;
	right: 3px;
}

.sa-compare-button__icon::before {
	top: 3px;
}

.sa-compare-button__icon::after {
	bottom: 3px;
}

.sa-compare-button.is-added {
	background: var(--sa-accent);
	border-color: var(--sa-accent);
	color: #111;
}

.sa-compare-button.is-pending {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 640px) {
	.sa-favorite-popup {
		bottom: 14px;
		left: 14px;
		max-width: none;
		right: 14px;
		width: auto;
	}
}
