/* GDW WhatsApp · botón fijo y bocadillo */

.gdw-wa {
	--gdw-wa-green: #25D366;
	--gdw-wa-green-dark: #1DA851;
	--gdw-wa-red: #E82828;
	position: fixed;
	right: 15px;
	bottom: 15px;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
	pointer-events: none;
}

.gdw-wa > * {
	pointer-events: auto;
}

/* Botón: 45 × 45 px, como el de preferencias de cookies de CookieYes */
.gdw-wa__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: var(--gdw-wa-green);
	box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
	transition: background-color .3s, transform .3s;
	animation: gdw-wa-pop .8s ease both;
}

.gdw-wa__button:hover,
.gdw-wa__button:focus-visible {
	background: var(--gdw-wa-green-dark);
	transform: scale(1.06);
}

.gdw-wa__button svg {
	width: 25px;
	height: 25px;
	fill: #FFFFFF;
}

/* Bocadillo: oculto hasta que gdw-whatsapp.js le pone .is-in */
.gdw-wa__bubble {
	position: relative;
	max-width: min(280px, calc(100vw - 40px));
	margin-right: 2px;
	padding: 10px 18px;
	border-radius: 16px;
	background: #FFFFFF;
	color: #1D1D1B;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: 0 6px 28px rgba(0, 0, 0, .16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}

/* Pico del bocadillo, hacia el botón */
.gdw-wa__bubble::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: -10px;
	border-style: solid;
	border-width: 12px 12px 0 0;
	border-color: #FFFFFF transparent transparent transparent;
}

/* Entra desde abajo */
.gdw-wa__bubble.is-in {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity .6s ease, transform .6s ease, visibility 0s;
}

/* Sale hacia arriba */
.gdw-wa__bubble.is-out {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-20px);
	pointer-events: none;
}

/* Botón de cerrar: aspa blanca sobre círculo rojo */
.gdw-wa__close {
	position: absolute;
	top: -9px;
	right: -9px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gdw-wa-red);
	cursor: pointer;
	transition: transform .2s;
}

.gdw-wa__close:hover,
.gdw-wa__close:focus-visible {
	background: var(--gdw-wa-red);
	transform: scale(1.1);
}

.gdw-wa__close svg {
	width: 9px;
	height: 9px;
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 1.8;
	stroke-linecap: round;
}

@keyframes gdw-wa-pop {
	0% {
		opacity: 0;
		transform: scale(0);
	}
	60% {
		opacity: 1;
		transform: scale(1.15);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gdw-wa__button,
	.gdw-wa__bubble,
	.gdw-wa__bubble.is-in {
		animation: none;
		transition: none;
	}
}
