/* "Book via WhatsApp" — see whatsapp-booking.php */
.mwa {
	--mwa-green: #25D366;
	--mwa-green-d: #1EBE5A;
	--mwa-green-ink: #04301A;
	--mwa-navy: #0B0BA8;
	--mwa-ink: #0D1236;
	--mwa-muted: #596080;
	--mwa-line: #E5E7F2;
	--mwa-soft: #F2F3FA;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--mwa-ink);
	-webkit-font-smoothing: antialiased;
}
.mwa *, .mwa *::before, .mwa *::after { box-sizing: border-box; }
.mwa-i { flex: none; }

/* ---------- Buttons ---------- */
.mwa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mwa a.mwa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 14px 26px; border-radius: 999px;
	background: var(--mwa-green); color: var(--mwa-green-ink);
	font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
	box-shadow: 0 8px 20px -10px rgba(37, 211, 102, .9);
	transition: background-color .15s, transform .15s;
}
.mwa a.mwa-btn:hover, .mwa a.mwa-btn:focus-visible { background: var(--mwa-green-d); color: var(--mwa-green-ink); transform: translateY(-1px); }
.mwa a.mwa-btn:focus-visible { outline: 3px solid var(--mwa-navy); outline-offset: 3px; }
.mwa-btn__short { display: none; }
.mwa a.mwa-phone {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	color: var(--mwa-ink); font-size: 16px; font-weight: 600; text-decoration: none;
}
.mwa a.mwa-phone:hover, .mwa a.mwa-phone:focus-visible { color: var(--mwa-navy); text-decoration: underline; }

/* ---------- Floating button (bottom right, follows the scroll) ---------- */
.mwa-fab {
	position: fixed; right: 20px; bottom: 20px; z-index: 9989;
	display: flex; flex-direction: column; align-items: flex-end;
	/* The box spans the (hidden) card too — let taps through to the page; only the button / open card catch them. */
	pointer-events: none;
}
.mwa-fab > * { pointer-events: auto; }
.mwa a.mwa-fab__btn {
	position: relative; display: inline-flex; align-items: center; justify-content: flex-end;
	height: 60px; min-width: 60px; padding: 0; border-radius: 999px;
	background: var(--mwa-green); color: #fff; text-decoration: none;
	box-shadow: 0 10px 24px -8px rgba(4, 48, 26, .55), 0 0 0 1px rgba(4, 48, 26, .08);
	animation: mwa-in .4s ease-out .6s both;
	transition: background-color .15s;
}
.mwa a.mwa-fab__btn:hover, .mwa a.mwa-fab__btn:focus-visible { background: var(--mwa-green-d); color: #fff; }
.mwa a.mwa-fab__btn:focus-visible { outline: 3px solid var(--mwa-navy); outline-offset: 3px; }
.mwa-fab__ico { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none; }
.mwa-fab__ico .mwa-i { width: 32px; height: 32px; stroke-width: 2; }
/* Label slides out of the circle on hover / when open. */
.mwa-fab__label {
	max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
	color: var(--mwa-green-ink); font-size: 16px; font-weight: 700; line-height: 1;
	transition: max-width .3s ease, opacity .2s ease, padding .3s ease;
}
/* Pulse ring — draws the eye a couple of times, then stops. */
.mwa a.mwa-fab__btn::after {
	content: ""; position: absolute; right: 0; bottom: 0; width: 60px; height: 60px; border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: mwa-pulse 2s ease-out 1.2s 3; pointer-events: none;
}

.mwa-fab__card {
	position: relative; width: min(320px, calc(100vw - 40px)); margin-bottom: 14px; padding: 20px 18px 16px;
	background: #fff; border: 1px solid var(--mwa-line); border-radius: 16px;
	box-shadow: 0 20px 40px -16px rgba(13, 18, 54, .35);
	display: grid; gap: 10px;
	opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: bottom right;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
/* Invisible bridge so the pointer can travel from the button to the card. */
.mwa-fab__card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; }
.mwa-fab__card p { margin: 0; }
.mwa-fab__lead { padding-right: 28px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.mwa-fab__note { font-size: 13px; line-height: 1.4; color: var(--mwa-muted); }
.mwa-fab__card a.mwa-btn { width: 100%; min-height: 50px; padding: 12px 16px; font-size: 16px; }
.mwa-fab__card .mwa-btn__long { display: none; }
.mwa-fab__card .mwa-btn__short { display: inline; }
.mwa-fab__card a.mwa-phone { justify-content: center; font-size: 15px; }
.mwa button.mwa-fab__close {
	position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; padding: 0; margin: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--mwa-muted); cursor: pointer; box-shadow: none; min-height: 0;
}
.mwa button.mwa-fab__close:hover, .mwa button.mwa-fab__close:focus-visible { background: var(--mwa-soft); color: var(--mwa-ink); }

/* Open: hover (mouse), keyboard focus, or .is-open (tap, set by JS). */
@media (hover: hover) {
	.mwa-fab:hover .mwa-fab__card { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.mwa-fab:hover .mwa-fab__label { max-width: 260px; opacity: 1; padding-left: 22px; }
}
.mwa-fab:focus-within .mwa-fab__card,
.mwa-fab.is-open .mwa-fab__card { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mwa-fab.is-closed .mwa-fab__card { opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transition-delay: 0s, 0s, .2s; }
/* Label only with a mouse/keyboard — on touch the open card already says it. */
@media (hover: hover) {
	.mwa-fab:focus-within .mwa-fab__label { max-width: 260px; opacity: 1; padding-left: 22px; }
	.mwa-fab.is-closed .mwa-fab__label { max-width: 0; opacity: 0; padding-left: 0; }
}

@keyframes mwa-in { from { opacity: 0; transform: translateY(16px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes mwa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

/* Phones / tablets: keep clear of the bottom tab bar (64px, site-header.css). */
@media (max-width: 1023px) {
	.mwa-fab { right: 14px; bottom: calc(64px + 14px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	.mwa-actions { gap: 8px; }
	.mwa a.mwa-btn { width: 100%; }
	.mwa a.mwa-phone { justify-content: center; width: 100%; }
}
@media (max-width: 479px) {
	.mwa-btn__long { display: none; }
	.mwa-btn__short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
	.mwa a.mwa-btn, .mwa a.mwa-fab__btn, .mwa-fab__label, .mwa-fab__card { transition: none; }
	.mwa a.mwa-btn:hover { transform: none; }
	.mwa a.mwa-fab__btn, .mwa a.mwa-fab__btn::after { animation: none; }
}
