/**
 * Simple WhatsApp Chat by Lispirazione - Frontend Styles
 * Ultra-ligero, responsivo, sin dependencias.
 */

.swal-container {
	position: fixed;
	bottom: 20px;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.swal-pos-right {
	right: 20px;
	flex-direction: row;
}

.swal-pos-left {
	left: 20px;
	flex-direction: row-reverse;
}

.swal-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background-color: var(--swal-color, #25D366);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	z-index: 2;
	animation: swal-pulse 2.5s infinite;
}

.swal-button:hover,
.swal-button:focus {
	transform: scale(1.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	outline: none;
}

.swal-icon {
	width: 32px;
	height: 32px;
	display: block;
}

.swal-tooltip {
	background-color: #fff;
	color: #333;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.3;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-width: 220px;
	position: relative;
	opacity: 0;
	transform: translateY(10px);
	animation: swal-fade-in 0.4s ease 0.6s forwards;
}

.swal-tooltip-text {
	display: inline-block;
	padding-right: 14px;
}

.swal-tooltip-close {
	position: absolute;
	top: 2px;
	right: 6px;
	cursor: pointer;
	font-size: 16px;
	color: #999;
	line-height: 1;
	user-select: none;
}

.swal-tooltip-close:hover {
	color: #333;
}

.swal-tooltip.swal-hidden {
	display: none;
}

/* Flecha del tooltip apuntando al botón */
.swal-pos-right .swal-tooltip::after {
	content: "";
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 0 6px 6px;
	border-style: solid;
	border-color: transparent transparent transparent #fff;
}

.swal-pos-left .swal-tooltip::after {
	content: "";
	position: absolute;
	left: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 6px 6px 0;
	border-style: solid;
	border-color: transparent #fff transparent transparent;
}

/* Animaciones */
@keyframes swal-pulse {
	0% {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(var(--swal-color-rgb), 0.6);
	}
	70% {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 15px rgba(var(--swal-color-rgb), 0);
	}
	100% {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(var(--swal-color-rgb), 0);
	}
}

@keyframes swal-fade-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsivo */
@media (max-width: 600px) {
	.swal-container {
		bottom: 15px;
	}
	.swal-pos-right {
		right: 15px;
	}
	.swal-pos-left {
		left: 15px;
	}
	.swal-button {
		width: 54px;
		height: 54px;
	}
	.swal-icon {
		width: 28px;
		height: 28px;
	}
	.swal-tooltip {
		max-width: 180px;
		font-size: 13px;
	}
}

/* Visibilidad por dispositivo */
@media (min-width: 769px) {
	.swal-container.swal-device-mobile {
		display: none;
	}
}

@media (max-width: 768px) {
	.swal-container.swal-device-desktop {
		display: none;
	}
}

/* Accesibilidad: respetar usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
	.swal-button {
		animation: none;
		transition: none;
	}
	.swal-tooltip {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
