/**
 * Баннер об использовании файлов cookie.
 * Все правила изолированы префиксом .ekcn-cookie-notice и не зависят от темы.
 */

.ekcn-cookie-notice,
.ekcn-cookie-notice * {
	box-sizing: border-box;
}

.ekcn-cookie-notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	margin: 0;
	background-color: #2b2b2b;
	color: #f2f2f2;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: 0 -4px 20px rgba( 0, 0, 0, 0.25 );
	padding: 14px 20px;
	padding-bottom: calc( 14px + env( safe-area-inset-bottom, 0px ) );
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.ekcn-cookie-notice--hidden {
	transform: translateY( 100% );
	opacity: 0;
	pointer-events: none;
}

.ekcn-cookie-notice__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.ekcn-cookie-notice .ekcn-cookie-notice__text {
	flex: 1 1 auto;
	min-width: 240px;
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-align: inherit;
	text-transform: none;
}

.ekcn-cookie-notice .ekcn-cookie-notice__link {
	color: #ffffff;
	text-decoration: underline;
	background: none;
	border: 0;
}

.ekcn-cookie-notice .ekcn-cookie-notice__link:hover,
.ekcn-cookie-notice .ekcn-cookie-notice__link:focus {
	color: #9ecbff;
	text-decoration: underline;
}

.ekcn-cookie-notice .ekcn-cookie-notice__btn {
	flex: 0 0 auto;
	display: inline-block;
	margin: 0;
	padding: 9px 28px;
	border: 0;
	border-radius: 3px;
	background-color: #935214;
	background-image: none;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
	appearance: none;
	transition: background-color 0.2s ease;
}

.ekcn-cookie-notice .ekcn-cookie-notice__btn:hover,
.ekcn-cookie-notice .ekcn-cookie-notice__btn:focus {
	background-color: #935214;
	color: #ffffff;
}

.ekcn-cookie-notice .ekcn-cookie-notice__btn:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

@media ( max-width: 600px ) {
	.ekcn-cookie-notice {
		padding: 12px 15px;
		padding-bottom: calc( 12px + env( safe-area-inset-bottom, 0px ) );
		font-size: 14px;
	}

	.ekcn-cookie-notice__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.ekcn-cookie-notice .ekcn-cookie-notice__text {
		min-width: 0;
	}

	.ekcn-cookie-notice .ekcn-cookie-notice__btn {
		width: 100%;
		padding: 11px 20px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.ekcn-cookie-notice {
		transition: none;
	}
}

@media print {
	.ekcn-cookie-notice {
		display: none !important;
	}
}
