/**
 * ElementorPlus — Botão de Favoritos com contador (Wishlist Button).
 *
 * Ícone (coração/estrela/marcador) com um selo de contagem no canto superior
 * direito — estilo "ícone com badge". Cores/tamanhos são controlados por
 * variáveis CSS definidas pelos controles do widget.
 */

.epwlb-wrap {
	display: flex;
	align-items: center;
	width: 100%;
}

.epwlb-btn {
	--epwlb-icon: 26px;
	--epwlb-badge: 20px;
	--epwlb-color: #22c55e;

	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	line-height: 0;
	text-decoration: none;
	color: var(--epwlb-color);
	transition: color .18s ease, background-color .18s ease, transform .06s ease;
	-webkit-tap-highlight-color: transparent;
}

.epwlb-btn:active {
	transform: scale(.94);
}

.epwlb-icon {
	display: inline-flex;
	color: var(--epwlb-color);
	transition: color .18s ease;
}

.epwlb-icon svg {
	width: var(--epwlb-icon);
	height: var(--epwlb-icon);
	display: block;
}

/* Selo de contagem no canto superior direito do ícone. */
.epwlb-badge {
	position: absolute;
	top: 2px;
	left: calc( var(--epwlb-icon) - 2px );
	min-width: var(--epwlb-badge);
	height: var(--epwlb-badge);
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 999px;
	border: 2px solid #0e131c;
	background: #22c55e;
	color: #0b1220;
	font-size: calc( var(--epwlb-badge) * 0.55 );
	font-weight: 700;
	line-height: 1;
	font-family: inherit;
	transform: translate( -35%, -10% );
	transition: transform .2s cubic-bezier( .34, 1.56, .64, 1 ), opacity .15s ease;
}

.epwlb-badge.is-hidden {
	opacity: 0;
	transform: translate( -35%, -10% ) scale( 0 );
	pointer-events: none;
}

/* Animação de "pulso" quando a contagem muda. */
.epwlb-badge.epwlb-bump {
	animation: epwlb-bump .35s cubic-bezier( .34, 1.56, .64, 1 );
}

@keyframes epwlb-bump {
	0%   { transform: translate( -35%, -10% ) scale( 1 ); }
	40%  { transform: translate( -35%, -10% ) scale( 1.35 ); }
	100% { transform: translate( -35%, -10% ) scale( 1 ); }
}

.epwlb-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #e8e8e8;
}

/* Só para leitores de tela (contagem acessível). */
.epwlb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.epwlb-btn,
	.epwlb-badge {
		transition: none;
		animation: none;
	}
}
