/* WC Product Compare — namespaced styles, override freely from the active theme */

button.pc-compare-btn,
.elementor-widget-container button.pc-compare-btn,
.woocommerce button.pc-compare-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
	margin: 0 0 0 8px !important;
	padding: 0 !important;
	border: 1px solid #ccc !important;
	border-radius: 50% !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #555 !important;
	cursor: pointer !important;
	line-height: 1 !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

button.pc-compare-btn:hover {
	border-color: #999 !important;
	background-color: transparent !important;
	color: #222 !important;
}

button.pc-compare-btn.pc-added {
	background-color: white !important;
	color: #fff !important;
}

button.pc-compare-btn img.pc-compare-icon,
.pc-compare-icon {
	display: block !important;
	width: 50px !important;
	height: 58px !important;
	max-width: 30px !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
	pointer-events: none !important;
}

.pc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Click feedback: quick pop + spin on the icon. Triggered via .pc-clicked,
   added and removed by JS on each click regardless of the resulting state. */
.pc-compare-btn.pc-clicked {
	animation: pc-pop 0.35s ease;
}

.pc-compare-btn.pc-clicked .pc-compare-icon {
	animation: pc-spin 0.35s ease;
}

@keyframes pc-pop {
	0% {
		transform: scale( 1 );
	}
	40% {
		transform: scale( 1.18 );
	}
	100% {
		transform: scale( 1 );
	}
}

@keyframes pc-spin {
	0% {
		transform: rotate( 0deg );
	}
	100% {
		transform: rotate( 360deg );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pc-compare-btn.pc-clicked,
	.pc-compare-btn.pc-clicked .pc-compare-icon {
		animation: none;
	}
}

.pc-compare-wrapper {
	overflow-x: auto;
	width: 100%;
}

.pc-compare-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}

.pc-compare-table th,
.pc-compare-table td {
	border: 1px solid #e5e5e5;
	padding: 12px;
	text-align: center;
	vertical-align: middle;
}

.pc-compare-table tbody th {
	text-align: start;
	background: #fafafa;
	font-weight: 600;
	white-space: nowrap;
}

.pc-compare-table .pc-row-remove th {
	border: none;
	padding: 4px;
}

.pc-remove-btn {
	background: none;
	border: none;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	color: #999;
}

.pc-remove-btn:hover {
	color: #c00;
}

.pc-row-title a {
	font-weight: 600;
	text-decoration: none;
}

.pc-empty-slot {
	background: #fafafa;
	vertical-align: middle !important;
}

.pc-empty-slot-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 24px 12px;
	background: none;
	font: inherit;
	text-decoration: none;
	color: #888;
	border: 2px dashed #ddd;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.pc-empty-slot-link:hover {
	border-color: #999;
	color: #444;
}

.pc-empty-slot-plus {
	font-size: 28px;
	line-height: 1;
}

.pc-empty-slot-text {
	font-size: 13px;
}

/* Modal */
.pc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
}

.pc-modal-overlay[hidden] {
	display: none;
}

.pc-modal {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 480px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.pc-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.pc-modal-header h3 {
	margin: 0;
	font-size: 16px;
}

.pc-modal-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 4px;
}

.pc-modal-close:hover {
	color: #222;
}

.pc-modal-search {
	padding: 12px 20px;
	border-bottom: 1px solid #eee;
}

.pc-modal-search input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.pc-modal-body {
	overflow-y: auto;
	padding: 8px 12px;
}

.pc-modal-loading,
.pc-modal-empty {
	text-align: center;
	padding: 24px 12px;
	color: #888;
	font-size: 14px;
}

.pc-modal-results {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pc-modal-result {
	display: flex;
	align-items: center;
	gap: 17px!important;
	width: 100%;
	padding: 15px!important;
	background: none;
	border: none!important;
	border-radius: 10px!important;
	text-align: start!important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.pc-modal-result {
    gap: 10px;
    border-radius: 10px;
    padding: 15px;
}

.pc-modal-result:hover {
	background-color: #f5f5f5;
}

.pc-modal-result-image {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 6px;
}

.pc-modal-result-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pc-modal-result-name {
	flex: 1;
	font-size: 14px;
	color: #222;
	text-align: start;
    line-height: normal;
    font-weight: 400;
}

.pc-modal-result-price {
	flex-shrink: 0;
	font-size: 13px;
	color: #666;
	white-space: nowrap;
}

.pc-empty {
	padding: 24px;
	text-align: center;
	color: #777;
}

.pc-modal-close{
    padding: 0;
    min-height: 0;
    background-color: transparent!important;
    font-size: 19px!important;
}
.pc-empty-slot-link.pc-open-modal{
    height: 110px!important;
    border-radius: 10px;
}