/*
 * ایموگیفت - دکمه نشان کردن
 * Variables (set by the Elementor widget or your own CSS), so states never override each other:
 *   --iga-wl-color / -bg / -border        normal
 *   --iga-wl-hover / -bg-hover / -border-hover
 *   --iga-wl-saved / -saved-bg / -saved-border
 *   --iga-wl-size                          icon size
 * Base rules use 0,2,0 specificity; widget controls use "{{WRAPPER}} .iga-wl .x" (0,3,0).
 */
.iga-wl { display: inline-flex; direction: rtl; }
.iga-wl .iga-wl__form { display: inline-flex; margin: 0; padding: 0; }
.iga-wl .iga-wl__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 40px; min-height: 40px; margin: 0; padding: 8px;
	border: 1px solid var(--iga-wl-border, transparent); border-radius: 10px;
	background: var(--iga-wl-bg, transparent); color: var(--iga-wl-color, #6b7280);
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4;
	text-decoration: none; cursor: pointer; box-shadow: none;
	transition: color .15s, background-color .15s, transform .15s;
}
.iga-wl.iga-wl--text .iga-wl__btn { padding: 8px 12px; }
.iga-wl .iga-wl__btn:hover {
	color: var(--iga-wl-hover, var(--iga-wl-saved, #1b5fd9));
	background: var(--iga-wl-bg-hover, rgba(27, 95, 217, .08));
	border-color: var(--iga-wl-border-hover, var(--iga-wl-border, transparent));
}
.iga-wl .iga-wl__btn:focus-visible { outline: 2px solid var(--iga-wl-saved, #1b5fd9); outline-offset: 2px; }
.iga-wl .iga-wl__btn svg { width: var(--iga-wl-size, 22px); height: var(--iga-wl-size, 22px); flex: 0 0 auto; }
.iga-wl .iga-wl__btn .iga-fill { fill: transparent; transition: fill .15s; }
.iga-wl .iga-wl__btn.is-saved,
.iga-wl .iga-wl__btn.is-saved:hover {
	color: var(--iga-wl-saved, #1b5fd9);
	background: var(--iga-wl-saved-bg, var(--iga-wl-bg, transparent));
	border-color: var(--iga-wl-saved-border, var(--iga-wl-border, transparent));
}
.iga-wl .iga-wl__btn.is-saved .iga-fill { fill: currentColor; }
.iga-wl .iga-wl__btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.iga-wl .iga-wl__btn:active { transform: scale(.94); }

.iga-wl-toast {
	position: fixed; z-index: 99999; bottom: 24px; left: 50%;
	display: flex; align-items: center; gap: 14px;
	max-width: calc(100vw - 32px); padding: 12px 18px;
	border-radius: 12px; background: #1f2937; color: #fff;
	font-size: 14px; line-height: 1.6; direction: rtl;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	opacity: 0; pointer-events: none;
	transform: translate(-50%, 12px); transition: opacity .2s, transform .2s;
}
.iga-wl-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.iga-wl-toast a { color: #93c5fd; font-weight: 700; text-decoration: none; white-space: nowrap; }
.iga-wl-toast a:hover { color: #bfdbfe; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.iga-wl .iga-wl__btn, .iga-wl-toast { transition: none; }
}
