/* The anchor stays put for the existing drag/panel controllers. Only its track moves. */
body .wa__btn_popup[data-gato-wa-text-entry] {
	--gato-wa-drawer-css: 1;
	width: var(--gato-wa-size, 60px);
	height: var(--gato-wa-size, 60px);
	pointer-events: none;
}
body .wa__btn_popup[data-gato-wa-text-entry]:not([data-gato-contact-positioned]) {
	left: auto !important;
	right: 16px !important;
}
/* Clip just this contact entry at the viewport edges, without changing page overflow. */
body .wa__btn_popup[data-gato-wa-text-entry] .gato-wa-drawer-viewport {
	position: absolute;
	left: var(--gato-wa-viewport-x, 0px);
	top: -12px;
	width: var(--gato-wa-viewport-width, 0px);
	height: calc(var(--gato-wa-size, 60px) + 24px);
	overflow: hidden;
	overflow: clip;
	visibility: hidden;
	pointer-events: none;
}
body .wa__btn_popup[data-gato-wa-drawer-ready] .gato-wa-drawer-viewport {
	visibility: inherit;
}
body .wa__btn_popup[data-gato-wa-text-entry] .gato-wa-drawer-track {
	position: absolute;
	left: var(--gato-wa-track-x, 0px);
	top: 12px;
	width: var(--gato-wa-size, 60px);
	height: var(--gato-wa-size, 60px);
	transform: translateX(var(--gato-wa-shift, 0px));
	pointer-events: none;
}
body .wa__btn_popup[data-gato-wa-drawer-ready] .gato-wa-drawer-track {
	transition: transform 320ms cubic-bezier(.22,.72,.24,1);
}
body .wa__btn_popup[data-gato-wa-icon-revealed] .gato-wa-drawer-track {
	transform: translateX(0);
}
body .wa__btn_popup[data-gato-wa-text-entry] .wa__btn_popup_txt {
	display: block !important;
	pointer-events: auto;
	cursor: pointer;
}
body .wa__btn_popup[data-gato-wa-text-entry] .wa__btn_popup_icon {
	opacity: 1;
	pointer-events: none;
}
body .wa__btn_popup[data-gato-wa-icon-revealed] .wa__btn_popup_icon {
	pointer-events: auto;
}
/* Keep the independent close control out of view until the track has arrived. */
html.gato-local-wa-drawer-moving body #gato-whatsapp-close,
html.gato-local-wa-text-idle body #gato-whatsapp-close {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
body .wa__btn_popup[data-gato-wa-text-entry]:focus-visible {
	outline: none;
}
body .wa__btn_popup[data-gato-wa-text-entry]:focus-visible .wa__btn_popup_txt {
	outline: 2px solid #0091db;
	outline-offset: 3px;
}
body .wa__btn_popup[data-gato-wa-text-entry].wa__active:focus-visible .wa__btn_popup_icon {
	outline: 2px solid #0091db;
	outline-offset: 3px;
}
@media (max-width: 1024px), (pointer: coarse) {
	body .wa__btn_popup[data-gato-wa-text-entry] .wa__btn_popup_txt {
		min-height: 44px;
		display: flex !important;
		align-items: center;
	}
}
@media (prefers-reduced-motion: reduce) {
	body .wa__btn_popup[data-gato-wa-drawer-ready] .gato-wa-drawer-track {
		transition: none;
	}
}
