/**
 * AMAA Wishlist.
 */

/* Heart icon: outline when not saved, filled when saved */
.amaa-wl-icon path {
	fill: transparent;
	stroke: currentColor;
	transition: fill 0.15s, stroke 0.15s;
}
.is-saved .amaa-wl-icon path {
	fill: #e0464e;
	stroke: #e0464e;
}

/* Heart on product cards */
button.amaa-wl-heart {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(16, 32, 16, 0.14);
	color: #1b321a;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s;
}
button.amaa-wl-heart:hover {
	transform: scale(1.08);
	background: #fff;
	color: #1b321a;
}
button.amaa-wl-heart:focus-visible,
button.amaa-wl-btn:focus-visible,
button.amaa-wl-remove:focus-visible {
	outline: 3px solid #b4be4e;
	outline-offset: 2px;
}
button.amaa-wl-heart.is-saved {
	animation: amaa-wl-pop 0.3s ease;
}
button.amaa-wl-heart:disabled,
button.amaa-wl-btn:disabled {
	opacity: 0.7;
	cursor: default;
}
@keyframes amaa-wl-pop {
	50% { transform: scale(1.2); }
}

/* Button on product pages */
button.amaa-wl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0 18px;
	min-height: 46px;
	border: 1.5px solid #dde3da;
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: #1b321a;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}
button.amaa-wl-btn:hover {
	border-color: #9db59a;
	background: #fff;
	color: #1b321a;
}
button.amaa-wl-btn.is-saved {
	border-color: #f3c1c3;
	background: #fff5f5;
}
.single-product .summary button.amaa-wl-btn + .amaa-calc-link {
	display: flex;
	width: fit-content;
}

/* Toast */
.amaa-wl-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 14px;
	background: #1b321a;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s, transform 0.2s;
}
.amaa-wl-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}
.amaa-wl-toast a {
	flex: none;
	color: #b4be4e;
	font-weight: 700;
	text-decoration: underline;
}
.amaa-wl-toast a:hover {
	color: #f6d27a;
}

/* My Account → Wishlist */
.amaa-dashboard-page .amaa-account ul.amaa-wl-grid,
ul.amaa-wl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}
.amaa-wl-item__media {
	position: relative;
}
ul.amaa-wl-grid > li.amaa-wl-item {
	margin: 0;
}
.amaa-wl-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 12px 12px 14px;
	border: 1px solid #dde3da;
	border-radius: 18px;
	background: #fff;
	transition: opacity 0.2s, transform 0.2s;
}
.amaa-wl-item.is-leaving {
	opacity: 0;
	transform: scale(0.96);
}
.amaa-wl-item__img {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: #f4f6f3;
	aspect-ratio: 1 / 1;
}
.amaa-wl-item__img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}
.amaa-wl-tag {
	position: absolute;
	bottom: 8px;
	left: 8px;
	max-width: calc(100% - 16px);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.amaa-wl-tag--drop {
	background: #b4be4e;
	color: #1b321a;
}
.amaa-wl-tag--out {
	background: #fbe4e2;
	color: #9b2c1f;
}
button.amaa-wl-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(16, 32, 16, 0.15);
	color: #3f4a3e;
	cursor: pointer;
}
button.amaa-wl-remove:hover {
	background: #fbe4e2;
	color: #9b2c1f;
}
.amaa-wl-item__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
}
a.amaa-wl-item__name {
	color: #1a1f1a;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
}
a.amaa-wl-item__name:hover {
	color: #2e5130;
}
.amaa-wl-item__price {
	color: #1b321a;
	font-weight: 600;
	font-size: 15px;
}
.amaa-wl-item__price ins {
	text-decoration: none;
}
.amaa-wl-item__price del {
	color: #8a948a;
	font-weight: 400;
}
.amaa-wl-item__date {
	color: #5b665a;
	font-size: 12.5px;
}
a.amaa-wl-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	background: #1b321a;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
a.amaa-wl-cta:hover {
	background: #2e5130;
	color: #fff;
}
a.amaa-wl-cta--block {
	width: 100%;
}
a.amaa-wl-cta--ghost {
	border: 1.5px solid #dde3da;
	background: #fff;
	color: #1b321a;
}
a.amaa-wl-cta--ghost:hover {
	border-color: #9db59a;
	background: #fff;
	color: #1b321a;
}
.amaa-wl-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 20px;
	border: 1px dashed #c9d4c6;
	border-radius: 18px;
	background: #fff;
	text-align: center;
}
.amaa-wl-empty[hidden] {
	display: none;
}
.amaa-wl-empty p {
	max-width: 340px;
	margin: 0;
	color: #5b665a;
}
.amaa-wl-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: #fff1f1;
	color: #e0464e;
}
.amaa-wl-empty__icon .amaa-wl-icon path {
	fill: #e0464e;
	stroke: #e0464e;
}
@media (max-width: 480px) {
	.amaa-dashboard-page .amaa-account ul.amaa-wl-grid,
	ul.amaa-wl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.amaa-wl-item {
		padding: 8px 8px 10px;
	}
	.amaa-wl-tag {
		bottom: 6px;
		left: 6px;
		font-size: 11px;
	}
	button.amaa-wl-remove {
		top: 6px;
		right: 6px;
		width: 30px;
		height: 30px;
	}
}
