.elmetal-compare-button {
	align-items: center;
	background: #fff;
	border: 1px solid #dce3f3;
	border-radius: 8px;
	box-shadow: none;
	color: #07145f;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--title-font, inherit);
	font-size: 14px;
	font-weight: 500;
	gap: 8px;
	justify-content: center;
	line-height: 1.3;
	min-height: 42px;
	padding: 10px 18px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.elmetal-compare-button:hover,
.elmetal-compare-button.is-selected {
	background: var(--theme-color, #1957ff);
	border-color: var(--theme-color, #1957ff);
	color: #fff;
}

.elmetal-compare-button--card {
	margin-top: 0;
}

.elmetal-product-card__meta .elmetal-compare-button--card {
	margin-top: 0;
}

.single-product-card .product-info > .elmetal-compare-button--card {
	margin-top: 16px;
}

.elmetal-compare-button--single {
	margin-top: 16px;
}

.elmetal-compare-card-actions {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
	margin-top: 14px;
	width: 100%;
}

.elmetal-product-card__meta .elmetal-compare-card-actions {
	flex: 0 0 100%;
	margin-top: 0;
}

.elmetal-product-card__meta.has-compare-actions {
	flex-wrap: wrap;
}

.elmetal-compare-card-actions + .elmetal-rfq-message,
.elmetal-compare-card-actions .elmetal-rfq-message {
	display: none !important;
}

.elmetal-card-action,
.elmetal-compare-button.elmetal-card-action {
	align-items: center;
	background: #fff;
	border: 1px solid #dce3f3;
	border-radius: 8px;
	box-shadow: none;
	color: #07145f;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--title-font, inherit);
	font-size: 12px !important;
	font-weight: 600;
	justify-content: center;
	line-height: 1.15;
	margin: 0;
	min-height: 48px;
	padding: 8px 10px;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
	width: 100%;
}

.elmetal-card-action span,
.elmetal-compare-button.elmetal-card-action span {
	color: inherit !important;
	font-size: 12px !important;
	line-height: inherit;
}

.elmetal-card-action:hover,
.elmetal-compare-button.elmetal-card-action:hover,
.elmetal-compare-button.elmetal-card-action.is-selected {
	background: var(--theme-color, #1957ff);
	border-color: var(--theme-color, #1957ff);
	color: #fff;
}

.elmetal-card-action:hover span,
.elmetal-compare-button.elmetal-card-action:hover span,
.elmetal-compare-button.elmetal-card-action.is-selected span {
	color: #fff !important;
}

.elmetal-card-action--quote {
	background: #fff !important;
	border-color: #dce3f3 !important;
	color: #07145f !important;
}

.elmetal-card-action--quote:hover,
.elmetal-card-action--quote:focus {
	background: var(--theme-color, #1957ff) !important;
	border-color: var(--theme-color, #1957ff) !important;
	color: #fff !important;
}

.elmetal-rfq-add-form .elmetal-rfq-add-button,
.elmetal-rfq-add-form .elmetal-compare-button--single {
	border-radius: 8px !important;
	min-height: 54px;
}

.elmetal-rfq-add-form .elmetal-compare-button--single {
	margin-top: 0;
	padding: 15px 24px !important;
}

.elmetal-compare-toast {
	background: #07145f;
	border-radius: 8px;
	bottom: 94px;
	box-shadow: 0 18px 45px rgba(7, 20, 95, 0.2);
	color: #fff;
	font-size: 14px;
	left: 50%;
	max-width: calc(100vw - 40px);
	opacity: 0;
	padding: 12px 18px;
	pointer-events: none;
	position: fixed;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 99999;
}

.elmetal-compare-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.elmetal-compare-toast.is-error {
	background: #b42318;
}

.elmetal-compare-bar {
	align-items: center;
	background: #07145f;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	bottom: 24px;
	box-shadow: 0 18px 45px rgba(7, 20, 95, 0.26);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	left: 50%;
	max-width: calc(100vw - 32px);
	padding: 12px 14px 12px 18px;
	position: fixed;
	transform: translateX(-50%);
	z-index: 99998;
}

.elmetal-compare-bar__count {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.elmetal-compare-bar__link,
.elmetal-compare-bar__clear {
	align-items: center;
	border-radius: 7px;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 36px;
	padding: 9px 14px;
	text-decoration: none;
}

.elmetal-compare-bar__link {
	background: var(--theme-color, #1957ff);
	color: #fff !important;
}

.elmetal-compare-bar__link:visited,
.elmetal-compare-bar__link:focus,
.elmetal-compare-bar__link:hover {
	color: #fff !important;
}

.elmetal-compare-bar__clear {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	cursor: pointer;
}

.elmetal-compare-page {
	margin: 40px auto;
	max-width: 1660px;
	width: min(100%, calc(100vw - 40px));
}

.elementor-section:has(.elmetal-compare-page) > .elementor-container,
.elementor-container:has(.elmetal-compare-page) {
	max-width: 1660px !important;
	width: min(100%, calc(100vw - 40px)) !important;
}

.elementor-widget-shortcode:has(.elmetal-compare-page),
.elementor-widget-container:has(> .elmetal-compare-page) {
	width: 100%;
}

.elmetal-compare-page__header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 28px;
}

.elmetal-compare-page__header h2 {
	margin: 0;
}

.elmetal-compare-clear {
	background: #fff;
	border: 1px solid #dce3f3;
	border-radius: 8px;
	color: #07145f;
	cursor: pointer;
	font-weight: 600;
	min-height: 44px;
	padding: 10px 18px;
}

.elmetal-compare-clear:hover {
	background: #f1f4fb;
}

.elmetal-compare-page__message {
	color: #6b7280;
	font-size: 16px;
	margin-bottom: 18px;
}

.elmetal-compare-table-wrap {
	overflow-x: auto;
}

.elmetal-compare-table {
	background: #fff;
	border: 1px solid #dce3f3;
	border-collapse: collapse;
	min-width: 860px;
	table-layout: fixed;
	width: 100%;
}

.elmetal-compare-table th,
.elmetal-compare-table td {
	border: 1px solid #dce3f3;
	color: #07145f;
	padding: 18px;
	text-align: left;
	vertical-align: top;
}

.elmetal-compare-table thead th {
	background: #fff;
	font-weight: 600;
}

.elmetal-compare-table tbody th {
	background: #f7f9fe;
	font-weight: 700;
	width: 22%;
}

.elmetal-compare-table tbody tr:nth-child(even) td {
	background: #f6fbfc;
}

.elmetal-compare-table__feature {
	width: 22%;
}

.elmetal-compare-product {
	display: grid;
	gap: 12px;
	position: relative;
}

.elmetal-compare-product__image {
	background: #f3f5f6;
	border-radius: 8px;
	display: block;
	overflow: hidden;
}

.elmetal-compare-product__image img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.elmetal-compare-product__title {
	color: #07145f;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.elmetal-compare-product__title:hover {
	color: var(--theme-color, #1957ff);
}

.elmetal-compare-product__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.elmetal-compare-product__link,
.elmetal-compare-product__quote {
	align-items: center;
	background: #fff;
	border: 1px solid #dce3f3;
	border-radius: 8px;
	color: #07145f !important;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--title-font, inherit);
	font-size: 14px;
	font-weight: 600;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	text-decoration: none;
	width: fit-content;
}

.elmetal-compare-product__quote {
	box-shadow: none;
}

.elmetal-compare-product__link:visited,
.elmetal-compare-product__link:focus {
	color: #07145f !important;
}

.elmetal-compare-product__link:hover,
.elmetal-compare-product__quote:focus,
.elmetal-compare-product__quote:hover {
	background: var(--theme-color, #1957ff);
	border-color: var(--theme-color, #1957ff);
	color: #fff !important;
}

.elmetal-compare-product__actions + .elmetal-rfq-message {
	font-size: 13px;
	line-height: 1.4;
	margin-top: 0;
}

.elmetal-compare-remove {
	background: transparent;
	border: 0;
	color: #b42318;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	margin-left: auto;
	padding: 0;
	text-decoration: underline;
	width: fit-content;
}

@media (max-width: 767px) {
	.elmetal-compare-page {
		width: min(100%, calc(100vw - 24px));
	}

	.elmetal-compare-bar {
		align-items: stretch;
		border-radius: 8px;
		flex-direction: column;
		width: calc(100vw - 32px);
	}

	.elmetal-compare-bar__count {
		text-align: center;
	}

	.elmetal-compare-bar__link,
	.elmetal-compare-bar__clear {
		width: 100%;
	}
}
