/*!
 * Product Wishlist for WooCommerce — default styles.
 * Every value here is safely overridden by the Elementor widget controls;
 * these are just sensible, professional-looking defaults.
 */

/* -----------------------------------------------------------------------
 * Wishlist Button
 * --------------------------------------------------------------------- */

.wcwl-btn-wrap {
	display: flex;
}

.wcwl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	background-color: #ffffff;
	border: 1px solid #e1dedc;
	border-radius: 6px;
	color: #2b2a28;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wcwl-btn:hover {
	border-color: #9c2b44;
}

.wcwl-btn:focus-visible {
	outline: 2px solid #9c2b44;
	outline-offset: 2px;
}

.wcwl-btn.wcwl-active {
	border-color: #9c2b44;
	background-color: #fceef1;
}

.wcwl-btn .wcwl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	line-height: 1;
	flex-shrink: 0;
}

.wcwl-btn .wcwl-icon i,
.wcwl-btn .wcwl-icon svg {
	width: 1em;
	height: 1em;
	font-size: 18px;
}

/* Icon swap between "empty" and "filled" heart states, driven purely by CSS
 * so the JS only has to toggle a single class. */
.wcwl-btn .wcwl-icon-filled {
	display: none;
	color: #9c2b44;
}

.wcwl-btn.wcwl-active .wcwl-icon-empty {
	display: none;
}

.wcwl-btn.wcwl-active .wcwl-icon-filled {
	display: inline-flex;
}

/* Text swap between "Add to Wishlist" and "In Wishlist" labels. */
.wcwl-btn .wcwl-text-remove {
	display: none;
}

.wcwl-btn.wcwl-active .wcwl-text-add {
	display: none;
}

.wcwl-btn.wcwl-active .wcwl-text-remove {
	display: inline;
}

.wcwl-btn.wcwl-loading {
	opacity: 0.6;
	pointer-events: none;
}

.wcwl-editor-notice {
	padding: 12px 16px;
	background: #f7f4f2;
	border: 1px dashed #d8d3cf;
	border-radius: 6px;
	color: #726e6b;
	font-size: 13px;
}

/* -----------------------------------------------------------------------
 * Wishlist Header
 * --------------------------------------------------------------------- */

.wcwl-header {
	position: relative;
	display: inline-block;
}

.wcwl-header-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	padding: 6px;
	margin: 0;
	cursor: pointer;
	color: #2b2a28;
	text-decoration: none;
	line-height: 1;
}

.wcwl-header-toggle:hover {
	color: #9c2b44;
}

.wcwl-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.wcwl-header-icon i,
.wcwl-header-icon svg {
	width: 1em;
	height: 1em;
	font-size: 22px;
}

.wcwl-count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #9c2b44;
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
}

.wcwl-dropdown {
	position: absolute;
	top: calc(100% + 12px);
	width: 320px;
	max-height: 420px;
	overflow-y: auto;
	background-color: #ffffff;
	border: 1px solid #edebe9;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(20, 18, 17, 0.12);
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 999;
}

.wcwl-dropdown-right {
	right: 0;
}

.wcwl-dropdown-left {
	left: 0;
}

.wcwl-dropdown.wcwl-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wcwl-dropdown-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #2b2a28;
}

.wcwl-dropdown-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wcwl-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1efed;
	position: relative;
}

.wcwl-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.wcwl-item-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	display: block;
}

.wcwl-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wcwl-item-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wcwl-item-title {
	font-size: 13px;
	color: #2b2a28;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcwl-item-title:hover {
	color: #9c2b44;
}

.wcwl-item-price {
	font-size: 12px;
	color: #726e6b;
}

.wcwl-item-price ins {
	text-decoration: none;
}

.wcwl-item-remove {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #a8a29c;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.wcwl-item-remove:hover {
	color: #9c2b44;
	background-color: #fceef1;
}

.wcwl-empty {
	font-size: 13px;
	color: #726e6b;
	text-align: center;
	padding: 20px 0;
}

.wcwl-dropdown.wcwl-loading-items {
	pointer-events: none;
}

@media (max-width: 480px) {
	.wcwl-dropdown {
		width: 280px;
	}

	.wcwl-dropdown-right {
		right: -8px;
	}

	.wcwl-dropdown-left {
		left: -8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcwl-btn,
	.wcwl-dropdown,
	.wcwl-header-toggle,
	.wcwl-item-remove {
		transition: none;
	}
}
