/**
 * Botón flotante de WhatsApp (ver includes/whatsapp.php).
 * Alto sobre el borde inferior: 150 px, como tenía Joinchat, para no tapar las barras
 * fijas del tema en el celular.
 */
.sym-wa {
	--sym-wa-green: #25d366;
	--sym-wa-green-dark: #128c7e;
	--sym-wa-bottom: 150px;
	position: fixed;
	right: 20px;
	bottom: var(--sym-wa-bottom);
	z-index: 999999;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sym-wa__icon {
	width: 100%;
	height: 100%;
	display: block;
}

.sym-wa__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 14px;
	border: 0;
	border-radius: 50%;
	background: var(--sym-wa-green);
	color: #fff;
	box-shadow: 0 6px 20px rgba(7, 94, 84, 0.3);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sym-wa__button:hover,
.sym-wa__button[aria-expanded="true"] {
	background: var(--sym-wa-green-dark);
}

.sym-wa__button:hover {
	transform: scale(1.05);
}

.sym-wa__button:focus-visible,
.sym-wa__cta:focus-visible,
.sym-wa__close:focus-visible,
.sym-wa-product__btn:focus-visible {
	outline: 3px solid #111317;
	outline-offset: 3px;
}

.sym-wa__panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: min(340px, calc(100vw - 40px));
	border-radius: 18px;
	background: #efeae2;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transform-origin: bottom right;
	animation: sym-wa-in 0.22s ease-out both;
}

.sym-wa__panel[hidden] {
	display: none;
}

.sym-wa__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #075e54;
	color: #fff;
}

.sym-wa__avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--sym-wa-green);
}

.sym-wa__who {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.sym-wa__who strong {
	font-size: 16px;
	color: #fff;
}

.sym-wa__who small {
	font-size: 12px;
	opacity: 0.85;
}

.sym-wa__close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
}

.sym-wa__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.sym-wa__body {
	padding: 18px 16px 6px;
}

.sym-wa__bubble {
	position: relative;
	margin: 0;
	padding: 12px 14px;
	border-radius: 0 12px 12px 12px;
	background: #fff;
	color: #303030;
	font-size: 15px;
	line-height: 1.45;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.sym-wa__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 14px 16px 16px;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--sym-wa-green);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.sym-wa__cta:hover {
	background: var(--sym-wa-green-dark);
}

.sym-wa__cta .sym-wa__icon {
	width: 20px;
	height: 20px;
}

/* Botón de la ficha de producto. */
.sym-wa-product {
	clear: both;
	margin: 0 0 16px;
}

.sym-wa-product__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 10px 20px 10px 14px;
	border-radius: 999px;
	background: var(--sym-wa-green, #25d366);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.sym-wa-product__btn:hover {
	background: #128c7e;
}

.sym-wa-product__btn .sym-wa__icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
}

@media (max-width: 480px) {
	.sym-wa {
		right: 12px;
	}

	.sym-wa__button {
		width: 54px;
		height: 54px;
		padding: 12px;
	}

	.sym-wa__panel {
		bottom: 68px;
		width: calc(100vw - 24px);
	}
}

@keyframes sym-wa-in {
	from {
		opacity: 0;
		transform: scale(0.85) translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sym-wa__panel,
	.sym-wa__button {
		animation: none;
		transition: none;
	}
}
