/* eLeL Wunschliste */

:root {
	--elel-wl-radius: 0px;
	--elel-wl-primary: var(--e-global-color-primary, #141414);
	--elel-wl-text: #1d2738;
	--elel-wl-muted: #6a7385;
	--elel-wl-border: #dbe3f0;
	--elel-wl-soft: #f7f9fd;
	--elel-wl-accent-soft: #fff4ed;
	--elel-wl-accent-border: #ffd9c7;
	--elel-wl-admin-offset: 0px;
}

html.admin-bar {
	--elel-wl-admin-offset: var(--wp-admin--admin-bar--height, 32px);
}

html.elel-wl-open,
body.elel-wl-open {
	overflow: hidden;
}

/* Floating button – top left in content area (mirrors filter FAB offset) */
.elel-wl-fab-wrap {
	position: fixed;
	top: var(--elel-wl-top, 96px);
	left: 20px;
	z-index: 10050;
	pointer-events: none;
}

.elel-wl-fab-wrap[hidden] {
	display: none !important;
}

.elel-wl-fab {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 140px;
	padding: 14px 16px;
	border: 0;
	border-radius: var(--elel-wl-radius);
	background: var(--elel-wl-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.elel-wl-fab:hover,
.elel-wl-fab:focus-visible {
	background: #222;
}

.elel-wl-fab__badge {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--elel-wl-radius);
	background: #fff;
	color: var(--elel-wl-primary);
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Overlay */
.elel-wl-overlay {
	position: fixed;
	top: var(--elel-wl-admin-offset);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10060;
	display: flex;
	justify-content: flex-start;
}

.elel-wl-overlay[hidden] {
	display: none !important;
}

.elel-wl-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 18, 0.45);
}

.elel-wl-overlay__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	height: 100%;
	background: #fff;
	box-shadow: 8px 0 32px rgba(17, 24, 39, 0.18);
	overflow: hidden;
}

.elel-wl-overlay__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 16px 18px;
	box-sizing: border-box;
	background: linear-gradient(135deg, var(--elel-wl-primary) 0%, #1f2825 100%);
	color: #fff;
}

.elel-wl-overlay__heading {
	min-width: 0;
	flex: 1 1 auto;
}

.elel-wl-overlay__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.elel-wl-overlay__subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.86);
}

.elel-wl-overlay__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--elel-wl-radius);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.elel-wl-overlay__close:hover,
.elel-wl-overlay__close:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.22);
}

.elel-wl-overlay__nag-notice,
.elel-wl-overlay__alert {
	margin: 12px 14px 0;
	padding: 10px 12px;
	border-radius: var(--elel-wl-radius);
	font-size: 14px;
	line-height: 1.4;
}

.elel-wl-overlay__nag-notice {
	background: var(--elel-wl-accent-soft);
	border: 1px solid var(--elel-wl-accent-border);
	color: #9b3f1a;
}

.elel-wl-overlay__alert {
	background: #eef6ff;
	border: 1px solid #c7dbf5;
	color: #1d4f91;
}

.elel-wl-overlay__nag-notice[hidden],
.elel-wl-overlay__alert[hidden] {
	display: none !important;
}

.elel-wl-overlay__body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 14px;
	background: #fff;
}

.elel-wl-overlay__empty {
	padding: 28px 12px;
	text-align: center;
	color: var(--elel-wl-muted);
	font-size: 15px;
}

.elel-wl-overlay__empty[hidden] {
	display: none !important;
}

.elel-wl-overlay__items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Item rows (cart-like) */
.elel-wl-item {
	position: relative;
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 12px;
	padding: 12px;
	background: var(--elel-wl-soft);
	border: 1px solid var(--elel-wl-border);
	border-radius: var(--elel-wl-radius);
}

.elel-wl-item__image img {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: var(--elel-wl-radius);
}

.elel-wl-item__name {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--elel-wl-text);
}

.elel-wl-item__name a {
	color: inherit;
	text-decoration: none;
}

.elel-wl-item__name a:hover {
	text-decoration: underline;
}

.elel-wl-item__attrs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.elel-wl-item__swatch {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border: 1px solid var(--elel-wl-accent-border);
	border-radius: var(--elel-wl-radius);
	background: var(--elel-wl-accent-soft);
	color: #9b3f1a;
	font-size: 12px;
	font-weight: 600;
}

.elel-wl-item__materials {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--elel-wl-muted);
}

.elel-wl-item__materials-label {
	font-weight: 600;
	color: var(--elel-wl-text);
}

.elel-wl-item__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
}

.elel-wl-item__price-label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--elel-wl-muted);
	margin-bottom: 2px;
}

.elel-wl-item__price-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--elel-wl-text);
}

.elel-wl-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.elel-wl-item__atc,
.elel-wl-item__remove,
.elel-wl-btn {
	appearance: none;
	border-radius: var(--elel-wl-radius);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	line-height: 1.2;
}

.elel-wl-item__atc {
	padding: 10px 12px;
	border: 0;
	background: var(--elel-wl-primary);
	color: #fff;
	text-decoration: none;
	text-align: center;
}

a.elel-wl-item__atc--link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.elel-wl-item__atc:hover,
.elel-wl-item__atc:focus-visible {
	background: #222;
}

.elel-wl-item__atc:disabled,
.elel-wl-item__remove:disabled,
.elel-wl-btn:disabled {
	opacity: 0.55;
	cursor: wait;
}

.elel-wl-item__remove {
	padding: 10px 12px;
	border: 1px solid var(--elel-wl-border);
	background: #fff;
	color: var(--elel-wl-text);
}

.elel-wl-item__remove:hover,
.elel-wl-item__remove:focus-visible {
	border-color: #c5cedd;
	background: #fff;
}

/* Nagging footer switch */
.elel-wl-overlay__footer {
	padding: 12px 14px 16px;
	border-top: 1px solid var(--elel-wl-border);
	background: #fff;
	display: flex;
	justify-content: flex-end;
}

.elel-wl-overlay__footer[hidden] {
	display: none !important;
}

.elel-wl-overlay__nag-switch {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 100%;
	font-size: 13px;
	line-height: 1.35;
	color: var(--elel-wl-muted);
	cursor: pointer;
	text-align: right;
}

.elel-wl-overlay__nag-switch input {
	margin-top: 2px;
	flex: 0 0 auto;
}

/* Cart → Wishlist one-click (Elementor mini-cart) */
.elel-wl-cart-move {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 6px;
	padding: 6px 8px;
	border: 1px solid var(--elel-wl-primary);
	border-radius: var(--elel-wl-radius);
	background: #fff;
	color: var(--elel-wl-primary);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	cursor: pointer;
	white-space: nowrap;
}

.elementor-menu-cart__product .elel-wl-cart-move {
	position: absolute;
	top: 36px;
	right: 8px;
	z-index: 3;
}

.elel-wl-cart-move:hover,
.elel-wl-cart-move:focus-visible {
	background: var(--elel-wl-soft);
}

.elel-wl-cart-move:disabled {
	opacity: 0.55;
	cursor: wait;
}

/* PDP button */
.elel-wl-btn-wrap {
	display: block;
	width: auto;
	max-width: 100%;
}

.elel-wl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	max-width: 100%;
	min-height: 40px;
	padding: 10px 14px;
	border: 1px solid var(--elel-wl-primary);
	background: #fff;
	color: var(--elel-wl-primary);
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}

.elel-wl-btn__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
}

.elel-wl-btn__heart {
	display: block;
	width: 18px;
	height: 18px;
}

.elel-wl-btn__heart--full {
	display: none;
}

.elel-wl-btn.is-on-list .elel-wl-btn__heart--empty {
	display: none;
}

.elel-wl-btn.is-on-list .elel-wl-btn__heart--full {
	display: block;
}

.elel-wl-btn__label {
	min-width: 0;
}

.elel-wl-btn:hover,
.elel-wl-btn:focus-visible {
	background: var(--elel-wl-soft);
}

.elel-wl-btn.is-on-list {
	background: var(--elel-wl-primary);
	color: #fff;
}

@media (max-width: 640px) {
	.elel-wl-btn {
		white-space: normal;
		text-align: left;
	}

	.elel-wl-fab-wrap {
		left: 12px;
	}

	.elel-wl-fab {
		min-width: 0;
		padding: 12px 14px;
		font-size: 14px;
	}

	.elel-wl-overlay__panel {
		width: 100%;
	}

	.elel-wl-item {
		grid-template-columns: 64px 1fr;
	}

	.elel-wl-item__image img {
		width: 64px;
		height: 64px;
	}

	.elel-wl-item__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.elel-wl-item__actions {
		width: 100%;
	}

	.elel-wl-item__atc,
	.elel-wl-item__remove {
		flex: 1 1 auto;
	}
}
