.wap {
	--wap-color: #04A77B;
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	font-family: inherit;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
}
.wap--right { right: 20px; align-items: flex-end; }
.wap--left  { left: 20px; align-items: flex-start; }
.wap *, .wap *::before, .wap *::after { box-sizing: border-box; }

/* Botón flotante ---------------------------------------------------------- */
.wap__btn {
	height: 60px;
	min-width: 60px;
	border-radius: 999px;
	border: 0;
	padding: 0 13px;
	background: var(--wap-color);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font: inherit;
	font-size: 17px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wap--text .wap__btn { height: 52px; border-radius: 8px; padding: 0 18px 0 14px; }
.wap__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); filter: brightness(1.05); }
.wap__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--wap-color); }

.wap__ico { display: inline-flex; width: 34px; height: 34px; }
.wap--text .wap__ico { width: 28px; height: 28px; }
.wap__icon { width: 100%; height: 100%; display: block; object-fit: contain; }
.wap__label { white-space: nowrap; }

/* Panel ------------------------------------------------------------------- */
.wap__panel {
	width: 370px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 120px);
	margin-bottom: 16px;
	background: #fff;
	color: #333;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	position: absolute;
	bottom: 100%;
}
.wap--right .wap__panel { right: 0; }
.wap--left  .wap__panel { left: 0; }
.wap.is-open .wap__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .2s ease, transform .2s ease;
}

.wap__close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
	opacity: .85;
	z-index: 1;
}
.wap__close:hover { opacity: 1; }

.wap__head {
	background: var(--wap-color);
	color: #fff;
	padding: 20px 34px 18px;
	text-align: center;
	font-size: 16px;
	flex-shrink: 0;
}

.wap__privacy { padding: 12px 18px 4px; font-size: 15px; flex-shrink: 0; }
.wap__privacy label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; margin: 0; }
.wap__privacy input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--wap-color); }
.wap__privacy a { color: #d00; text-decoration: none; }
.wap__privacy a:hover { text-decoration: underline; }
.wap__error { margin: 6px 0 0; font-size: 13px; color: #c00; }
.wap__privacy.is-shake { animation: wap-shake .35s; }
@keyframes wap-shake {
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

.wap__list {
	padding: 10px 18px 18px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.wap__agent {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e6e6e6;
	border-left: 4px solid var(--wap-color);
	border-radius: 6px;
	color: #555 !important;
	text-decoration: none !important;
	background: #fff;
	transition: background .15s, box-shadow .15s, transform .15s;
}
.wap__agent:hover,
.wap__agent:focus-visible {
	background: #f5fbf9;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	transform: translateY(-1px);
	outline: none;
}
.wap__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wap__info { display: flex; flex-direction: column; min-width: 0; }
.wap__name { font-weight: 700; font-size: 16px; color: #444; }
.wap__zones { font-size: 14px; color: #666; }

.wap.is-locked .wap__agent { opacity: .55; }

@media (max-width: 480px) {
	.wap { bottom: 14px; }
	.wap--right { right: 14px; }
	.wap--left  { left: 14px; }
	.wap__panel { width: calc(100vw - 28px); max-width: none; }
	.wap--text .wap__btn { height: 48px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.wap *, .wap__panel { transition: none !important; animation: none !important; }
}
