/* Cookie consent banner — RTL, scoped so it cannot collide with theme styles. */

.numa-consent {
	position: fixed;
	z-index: 999999;
	inset-inline-end: 20px;
	inset-block-end: 20px;
	max-width: 420px;
	width: calc(100% - 40px);
	direction: rtl;
	font-family: inherit;
}

.numa-consent[hidden] {
	display: none !important;
}

.numa-consent__box {
	position: relative;
	background: #fff;
	color: #1c1c1c;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
	padding: 22px 22px 18px;
}

.numa-consent__x {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-end: 12px;
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: #8a8a8a;
	cursor: pointer;
	padding: 4px;
}

.numa-consent__x:hover {
	color: #1c1c1c;
}

.numa-consent__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #1c1c1c;
}

.numa-consent__text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.7;
	color: #4a4a4a;
}

.numa-consent__text a {
	color: #c0392b;
	text-decoration: underline;
}

/* Preferences */

.numa-consent__prefs {
	border-block-start: 1px solid #ededed;
	padding-block-start: 12px;
	margin-block-end: 14px;
}

.numa-consent__prefs[hidden] {
	display: none !important;
}

.numa-consent__row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 8px 0;
	cursor: pointer;
}

.numa-consent__row input {
	margin-block-start: 3px;
	flex: 0 0 auto;
}

.numa-consent__row strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.numa-consent__row em {
	display: block;
	font-style: normal;
	font-size: 12.5px;
	color: #6b6b6b;
	line-height: 1.5;
}

/* Actions — refusing must be as easy and as prominent as accepting. */

.numa-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.numa-consent__btn {
	flex: 1 1 auto;
	min-width: 108px;
	padding: 11px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	border: 1px solid #d0d0d0;
	background: #f6f6f6;
	color: #1c1c1c;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.numa-consent__btn:hover {
	background: #ededed;
	border-color: #b8b8b8;
}

.numa-consent__btn--primary {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

.numa-consent__btn--primary:hover {
	background: #a93226;
	border-color: #a93226;
}

.numa-consent__btn--ghost {
	background: transparent;
	border-color: transparent;
	text-decoration: underline;
	flex: 0 0 auto;
	min-width: 0;
}

.numa-consent__btn--ghost:hover {
	background: transparent;
	border-color: transparent;
}

.numa-consent__btn[hidden] {
	display: none !important;
}

@media (max-width: 520px) {
	.numa-consent {
		inset-inline-end: 10px;
		inset-inline-start: 10px;
		inset-block-end: 10px;
		width: auto;
		max-width: none;
	}
}

/* Section 11 notice under the contact form */

.numa-form-notice {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: inherit;
	opacity: .85;
	direction: rtl;
}

.numa-form-notice a {
	text-decoration: underline;
}

/* Persistent way back into the consent choices (withdrawal at any time). */

.numa-cookie-link {
	position: fixed;
	inset-inline-start: 12px;
	inset-block-end: 12px;
	z-index: 99998;
	padding: 6px 12px;
	font: inherit;
	font-size: 12.5px;
	line-height: 1.2;
	color: #1c1c1c;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.numa-cookie-link:hover,
.numa-cookie-link:focus-visible {
	background: #f3f3f3;
	outline: 2px solid #1c1c1c;
	outline-offset: 2px;
}

/* The footer form sits on a dark background, where the inherited text colour was unreadable. */
.elementor-location-footer .numa-form-notice {
	color: #e8e8e8;
	opacity: 1;
}

.elementor-location-footer .numa-form-notice a {
	color: #fff;
}

/* Phones: a slim bar along the bottom edge instead of a card covering the page. */
@media (max-width: 767px) {
	.numa-consent {
		inset-inline: 0;
		inset-block-end: 0;
		width: 100%;
		max-width: none;
	}

	.numa-consent__box {
		border-radius: 10px 10px 0 0;
		border-inline: 0;
		border-block-end: 0;
		padding: 8px 12px 10px;
	}

	.numa-consent__title {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.numa-consent__x {
		inset-block-start: 2px;
		inset-inline-end: 6px;
		font-size: 20px;
	}

	.numa-consent__text {
		margin: 0 0 7px;
		padding-inline-end: 24px;
		font-size: 12.5px;
		line-height: 1.45;
	}

	.numa-consent__actions {
		flex-wrap: nowrap;
		gap: 6px;
	}

	.numa-consent__btn,
	.numa-consent__btn--ghost {
		flex: 1 1 0;
		min-width: 0;
		padding: 8px 4px;
		font-size: 13px;
		border: 1px solid #d0d0d0;
		text-decoration: none;
	}

	.numa-consent__prefs {
		max-height: 45vh;
		overflow-y: auto;
	}
}
