/*
 * Floating WhatsApp button + sticky mobile booking bar.
 * Logical properties only, so RTL and LTR need no direction overrides.
 */

.androcare360-has-booking-bar {
	--androcare360-bar-height: 4rem;
	--androcare360-cta-gap: 1rem;
	/* Room for the 44px+ Blocksy back-to-top button that sits at the bottom inline-end corner. */
	--androcare360-backtop-clearance: 4.5rem;
	padding-block-end: var(--androcare360-bar-height);
}

/* Sticky booking bar (mobile only). */
.androcare360-booking-bar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 998;
	display: flex;
	min-block-size: var(--androcare360-bar-height);
	padding: 0.5rem 1rem;
	padding-block-end: calc(0.5rem + env(safe-area-inset-bottom, 0px));
	background: var(--white, #fff);
	box-shadow: 0 -4px 16px rgba(15, 32, 87, 0.12);
}

.androcare360-booking-bar__link {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-block-size: 3rem;
	border-radius: 0.75rem;
	background: var(--cta, #ff8a34);
	color: var(--text, #1a1a2e);
	font-size: 1.0625rem;
	font-weight: 800;
	text-decoration: none;
}

.androcare360-booking-bar__link:hover {
	background: #f07a22;
	color: var(--text, #1a1a2e);
}

/* WhatsApp button: white on #0a7d3e is 5.2:1. */
.androcare360-whatsapp-fab {
	position: fixed;
	inset-inline-end: var(--androcare360-cta-gap, 1rem);
	inset-block-end: var(--androcare360-cta-gap, 1rem);
	z-index: 997;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-inline-size: 3.25rem;
	min-block-size: 3.25rem;
	border-radius: 999px;
	background: #0a7d3e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.androcare360-whatsapp-fab:hover {
	background: #096a35;
	color: #fff;
	transform: translateY(-2px);
}

.androcare360-whatsapp-fab:focus-visible,
.androcare360-booking-bar__link:focus-visible {
	outline: 3px solid var(--primary-dark, #0f2057);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #fff;
}

.androcare360-cta__icon {
	inline-size: 1.75rem;
	block-size: 1.75rem;
	fill: none;
	stroke: currentcolor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The label is only for wide screens; the icon button keeps its accessible name through aria-label. */
.androcare360-whatsapp-fab__label {
	display: none;
}

/* Mobile: lift the button above the bar and the back-to-top button above both. */
.androcare360-has-booking-bar .androcare360-whatsapp-fab {
	inset-block-end: calc(var(--androcare360-bar-height) + var(--androcare360-cta-gap) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
	.androcare360-booking-bar {
		display: none;
	}

	.androcare360-has-booking-bar {
		padding-block-end: 0;
	}

	.androcare360-whatsapp-fab,
	.androcare360-has-booking-bar .androcare360-whatsapp-fab {
		inset-block-end: var(--androcare360-backtop-clearance);
		padding-inline: 1.25rem;
	}

	.androcare360-whatsapp-fab__label {
		display: inline;
	}
}

/* Back-to-top (Blocksy .ct-back-to-top) must clear the bar on mobile only. */
@media (max-width: 767.98px) {
	.androcare360-has-booking-bar .ct-back-to-top {
		inset-block-end: calc(var(--androcare360-bar-height) + var(--androcare360-backtop-clearance) + var(--androcare360-cta-gap));
	}
}

@media (prefers-reduced-motion: reduce) {
	.androcare360-whatsapp-fab {
		transition: none;
	}

	.androcare360-whatsapp-fab:hover {
		transform: none;
	}
}
