/**
 * NUR GDPR / Cookie Notice — модальное окно (макет Figma).
 * Контракт DOM: #cookie-notice, .cookie-notice-container, .cn-set-cookie, #cn-close-notice (Cookie Notice plugin).
 */

/* Блокировка прокрутки (scroll-lock.js). Без position:fixed у body — иначе за оверлеем «пропадает» контент в Elementor. */
html.nur-gdpr-scroll-lock {
	overflow: hidden !important;
	overscroll-behavior: none;
}

body.nur-gdpr-scroll-lock {
	overflow: hidden !important;
	touch-action: none;
	overscroll-behavior: none;
}

#cookie-notice.nur-gdpr-root.cn-position-bottom,
#cookie-notice.nur-gdpr-root.cn-position-top {
	top: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
}

#cookie-notice.nur-gdpr-root {
	position: fixed;
	inset: 0;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	min-width: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	z-index: 2147483000;
	font-family: 'BebasNeueProBold', 'Bebas Neue', Impact, sans-serif;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	background: transparent;
	display: block;
	/* auto: иначе в части браузеров дети не получают клики при «мёртвом» родителе */
	pointer-events: auto;
	box-sizing: border-box;
}

#cookie-notice.nur-gdpr-root *,
#cookie-notice.nur-gdpr-root *::before,
#cookie-notice.nur-gdpr-root *::after {
	box-sizing: border-box;
}

/*
 * Скрытие: плагин вешает .cookie-notice-hidden и прячет только .cookie-notice-container.
 * После принятия может показаться .cookie-revoke-visible — корень остаётся на экране.
 */
#cookie-notice.nur-gdpr-root.cookie-notice-hidden:not(.cookie-revoke-visible) {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

#cookie-notice.nur-gdpr-root.cookie-notice-hidden.cookie-revoke-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

#cookie-notice.nur-gdpr-root.cookie-notice-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

#cookie-notice.nur-gdpr-root.cookie-revoke-visible {
	pointer-events: auto;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-backdrop {
	position: absolute;
	inset: 0;
	/* Светлее — лучше читается страница под модалкой (как в макете: затемнение, а не «чёрный лист»). */
	background: rgba(0, 0, 0, 0.35);
	z-index: 0;
	pointer-events: auto;
}

#cookie-notice.nur-gdpr-root .cookie-notice-container.nur-gdpr-modal {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: none;
	margin: 0;
	padding: 0 !important;
	background: transparent;
	pointer-events: auto;
	isolation: isolate;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-modal__surface {
	position: relative;
	z-index: 2;
	background: #fff;
	border-radius: 31px;
	padding: 36px 28px 52px;
	margin: 0 auto;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	max-width: min(642px, calc(100vw - 40px));
}

#cookie-notice.nur-gdpr-root .nur-gdpr-monsters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 14px;
	margin: 0 auto 20px;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-monster {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-monster img {
	display: block;
	width: auto;
	height: clamp(36px, 8vw, 48px);
	max-width: 52px;
	object-fit: contain;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-text.cn-text-container {
	display: block;
	width: 100% !important;
	max-width: 100%;
	margin: 0 auto 24px;
	padding: 0 8px;
	color: #000 !important;
	font-size: clamp(18px, 2.8vw, 24px);
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-text .nur-gdpr-inline-link {
	color: #000;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-text .nur-gdpr-inline-link:hover {
	opacity: 0.75;
}

#cookie-notice.nur-gdpr-root .cn-buttons-container.nur-gdpr-actions {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-accept.cn-button,
#cookie-notice.nur-gdpr-root a.nur-gdpr-accept,
#cookie-notice.nur-gdpr-root button.nur-gdpr-accept {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	padding: 14px 36px !important;
	margin: 0 auto -36px;
	position: relative;
	z-index: 4;
	border: none !important;
	border-radius: 32px !important;
	background: #b4f046 !important;
	color: #000 !important;
	font-family: inherit;
	font-size: clamp(18px, 2.5vw, 22px);
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease, filter 0.15s ease;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-accept:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

/* Кнопка закрытия: белый круг + × (без псевдо-элементов плагина) */
#cookie-notice.nur-gdpr-root .nur-gdpr-close.cn-close-icon {
	position: absolute;
	width: 55px;
	height: 55px;
	right: -12px;
	top: -12px;
	margin: 0;
	padding: 0;
	opacity: 1;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	z-index: 5;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	font: 0/0 a;
	color: transparent;
	overflow: visible;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-close.cn-close-icon::before {
	display: none !important;
	content: none !important;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-close.cn-close-icon::after {
	display: block !important;
	content: '' !important;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translate(-50%, -50%) rotate(45deg);
	background:
		linear-gradient(#000, #000) center/2px 100% no-repeat,
		linear-gradient(#000, #000) center/100% 2px no-repeat;
	pointer-events: none;
}

#cookie-notice.nur-gdpr-root .nur-gdpr-close.cn-close-icon:hover {
	transform: scale(1.04);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

#cookie-notice.nur-gdpr-root .nur-gdpr-close.cn-close-icon:focus {
	outline: 2px solid #b4f046;
	outline-offset: 2px;
}

/* Блок отзыва согласия (если включён в плагине) */
#cookie-notice.nur-gdpr-root .nur-gdpr-revoke.cookie-revoke-container {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 2;
	max-width: calc(100vw - 32px);
	padding: 12px 20px !important;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {
	#cookie-notice.nur-gdpr-root .nur-gdpr-modal__surface {
		padding: 32px 18px 48px;
		border-radius: 24px;
	}

	#cookie-notice.nur-gdpr-root .nur-gdpr-accept.cn-button,
	#cookie-notice.nur-gdpr-root a.nur-gdpr-accept,
	#cookie-notice.nur-gdpr-root button.nur-gdpr-accept {
		width: 100%;
		min-width: 0;
		margin-bottom: -32px;
	}
}
