.valabi-wl-btn, .valabi-wl-account, .valabi-wl-empty, .valabi-wl-toast {
	--wl-brand: #8b1538;
	--wl-brand-dark: #6f0f2c;
	--wl-success-bg: #2f9e6e;
	--wl-danger-bg: #d6534a;
}

.valabi-wl-btn {
	appearance: none;
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
}

.valabi-wl-btn svg {
	flex-shrink: 0;
	fill: none;
	stroke: var(--wl-brand);
	stroke-width: 1.7;
	transition: fill 0.15s ease, stroke 0.15s ease, transform 0.12s ease;
}

.valabi-wl-btn.is-active svg {
	fill: var(--wl-brand);
}

.valabi-wl-btn:active svg {
	transform: scale(0.9);
}

.valabi-wl-btn.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

/* ---- "link" style: small icon + label, used as the main product-page CTA ---- */

.valabi-wl-btn--link {
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	padding: 4px 2px;
}

.valabi-wl-btn--link:hover {
	color: var(--wl-brand);
}

.valabi-wl-btn--link:hover svg {
	stroke: var(--wl-brand);
}

.valabi-wl-btn--link.is-active .valabi-wl-btn__label {
	color: var(--wl-brand);
}

/* ---- "icon" style: heart-only, used for overlays and the My Account list ---- */

.valabi-wl-btn--icon {
	width: 40px;
	height: 40px;
	justify-content: center;
	border-radius: 50%;
	background: var(--wl-icon-bg, #fff);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.15);
}

.valabi-wl-btn--icon:hover {
	box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2);
}

/* Image overlays: pinned to a top corner of the product thumbnail — the main
   gallery image on a single product page, or the card image on an archive
   loop. Default corner is the logical "end" (opposite of where WooCommerce/
   most themes put a sale ribbon, which sits at the logical "start"). Themes
   vary in whether that badge is placed with a physical or logical side
   though (Flatsome flips it in RTL, for instance), so wishlist.js also runs
   a runtime bounding-box check and adds .is-flipped if the two still
   overlap. Hidden until JS relocates the wrapper onto the actual image
   container — the hook these render from doesn't reliably land inside it
   (on Flatsome, woocommerce_after_shop_loop_item_title fires in the card's
   text area below the image, not the image wrapper). */
.valabi-wl-gallery-heart,
.valabi-wl-loop-heart {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 9;
	opacity: 0;
	pointer-events: none;
}

.valabi-wl-gallery-heart.is-placed,
.valabi-wl-loop-heart.is-placed {
	opacity: 1;
	pointer-events: auto;
}

.valabi-wl-gallery-heart.is-flipped,
.valabi-wl-loop-heart.is-flipped {
	inset-inline-end: auto;
	inset-inline-start: 10px;
}

/* ---- Toast ---- */

.valabi-wl-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translate(-50%, 12px);
	z-index: 100000;
	padding: 12px 22px;
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.18);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	direction: rtl;
}

.valabi-wl-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.valabi-wl-toast--success {
	background: var(--wl-success-bg);
}

.valabi-wl-toast--danger {
	background: var(--wl-danger-bg);
}

/* ---- "remove" style: icon + label, My Account list rows ---- */

.valabi-wl-btn--remove {
	font-size: 13px;
	color: #6b7280;
	padding: 6px 10px;
	border-radius: 6px;
	white-space: nowrap;
}

.valabi-wl-btn--remove svg {
	stroke: #9ca3af;
	stroke-width: 2;
}

.valabi-wl-btn--remove:hover {
	color: var(--wl-danger-bg);
	background: #fef2f2;
}

.valabi-wl-btn--remove:hover svg {
	stroke: var(--wl-danger-bg);
}

/* ---- My Account wishlist page ---- */

.valabi-wl-account__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.valabi-wl-account__title {
	margin: 0;
	font-size: 18px;
}

.valabi-wl-account__count {
	white-space: nowrap;
	flex-shrink: 0;
	display: inline-flex;
	color: #9ca3af;
	font-size: 13px;
}

.valabi-wl-list {
	border: 1px solid #ececec;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.valabi-wl-list__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid #f0f0f1;
	transition: background 0.12s ease;
}

.valabi-wl-list__row:last-child {
	border-bottom: none;
}

.valabi-wl-list__row:hover {
	background: #fafafa;
}

.valabi-wl-list__thumb {
	flex-shrink: 0;
}

.valabi-wl-list__thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.valabi-wl-list__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.valabi-wl-list__title {
	font-weight: 600;
	text-decoration: none;
	color: #1f2937;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.valabi-wl-list__title:hover {
	color: var(--wl-brand);
}

.valabi-wl-list__price {
	color: #6b7280;
	font-size: 13px;
}

.valabi-wl-list__date {
	color: #b0b4bb;
	font-size: 12px;
}

.valabi-wl-list__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.valabi-wl-list__add-cart {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	background: var(--wl-brand);
	padding: 7px 14px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s ease;
}

.valabi-wl-list__add-cart:hover {
	background: var(--wl-brand-dark);
	color: #fff;
}

/* ---- Empty state ---- */

.valabi-wl-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 48px 20px;
	border: 1px dashed #e5e7eb;
	border-radius: 12px;
	color: #6b7280;
}

.valabi-wl-empty svg {
	fill: none;
	stroke: #d1d5db;
	stroke-width: 1.4;
}

.valabi-wl-empty p {
	margin: 0;
	font-size: 14px;
}

.valabi-wl-empty__cta {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--wl-brand);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

@media (max-width: 480px) {
	.valabi-wl-list__row {
		flex-wrap: wrap;
	}

	.valabi-wl-list__actions {
		width: 100%;
		justify-content: space-between;
		margin-inline-start: 76px;
	}
}

/* Scope overrides to wishlist controls; themes often style every button. */
button.valabi-wl-btn { min-height:0;min-width:0;line-height:1.5;text-transform:none;letter-spacing:normal; }
button.valabi-wl-btn--icon { width:40px;height:40px;padding:0;border:0;background:var(--wl-icon-bg, #fff); }
button.valabi-wl-btn--link { display:flex;width:max-content;max-width:100%;margin:10px 0;clear:both;background:transparent;border:0;box-shadow:none; }
.valabi-wl-btn:focus-visible { outline:2px solid var(--wl-brand);outline-offset:3px; }
.valabi-wl-btn--remove.is-active svg { fill:none; }
.valabi-wl-gallery-heart:not(.is-placed) { position:static;opacity:1;pointer-events:auto; }
@media (prefers-reduced-motion:reduce) { .valabi-wl-btn svg,.valabi-wl-toast { transition:none; } }

/* Card size and physical side are independent of the page language. */
.valabi-wl-loop-heart[data-wl-side]{inset-inline-start:auto;inset-inline-end:auto;left:auto;right:auto;max-width:100%}
.valabi-wl-loop-heart[data-wl-side="left"]{left:min(var(--wl-archive-offset,10px),max(0px,calc(100% - var(--wl-archive-size,32px))))}
.valabi-wl-loop-heart[data-wl-side="right"]{right:min(var(--wl-archive-offset,10px),max(0px,calc(100% - var(--wl-archive-size,32px))))}
.valabi-wl-loop-heart button.valabi-wl-btn--icon{width:var(--wl-archive-size,32px);height:var(--wl-archive-size,32px)}
.valabi-wl-loop-heart .valabi-wl-btn svg{width:55%;height:55%}
button.valabi-wl-btn--outline{border:1px solid var(--wl-brand);box-shadow:none;background:transparent;color:var(--wl-brand)}
button.valabi-wl-btn--link.valabi-wl-btn--outline{padding:8px 12px;border-radius:8px}
button.valabi-wl-btn--outline.is-active svg{fill:none;stroke-width:2.4}
button.valabi-wl-btn--outline.is-active{box-shadow:inset 0 0 0 1px var(--wl-brand)}
button.valabi-wl-btn--outline:hover{background:var(--wl-icon-bg,#fff)}
.valabi-wl-list__actions{flex-direction:column;align-items:stretch;gap:7px;padding-inline-start:16px;border-inline-start:1px solid #edf0f4}
.valabi-wl-list__add-cart{justify-content:center;padding:9px 14px;border-radius:8px;line-height:1.5}
button.valabi-wl-btn--remove{justify-content:center;background:#fff;border:1px solid #e5e7eb;padding:8px 12px;border-radius:8px;font-size:12px;color:#6b7280;box-shadow:none}
button.valabi-wl-btn--remove:hover{background:#fff5f5;border-color:#efc6c3;color:#b42318}
@media(max-width:480px){.valabi-wl-list__actions{flex-direction:row;flex-wrap:wrap;padding-inline-start:0;border-inline-start:0;gap:8px;margin-inline-start:0;flex-basis:100%}.valabi-wl-list__actions>*{flex:1;justify-content:center}}
