/* ==========================================================================
   הסכמה לעוגיות — באנר + חלון הגדרות. "דחייה" בולט בדיוק כמו "אישור" (בלי דפוסי הטעיה).
   ========================================================================== */

#mz-consent-banner {
	position: fixed;
	right: 18px;
	left: 90px;           /* leaves room for the accessibility button on the left */
	bottom: 18px;
	z-index: 99990;
	max-width: 980px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 24px;
	border-radius: 12px;
	border: 1px solid rgba(0, 180, 216, .5);
	background: #161F2C;
	color: #E8EEF6;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
	direction: rtl;
	font: 400 16px/1.5 Heebo, Arial, sans-serif;
	animation: mz-c-up .45s cubic-bezier(.2, .9, .25, 1);
}

@keyframes mz-c-up { from { transform: translateY(24px); opacity: 0; } }

#mz-consent-banner h2,
#mz-consent-dialog h2 {
	margin: 0 0 4px;
	font: 700 19px/1.3 Heebo, Arial, sans-serif;
	color: #fff;
}

#mz-consent-banner p { margin: 0; color: rgba(255, 255, 255, .85); }

#mz-consent-banner a,
#mz-consent-dialog a { color: #5FD3EC; text-decoration: underline; }

.mz-consent-text { flex: 1 1 auto; min-width: 0; }

.mz-consent-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 0 0 auto;
}

.mz-c-btn {
	padding: 11px 22px;
	border-radius: 40px;
	font: 700 15px/1.2 Heebo, Arial, sans-serif;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

.mz-c-primary { border: 2px solid #00B4D8; background: #00B4D8; color: #0F141C; }
.mz-c-primary:hover { background: #fff; border-color: #fff; }
.mz-c-secondary { border: 2px solid #fff; background: transparent; color: #fff; }
.mz-c-secondary:hover { background: #fff; color: #0F141C; }
.mz-c-link { border: 0; background: none; color: #5FD3EC; text-decoration: underline; padding: 6px; }

.mz-c-btn:focus-visible,
.mz-c-close:focus-visible,
#mz-consent-dialog input:focus-visible,
#mz-consent-banner a:focus-visible,
#mz-consent-dialog a:focus-visible {
	outline: 3px solid #FFE600;
	outline-offset: 3px;
}

/* ---------- settings dialog ---------- */
#mz-consent-dialog {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: grid;
	place-items: center;
	direction: rtl;
	font: 400 16px/1.5 Heebo, Arial, sans-serif;
}

.mz-c-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 16, .78); }

.mz-c-panel {
	position: relative;
	width: min(620px, calc(100vw - 32px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 30px 30px 24px;
	border-radius: 12px;
	background: #161F2C;
	border: 1px solid rgba(0, 180, 216, .5);
	color: #E8EEF6;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.mz-c-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mz-c-lead { margin: 0 0 12px; color: rgba(255, 255, 255, .8); }

.mz-c-row {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 16px 0;
	border-top: 1px solid rgba(0, 180, 216, .3);
}

.mz-c-row-text { flex: 1 1 auto; }
.mz-c-row label { font-weight: 700; font-size: 17px; color: #fff; }
.mz-c-row p { margin: 4px 0 0; font-size: 15px; color: rgba(255, 255, 255, .75); }

.mz-c-always {
	margin-inline-start: 8px;
	padding: 2px 10px;
	border-radius: 40px;
	background: rgba(0, 180, 216, .18);
	color: #5FD3EC;
	font-size: 13px;
	font-weight: 500;
}

/* switch */
.mz-c-row input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 52px;
	height: 30px;
	margin-top: 2px;
	border-radius: 30px;
	background: #3A4659;
	position: relative;
	cursor: pointer;
	transition: background-color .2s;
}

.mz-c-row input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}

.mz-c-row input[type="checkbox"]:checked { background: #00B4D8; }
.mz-c-row input[type="checkbox"]:checked::after { transform: translateX(-22px); }
.mz-c-row input[type="checkbox"]:disabled { opacity: .6; cursor: not-allowed; }

.mz-c-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(0, 180, 216, .3); }
.mz-c-foot { margin: 14px 0 0; font-size: 14px; }

html.mz-consent-open,
html.mz-consent-open body { overflow: hidden; }

@media (max-width: 767px) {
	#mz-consent-banner {
		right: 10px;
		left: 10px;
		bottom: 10px;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 18px;
	}
	.mz-consent-actions { flex-direction: column; }
	.mz-c-btn { white-space: normal; }
	.mz-c-dialog-actions .mz-c-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	#mz-consent-banner { animation: none; }
	.mz-c-row input[type="checkbox"],
	.mz-c-row input[type="checkbox"]::after { transition: none; }
}

@media print {
	#mz-consent-banner, #mz-consent-dialog { display: none !important; }
}
