/* ==========================================================================
   MA Bio — Add to Compare popup + toast skin
   Scope: everything is prefixed with .wopb-modal-wrap .wopb-compare-wrapper
   Champagne #C6A66B · deep gold #8C6B3E · pale #E8DCC5
   Ivory #F8F6F1 · cream #F1ECE2 · charcoal #292724 · muted #6E665E
   ========================================================================== */

/* ---------- Modal shell ---------- */
.wopb-modal-wrap .wopb-modal-content:has(.wopb-compare-wrapper) {
	max-width: 1120px;
	width: calc(100% - 48px);
	max-height: 90vh;
	background: #F8F6F1;
	border-radius: 2px;
	box-shadow: 0 30px 80px rgba(41, 39, 36, 0.22);
	overflow: hidden;
}

.wopb-modal-wrap .wopb-compare-wrapper {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: #292724;
	max-width: 100%;
	border: 0;
	background: #F8F6F1;
}

/* ---------- Header (plugin hides it — show it) ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	padding: 1.35rem 1.75rem;
	background: #F1ECE2;
	border-bottom: 1px solid #E4D9C8;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-header-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: #292724;
	margin: 0;
	letter-spacing: 0;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #ffffff;
	border: 1px solid #E4D9C8;
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close svg {
	display: none;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close::before,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 1.5px;
	background-color: #292724;
	transition: background-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close:hover {
	background: #ffffff;
	border-color: #C6A66B;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close:hover::before,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close:hover::after {
	background-color: #8C6B3E;
}

/* ---------- Body + table ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-body {
	overflow: auto;
	background: #F8F6F1;
	padding: 0;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	background: #F8F6F1;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table th,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table td {
	border: 0;
	border-bottom: 1px solid #E4D9C8;
	padding: 1.1rem 1rem;
	vertical-align: middle;
	background: transparent;
	text-align: center;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-sticky-row th,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table th[scope] {
	background: #F1ECE2;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-sticky-column {
	background: #F1ECE2;
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #8C6B3E;
	text-align: left;
	padding-left: 1.5rem;
	width: 150px;
	min-width: 130px;
	white-space: nowrap;
}

/* Product image row */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-image-row td {
	padding: 1.35rem 1rem 1rem;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image img {
	width: 132px;
	height: 132px;
	max-width: 132px;
	max-height: 132px;
	margin: 0 auto;
	border-radius: 2px;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image {
	background: #ffffff;
	border: 1px solid #E4D9C8;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image img {
	object-fit: contain;
	object-position: center center;
	padding: 10px;
	box-sizing: border-box;
	border: 0;
}

/* Product name */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-title-row td {
	padding-bottom: 0.75rem;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-product-name {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.3;
	color: #292724;
	margin: 0;
}

/* Price */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-price-row td {
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.95rem;
	color: #8C6B3E;
	padding-top: 0.35rem;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .price ins {
	text-decoration: none;
	color: #8C6B3E;
}

/* Review */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-review-row td {
	font-size: 0.78rem;
	color: #6E665E;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .star-rating,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .star-rating::before,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .star-rating span::before {
	color: #C6A66B;
}

/* Stock status pill */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-stock_status-row td {
	font-size: 0.63rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #292724;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-stock_status-row td span,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-stock_status-row td .stock {
	display: inline-block;
	background: #E8DCC5;
	border-radius: 2px;
	padding: 0.32rem 0.62rem;
	color: #292724;
}

/* Quantity + add to cart */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-quantity-row td,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-add_to_cart-row td {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .quantity input.qty {
	width: 62px;
	height: 40px;
	border: 1px solid #E4D9C8;
	border-radius: 2px;
	background: #ffffff;
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.82rem;
	color: #292724;
	text-align: center;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-add-to-cart,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .button,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-action-add-btn {
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: #C6A66B;
	border: 1px solid #C6A66B;
	border-radius: 2px;
	color: #ffffff;
	padding: 0.65rem 1rem;
	display: inline-block;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-add-to-cart:hover,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .button:hover {
	background: #8C6B3E;
	border-color: #8C6B3E;
}

/* Remove action */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #E4D9C8;
	border-radius: 2px;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-remove svg path {
	stroke: #6E665E !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-remove:hover {
	border-color: #C6A66B;
	background: #F8F6F1;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-remove:hover svg path {
	stroke: #8C6B3E !important;
}

/* ---------- Footer ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1.15rem 1.75rem;
	background: #F1ECE2;
	border-top: 1px solid #E4D9C8;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-clear-btn {
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #292724;
	background: #ffffff;
	border: 1px solid #E4D9C8;
	border-radius: 2px;
	padding: 0.8rem 1.4rem;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-clear-btn:hover {
	border-color: #C6A66B;
	color: #8C6B3E;
}

/* ---------- Toast notification (when enabled) ---------- */
.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster {
	background: #F8F6F1;
	border: 1px solid #E4D9C8;
	border-radius: 2px;
	box-shadow: 0 16px 40px rgba(41, 39, 36, 0.16);
	padding: 18px;
	max-width: 380px;
}

.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster .wopb-compare-item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster .wopb-compare-image {
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	background: #ffffff;
	border: 1px solid #E4D9C8;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster .wopb-compare-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
	box-sizing: border-box;
	background: transparent;
}

.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster .wopb-compare-product-name {
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.84rem;
	line-height: 1.5;
	color: #6E665E;
}

.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster .wopb-compare-product-name span {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.02rem;
	color: #292724;
}

.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster .wopb-compare-view-btn {
	display: inline-block;
	margin-top: 14px;
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #ffffff;
	background: #C6A66B;
	border: 1px solid #C6A66B;
	border-radius: 2px;
	padding: 0.65rem 1.1rem;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster .wopb-compare-view-btn:hover {
	background: #8C6B3E;
	border-color: #8C6B3E;
	color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.wopb-modal-wrap .wopb-modal-content:has(.wopb-compare-wrapper) {
		width: calc(100% - 24px);
		max-height: 92vh;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header {
		padding: 1rem 1.15rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-header-title {
		font-size: 1.25rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table th,
	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table td {
		padding: 0.85rem 0.65rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-sticky-column {
		padding-left: 0.85rem;
		width: 110px;
		min-width: 100px;
		font-size: 0.58rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image,
	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image img {
		width: 104px;
		height: 104px;
		max-width: 104px;
		max-height: 104px;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-product-name {
		font-size: 0.98rem;
	}
}

@media (max-width: 480px) {
	.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header {
		padding: 0.9rem 1rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-header-title {
		font-size: 1.15rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-header .wopb-modal-close {
		width: 44px;
		height: 44px;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-sticky-column {
		width: 92px;
		min-width: 84px;
		font-size: 0.55rem;
		letter-spacing: 0.14em;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image,
	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-product-image img {
		width: 88px;
		height: 88px;
		max-width: 88px;
		max-height: 88px;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-product-name {
		font-size: 0.92rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-footer {
		padding: 0.9rem 1rem;
	}

	.wopb-modal-wrap .wopb-compare-wrapper.wopb-modal-toaster {
		max-width: calc(100vw - 24px);
		padding: 14px;
	}
}

/* ---------- Clean-up pass: placeholder cells, remove control, scrollbar ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-demo-column {
	display: none !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-tooltip {
	display: none !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-remove span {
	display: none !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-remove {
	width: 38px;
	height: 38px;
	border: 1px solid #E4D9C8;
	border-radius: 2px;
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-compare-remove svg {
	width: 16px;
	height: 16px;
	display: block;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-action-add-btn {
	text-align: center;
	width: 56px;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 auto;
	border: 1px dashed #D9CDBA;
	border-radius: 2px;
	background: #ffffff;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn svg path,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn svg {
	stroke: #8C6B3E !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn:hover {
	border-color: #C6A66B;
	background: #F1ECE2;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-body::-webkit-scrollbar-thumb {
	background-color: #C6A66B !important;
	border-radius: 20px;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-body::-webkit-scrollbar-track {
	background-color: #F1ECE2 !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-body {
	scrollbar-color: #C6A66B #F1ECE2;
}

/* Keep the sticky label column clean */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-sticky-column {
	border-right: 1px solid #E4D9C8;
}

/* ---------- Column geometry + typography corrections ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table {
	width: 100% !important;
	table-layout: auto !important;
}

.wopb-modal-wrap .wopb-compare-wrapper tbody .wopb-action-add-btn {
	display: none !important;
}

.wopb-modal-wrap .wopb-compare-wrapper thead .wopb-action-add-btn {
	display: table-cell !important;
	width: 64px !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table td.wopb-compare-item {
	min-width: 220px;
	text-align: center;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-product-name,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-product-name a,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-product-name a:hover {
	color: #292724 !important;
	text-decoration: none !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-review-count,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-product-review a,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-review-content {
	color: #6E665E !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-star-rating,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-star-rating::before,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-star-rating span::before {
	color: #C6A66B !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-add-to-cart,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-add-to-cart:hover {
	color: #ffffff !important;
}

@media (max-width: 480px) {
	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table td.wopb-compare-item {
		min-width: 180px;
	}
}

/* ---------- Final colour corrections ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-modal-body {
	background-color: #F8F6F1 !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table tbody,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table tr,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table td {
	background-color: #F8F6F1 !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-sticky-column {
	background-color: #F1ECE2 !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-sticky-row td,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table thead td {
	background-color: #F1ECE2 !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-title-row td,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-title-row td *,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-title-row a,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-title-row a:hover {
	color: #292724 !important;
	text-decoration: none !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-price-row td,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-price-row td *,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-price-row .woocommerce-Price-amount,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-price-row bdi {
	color: #8C6B3E !important;
}

/* ---------- Product thumbnails (real markup: td > a > img) ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-image-row td a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 132px !important;
	height: 132px !important;
	max-width: 132px !important;
	max-height: 132px !important;
	margin: 0 auto !important;
	background: #ffffff !important;
	border: 1px solid #E4D9C8 !important;
	border-radius: 2px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-image-row td a img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	padding: 10px !important;
	box-sizing: border-box !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	display: block !important;
	margin: 0 !important;
}

@media (max-width: 900px) {
	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-image-row td a {
		width: 104px !important;
		height: 104px !important;
		max-width: 104px !important;
		max-height: 104px !important;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-image-row td a img {
		padding: 8px !important;
	}
}

@media (max-width: 480px) {
	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-image-row td a {
		width: 88px !important;
		height: 88px !important;
		max-width: 88px !important;
		max-height: 88px !important;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-table .wopb-image-row td a img {
		padding: 6px !important;
	}
}

/* ==========================================================================
   Add-product button + product picker modal
   ========================================================================== */

/* ---------- .wopb-compare-add-btn (table "add product" control) ---------- */
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	width: 46px !important;
	height: 52px !important;
	padding: 0 !important;
	margin: 0 auto !important;
	background: #ffffff !important;
	border: 1px solid #E4D9C8 !important;
	border-radius: 2px !important;
	color: #292724 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn svg {
	width: 16px !important;
	height: 16px !important;
	display: block !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn svg path,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn svg {
	fill: #292724 !important;
	stroke: none !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn::after {
	content: 'ADD';
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.5rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	color: #8C6B3E;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn:hover {
	background: #F1ECE2 !important;
	border-color: #C6A66B !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn:hover svg,
.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn:hover svg path {
	fill: #8C6B3E !important;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn:hover::after {
	color: #8C6B3E;
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn:active {
	transform: translateY(1px);
}

.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn:focus-visible {
	outline: 2px solid #C6A66B;
	outline-offset: 2px;
}

/* ---------- Product picker modal ---------- */
.wopb-modal-wrap .wopb-compare-product-list-modal {
	background: rgba(41, 39, 36, 0.62) !important;
	z-index: 999 !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-content {
	width: min(760px, calc(100% - 32px)) !important;
	max-width: 760px !important;
	max-height: 90vh !important;
	background: #F8F6F1 !important;
	border-radius: 2px !important;
	box-shadow: 0 30px 80px rgba(41, 39, 36, 0.28) !important;
	overflow: hidden !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-body {
	background: #F8F6F1 !important;
	padding: 1.6rem 1.6rem 1.2rem !important;
	border-radius: 2px !important;
	max-height: 90vh !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	box-sizing: border-box !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-body::before {
	content: 'Add products to compare';
	display: block;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.4rem;
	font-weight: 500;
	line-height: 1.2;
	color: #292724;
	margin: 0 0 1rem;
	padding-right: 3rem;
}

/* Close */
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	background: #ffffff !important;
	border: 1px solid #E4D9C8 !important;
	border-radius: 2px !important;
	z-index: 5 !important;
	cursor: pointer !important;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close svg {
	display: none !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close::before,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 1.5px;
	background-color: #292724;
	transition: background-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close:hover {
	background: #ffffff !important;
	border-color: #C6A66B !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close:hover::before,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-close:hover::after {
	background-color: #8C6B3E;
}

/* Search */
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-search {
	display: flex !important;
	align-items: center !important;
	background: #F1ECE2 !important;
	border: 1px solid #E4D9C8 !important;
	border-radius: 2px !important;
	padding: 0 0.9rem !important;
	height: 46px !important;
	margin: 0 0 1rem !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-search:focus-within {
	border-color: #C6A66B !important;
	box-shadow: 0 0 0 3px rgba(198, 166, 107, 0.18) !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-search .wopb-search-input {
	width: 100% !important;
	height: 100% !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	font-family: 'Outfit', system-ui, sans-serif !important;
	font-size: 0.86rem !important;
	color: #292724 !important;
	padding: 0 !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-search .wopb-search-input::placeholder {
	color: #9a9187 !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-search .wopb-search-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	flex: 0 0 28px !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-search .wopb-search-icon svg path {
	fill: #8C6B3E !important;
}

/* List */
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list {
	height: auto !important;
	max-height: 52vh !important;
	overflow-y: auto !important;
	margin: 0 !important;
	padding: 0.15rem 0.35rem 0.15rem 0 !important;
	scrollbar-color: #C6A66B #F1ECE2;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list::-webkit-scrollbar {
	width: 6px;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list::-webkit-scrollbar-thumb {
	background-color: #C6A66B !important;
	border-radius: 20px;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list::-webkit-scrollbar-track {
	background-color: #F1ECE2 !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1rem !important;
	background: #ffffff !important;
	border: 1px solid #E4D9C8 !important;
	border-radius: 2px !important;
	padding: 0.75rem 0.9rem !important;
	margin: 0 0 0.55rem !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-item .wopb-compare-product-details {
	display: flex !important;
	align-items: center !important;
	gap: 1rem !important;
	min-width: 0 !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-product-image,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-product-image img {
	width: 58px !important;
	height: 58px !important;
	max-width: 58px !important;
	max-height: 58px !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-product-image {
	background: #F8F6F1 !important;
	border: 1px solid #E4D9C8 !important;
	border-radius: 2px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
	flex: 0 0 58px !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-product-image img {
	object-fit: contain !important;
	object-position: center center !important;
	padding: 5px !important;
	box-sizing: border-box !important;
	background: transparent !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-name {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: 1.02rem !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #292724 !important;
	margin: 0 0 0.2rem !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-review {
	display: flex !important;
	align-items: center !important;
	gap: 0.4rem !important;
	margin: 0 0 0.25rem !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-star-rating,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-star-rating::before,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-star-rating span::before {
	color: #C6A66B !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-review-count {
	font-family: 'Outfit', system-ui, sans-serif !important;
	font-size: 0.72rem !important;
	color: #6E665E !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-price {
	font-family: 'Outfit', system-ui, sans-serif !important;
	font-size: 0.84rem !important;
	color: #8C6B3E !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-price .woocommerce-Price-amount,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-price bdi {
	color: #8C6B3E !important;
}

/* Row add action */
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-add-to-compare-btn,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 38px !important;
	width: 38px !important;
	height: 38px !important;
	background: #C6A66B !important;
	border: 1px solid #C6A66B !important;
	border-radius: 2px !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-add-to-compare-btn svg,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-add-to-compare-btn svg path {
	fill: #ffffff !important;
	stroke: #ffffff !important;
	width: 16px !important;
	height: 16px !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-add-to-compare-btn:hover {
	background: #8C6B3E !important;
	border-color: #8C6B3E !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-add-to-compare-btn:focus-visible {
	outline: 2px solid #292724;
	outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-content {
		width: calc(100% - 24px) !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-body {
		padding: 1.25rem 1.15rem 1rem !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-body::before {
		font-size: 1.25rem;
	}
}

@media (max-width: 480px) {
	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-body {
		padding: 1.1rem 1rem 0.9rem !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list-body::before {
		font-size: 1.15rem;
		margin-bottom: 0.85rem;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-product-image,
	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-product-image img {
		width: 50px !important;
		height: 50px !important;
		max-width: 50px !important;
		max-height: 50px !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-product-image {
		flex: 0 0 50px !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-add-to-compare-btn {
		flex: 0 0 36px !important;
		width: 36px !important;
		height: 36px !important;
	}

	.wopb-modal-wrap .wopb-compare-wrapper .wopb-compare-add-btn {
		width: 44px !important;
		height: 50px !important;
	}
}

/* ---------- Picker rows: consistent left-aligned layout (all widths) ---------- */
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-details {
	flex: 1 1 auto !important;
	width: auto !important;
	align-items: center !important;
	min-width: 0 !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-content {
	text-align: left !important;
	align-items: flex-start !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-name,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-price,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-review-count {
	text-align: left !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-review,
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-star-rating {
	justify-content: flex-start !important;
}

@media (max-width: 480px) {
	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-item {
		flex-direction: row !important;
		align-items: center !important;
		gap: 0.7rem !important;
		padding: 0.7rem !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-details {
		gap: 0.7rem !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-name {
		font-size: 0.96rem !important;
	}

	.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-price {
		font-size: 0.8rem !important;
	}
}

/* Force image-left / text-right row regardless of plugin ordering */
.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-details {
	flex-direction: row !important;
	align-items: center !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-details .wopb-product-image {
	order: 1 !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
}

.wopb-modal-wrap .wopb-compare-product-list-modal .wopb-product-list .wopb-compare-product-details .wopb-compare-product-content {
	order: 2 !important;
	flex: 1 1 auto !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
}
