.ecw-wishlist-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 40px;
	padding: .7em 1em;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
}

.ecw-wishlist-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ecw-wishlist-toggle.is-added .ecw-icon {
	color: #d6243f;
}

.ecw-wishlist-toggle.is-loading {
	opacity: .6;
	cursor: wait;
}

.ecw-wishlist-toggle.is-loading .ecw-icon {
	animation: ecw-pulse .8s ease-in-out infinite alternate;
}

.ecw-wishlist-toggle.has-error {
	animation: ecw-shake .25s linear 2;
}

.ecw-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25em;
	line-height: 1;
}

.ecw-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ecw-icon--active {
	display: none;
}

.ecw-wishlist-toggle.is-added .ecw-icon--inactive {
	display: none;
}

.ecw-wishlist-toggle.is-added .ecw-icon--active {
	display: inline-flex;
}


.ecw-wishlist-toggle.ecw-icon-after .ecw-icon {
	order: 2;
}

.ecw-wishlist-toggle.ecw-icon-after .ecw-label {
	order: 1;
}

.ecw-context-loop {
	width: 100%;
	margin-top: .65rem;
}

.ecw-context-single {
	margin-top: .75rem;
}


/* Optional Elementor Loop Item rendering. The selected saved template supplies
   the complete visual and content structure of each product card. */
.ecw-elementor-grid {
	display: grid;
	grid-template-columns: repeat(var(--ecw-columns, 3), minmax(0, 1fr));
	gap: 1.5rem;
}

.ecw-elementor-loop-item {
	min-width: 0;
}

.ecw-elementor-remove {
	margin-top: .65rem;
}

.ecw-elementor-remove .ecw-wishlist-toggle {
	width: 100%;
}

.ecw-wishlist .ecw-grid {
	display: grid;
	grid-template-columns: repeat(var(--ecw-columns, 3), minmax(0, 1fr));
	gap: 1.5rem;
}

.ecw-wishlist[data-columns="1"] { --ecw-columns: 1; }
.ecw-wishlist[data-columns="2"] { --ecw-columns: 2; }
.ecw-wishlist[data-columns="3"] { --ecw-columns: 3; }
.ecw-wishlist[data-columns="4"] { --ecw-columns: 4; }
.ecw-wishlist[data-columns="5"] { --ecw-columns: 5; }
.ecw-wishlist[data-columns="6"] { --ecw-columns: 6; }

.ecw-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	background: #fff;
}

.ecw-card__image {
	display: block;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin: 10px;
	border: 10px solid #7ea203;
	background: #fff;
}

.ecw-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.ecw-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1rem;
}

.ecw-card__title {
	margin: 0 0 .6rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.ecw-card__title a {
	color: inherit;
	text-decoration: none;
}

.ecw-card__price {
	margin-bottom: 1rem;
	font-weight: 600;
}

.ecw-card__actions {
	display: grid;
	gap: .65rem;
	margin-top: auto;
}

.ecw-card__actions .button,
.ecw-card__actions .ecw-wishlist-toggle {
	width: 100%;
	text-align: center;
}

.ecw-card__actions .ecw-add-to-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 40px;
	text-decoration: none;
}

.ecw-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	line-height: 1;
}

.ecw-action-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ecw-add-to-cart.ecw-icon-after .ecw-action-icon {
	order: 2;
}

.ecw-add-to-cart.ecw-icon-after .ecw-action-label {
	order: 1;
}

/* WooCommerce inserts this AJAX link after adding a product. It is not used
   inside the wishlist and must never be displayed. */
.ecw-wishlist a.added_to_cart,
.ecw-card__actions a.added_to_cart {
	display: none !important;
}

.ecw-empty {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 2rem;
	border: 1px dashed rgba(0, 0, 0, .2);
	border-radius: 8px;
	text-align: center;
}

.ecw-empty__icon {
	font-size: 3rem;
	line-height: 1;
	opacity: .55;
}

.ecw-empty p {
	margin: .75rem 0 0;
}

@media (max-width: 1024px) {
	.ecw-elementor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ecw-wishlist[data-columns="4"] .ecw-grid,
	.ecw-wishlist[data-columns="5"] .ecw-grid,
	.ecw-wishlist[data-columns="6"] .ecw-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ecw-elementor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
	.ecw-wishlist[data-columns="3"] .ecw-grid,
	.ecw-wishlist[data-columns="4"] .ecw-grid,
	.ecw-wishlist[data-columns="5"] .ecw-grid,
	.ecw-wishlist[data-columns="6"] .ecw-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ecw-wishlist .ecw-grid {
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.ecw-elementor-grid { grid-template-columns: 1fr; }
	.ecw-wishlist .ecw-grid {
		grid-template-columns: 1fr;
	}
}

@keyframes ecw-pulse {
	to { transform: scale(1.2); }
}

@keyframes ecw-shake {
	25% { transform: translateX(-2px); }
	75% { transform: translateX(2px); }
}
