/* Cookie notice (Google Analytics consent): a card in the bottom corner, full width on phones.
   Direction B of the mockup (Reut, 24/11/2026). Loaded only when Settings > מדידה ו-Google has an ID. */
.mcn[hidden] {
	display: none;
}

.mcn {
	position: fixed;
	z-index: 45; /* under the header (50) and the mobile menu (49), so neither is ever covered */
	inset-block-end: 24px;
	inset-inline: auto 24px;
	inline-size: 380px;
	background: #ffffff;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 14px 40px rgba(20, 50, 60, 0.16);
	font-family: var(--font-body);
	animation: mcn-in 0.3s ease-out;
}

@keyframes mcn-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.mcn-in {
	padding: 20px 22px 18px;
}

.mcn-t {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
}

.mcn-p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--muted);
}

.mcn-p a {
	color: var(--primary-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.mcn-nw {
	white-space: nowrap;
}

.mcn-btns {
	display: flex;
	gap: 10px;
	margin-block-start: 14px;
}

.mcn-btns .btn {
	flex: 1 1 0;
	justify-content: center;
	min-block-size: 46px;
	padding: 0.75em 1.3em;
}

@media (max-width: 760px) {
	.mcn {
		inset-block-end: calc(12px + env(safe-area-inset-bottom, 0px));
		inset-inline: 12px;
		inline-size: auto;
	}

	.mcn-in {
		padding: 16px 18px 14px;
	}
}

/* The footer button that opens the notice again looks like the other footer links. */
.mcn-foot {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.mcn-foot:hover {
	color: var(--primary-ink);
	text-decoration: underline;
}

/* "This browser is (not) measured" message after ?no-analytics=1 / =0. */
.mcn-toast {
	position: fixed;
	z-index: 1000;
	inset-block-start: calc(var(--top-offset) + var(--hdr-h) + 12px);
	inset-inline: 50% auto;
	transform: translateX(50%);
	margin: 0;
	padding: 10px 18px;
	background: var(--ink);
	color: #ffffff;
	border-radius: var(--btn-radius);
	font-size: 0.9375rem;
	box-shadow: var(--card-shadow);
}

/* Accessibility menu: high contrast and "stop animations". */
html.a11y-contrast .mcn {
	border-color: var(--ink);
}

html.a11y-contrast .mcn-p {
	color: var(--ink);
}

html.a11y-still .mcn {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.mcn {
		animation: none;
	}
}
