/**
 * Floating WhatsApp contact button (bottom-right). Pill that expands to reveal
 * its label on hover/focus. Sits clear of the segment rail (right-centre) and
 * below modals/consent banner.
 *
 * @package Atolyeman
 */

.at-whatsapp {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	width: 56px;
	padding: 0;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	transition: width 0.28s ease, border-radius 0.28s ease, padding 0.28s ease, background 0.2s ease;
}

.at-whatsapp:hover,
.at-whatsapp:focus-visible {
	width: auto;
	border-radius: 30px;
	padding: 0 22px 0 14px;
	background: #1fb457;
	color: #fff;
	outline: none;
}

.at-whatsapp__icon {
	width: 30px;
	height: 30px;
	fill: currentColor;
	flex: none;
}

.at-whatsapp__label {
	white-space: nowrap;
	font-weight: 600;
	font-size: 0.9375rem;
	max-width: 0;
	opacity: 0;
	margin-left: 0;
	transition: max-width 0.28s ease, opacity 0.2s ease, margin-left 0.28s ease;
}

.at-whatsapp:hover .at-whatsapp__label,
.at-whatsapp:focus-visible .at-whatsapp__label {
	max-width: 260px;
	opacity: 1;
	margin-left: 10px;
}

@media (max-width: 600px) {
	.at-whatsapp {
		right: 14px;
		bottom: 14px;
		height: 52px;
		width: 52px;
	}
	/* On small screens keep it a compact circle — no hover to expand anyway. */
	.at-whatsapp:hover,
	.at-whatsapp:focus-visible {
		width: 52px;
		border-radius: 50%;
		padding: 0;
	}
	.at-whatsapp:hover .at-whatsapp__label,
	.at-whatsapp:focus-visible .at-whatsapp__label {
		max-width: 0;
		opacity: 0;
		margin-left: 0;
	}
}
