/**
 * Floating sidebar menu — sticky CTA on the right edge.
 */

.cmc-floating-menu {
	position: fixed;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 15;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cmc-floating-menu__panel {
	background: var(--wp--preset--color--white, #fff);
	border: 2px solid var(--wp--preset--color--blue-dark, #1b2e59);
	border-radius: 16px;
	padding: 1rem 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	width: 100px;
}

.cmc-floating-menu__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	text-decoration: none;
	color: var(--wp--preset--color--blue-dark, #1b2e59);
	border-radius: 12px;
	transition: background-color 0.2s ease;
}

.cmc-floating-menu__item:hover {
	background-color: var(--wp--preset--color--soft-blue, #e8edf5);
}

.cmc-floating-menu__icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cmc-floating-menu__icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.cmc-floating-menu__label {
	font-family: var(--wp--preset--font-family--body, sans-serif);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
	color: inherit;
}

/* Mobile: bottom tab bar */
@media (max-width: 1024px) {
	.cmc-floating-menu {
		position: fixed;
		right: 1rem;
		left: 1rem;
		bottom: 1rem;
		top: auto;
		transform: none;
		z-index: 9;
		flex-direction: row;
		max-width: 100%;
		box-sizing: border-box;
	}

	.cmc-floating-menu__panel {
		flex-direction: row;
		width: 100%;
		padding: 0.5rem 0;
		gap: 0;
		justify-content: space-around;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
	}

	.cmc-floating-menu__item {
		flex: 1;
		gap: 0.25rem;
		padding: 0.25rem 0;
	}

	.cmc-floating-menu__icon {
		width: 24px;
		height: 24px;
	}

	.cmc-floating-menu__icon img {
		width: 24px;
		height: 24px;
	}

	.cmc-floating-menu__label {
		font-size: 0.625rem;
	}

	/* Add bottom padding to body so content isn't hidden behind tab bar */
	body {
		padding-bottom: 70px;
	}

	/* Hide on single-creche and find-creche pages */
	.single-creche .cmc-floating-menu,
	.page-find-creche .cmc-floating-menu {
		display: none;
	}
}
