/* Баннер согласия на cookie — partials/_cookie_consent.phtml, public/js/cookie-consent.js.
   Подключается напрямую (не через js_css_minifier и не через scss лендинга).
   Палитра сайта: фон #10141b, акцент #42c5d9, шрифт Open Sans. */

.cc [hidden],
.cc__overlay[hidden],
.cc__fab[hidden] { display: none !important; }

html.cc-open { overflow: hidden; }

.cc { font-family: 'Open Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }

/* плавающая кнопка настроек (внизу слева; чат-виджет сайта — внизу справа) */
.cc__fab {
	position: fixed;
	z-index: 500;
	left: 15px;
	bottom: 15px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	margin: 0;
	background: #10141b;
	color: #42c5d9;
	box-shadow: 0 4px 16px rgba(16, 20, 27, .35);
	cursor: pointer;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	transition: background-color .2s ease-out, transform .2s ease-out;
}
.cc__fab:hover { background: #1b222c; transform: scale(1.06); }
.cc__fab:focus { outline: 2px solid #42c5d9; outline-offset: 2px; }
.cc__fab svg { display: block; }
@media (min-width: 576px) {
	.cc__fab { left: 24px; bottom: 24px; }
}

/* подложка */
.cc__overlay {
	position: fixed;
	z-index: 10000;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(16, 20, 27, .65);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: end;
	-ms-flex-align: end;
	align-items: flex-end;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 0;
	-webkit-overflow-scrolling: touch;
}

/* окно: на мобильном — шторка снизу, на десктопе — по центру */
.cc__dialog {
	position: relative;
	width: 100%;
	max-width: 100%;
	max-height: 92vh;
	background: #10141b;
	color: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	font-size: 14px;
	line-height: 1.5;
}
@media (min-width: 576px) {
	.cc__overlay { -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 24px; }
	.cc__dialog { max-width: 560px; max-height: 90vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
}

.cc__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	width: 40px;
	height: 40px;
	border: 0;
	padding: 0;
	background: transparent;
	color: #fff;
	opacity: .6;
	cursor: pointer;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}
.cc__close:hover, .cc__close:focus { opacity: 1; outline: 0; }

.cc__body {
	padding: 24px 20px 8px;
	overflow-y: auto;
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-height: 0;
}
@media (min-width: 576px) {
	.cc__body { padding: 32px 32px 8px; }
}

.cc__title {
	margin: 0 32px 10px 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	color: #fff;
}
@media (min-width: 576px) {
	.cc__title { font-size: 24px; }
}
.cc__text { margin: 0 0 8px; color: rgba(255, 255, 255, .7); }
.cc__policy { margin: 0 0 16px; }
.cc__policy a { color: #42c5d9; text-decoration: underline; }
.cc__policy a:hover { color: #fff; }

.cc__list { list-style: none; margin: 0; padding: 0; }
.cc__item { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.cc__row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
}
.cc__item--locked .cc__row { cursor: default; }
.cc__name { font-size: 16px; font-weight: 600; color: #fff; padding-right: 16px; }
.cc__desc { margin: 6px 0 0; color: rgba(255, 255, 255, .6); font-size: 13px; }

/* тумблер */
.cc__switch { position: relative; display: inline-block; width: 44px; height: 24px; -ms-flex-negative: 0; flex-shrink: 0; }
.cc__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; left: 0; top: 0; cursor: pointer; z-index: 1; }
.cc__switch i {
	position: absolute;
	top: 0; left: 0;
	width: 44px; height: 24px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .2);
	transition: background-color .2s ease-out;
}
.cc__switch i:before {
	content: '';
	position: absolute;
	top: 3px; left: 3px;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: -webkit-transform .2s ease-out;
	transition: transform .2s ease-out;
}
.cc__switch input:checked + i { background: #42c5d9; }
.cc__switch input:checked + i:before { -webkit-transform: translateX(20px); transform: translateX(20px); }
.cc__switch input:focus + i { box-shadow: 0 0 0 2px rgba(66, 197, 217, .5); }
.cc__switch input:disabled { cursor: default; }
.cc__switch input:disabled + i { opacity: .55; }

/* кнопки */
.cc__footer {
	padding: 16px 20px 20px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 12px;
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: flex-end;
	background: #10141b;
}
@media (min-width: 576px) {
	.cc__footer { padding: 16px 32px 24px; }
}
.cc__btn {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 140px;
	flex: 1 1 140px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 6px;
	border: 1px solid #42c5d9;
	background: #42c5d9;
	color: #10141b;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.cc__btn:hover { background: #5ed3e5; border-color: #5ed3e5; }
.cc__btn:focus { outline: 2px solid #fff; outline-offset: 2px; }
.cc__btn--ghost { background: transparent; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .3); }
.cc__btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); }
@media (min-width: 576px) {
	.cc__btn { -webkit-box-flex: 0; -ms-flex: 0 0 auto; flex: 0 0 auto; min-width: 150px; }
}
