/* Баннер и модалки настроек cookie (раньше было inline в _footer.blade.php) */

.footer-cookie-settings {
	text-align: center;
	margin-top: 14px;
	padding-bottom: 4px;
}
.footer-cookie-settings__btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	color: #666;
	text-decoration: underline;
}
.footer-cookie-settings__btn:hover {
	color: #111;
}

.warning {
	position: fixed;
	z-index: 9999;
	bottom: 0;
	left: 0;
	display: none;
	width: 100%;
	background: #efefef;
	padding: 12px 40px 12px 14px;
	color: #000;
	border-top: 1px solid #c2c2c2;
	box-shadow: none;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.45;
}
.warning__close {
	position: absolute;
	top: 6px;
	right: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	text-shadow: none !important;
	filter: none !important;
	-webkit-filter: none !important;
	outline: none;
}
.warning__close:hover,
.warning__close:focus {
	color: #000;
	background: rgba(0,0,0,.06);
	box-shadow: none !important;
	text-shadow: none !important;
	filter: none !important;
}
.warning__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
}
.warning__p2 {
	flex: 1 1 280px;
	font-size: inherit;
	margin: 0;
}
.warning__text {
	display: block;
	margin-bottom: 6px;
}
.warning__read--btn {
	display: inline;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	color: #000;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	text-align: left;
}
.warning__read--btn:hover {
	color: rgb(235, 33, 46);
}
.warning__p3 {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
}
.warning__apply,
.warning__reject {
	border: none;
	border-radius: 3px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}
.warning__apply {
	background: rgb(235, 33, 46);
	color: #fff;
}
.warning__apply:hover {
	background: rgb(196, 0, 13);
}
.warning__reject {
	background: #fff;
	color: #222;
	border: 1px solid #bbb;
}
.warning__reject:hover {
	border-color: #888;
	background: #f7f7f7;
}
.warning.warning--active {
	display: block;
	left: 12px;
	right: 12px;
	bottom: 12px;
	width: auto;
	max-width: min(1200px, calc(100vw - 24px));
	margin-left: auto;
	margin-right: auto;
	background: rgba(239, 239, 239, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.cookie-modal--confirm {
	z-index: 10100;
}
.cookie-modal--open {
	display: flex;
}
.cookie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
	cursor: pointer;
}
.cookie-modal__dialog {
	position: relative;
	z-index: 1;
	max-width: 600px;
	width: 100%;
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	padding: 20px 24px 22px;
	box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.cookie-modal__dialog--confirm {
	max-width: 520px;
}
.cookie-modal__title {
	margin: 0 44px 14px 0;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.cookie-pref__lead {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}
.cookie-pref__list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
}
.cookie-pref__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 52px;
	align-items: start;
	column-gap: 20px;
	row-gap: 8px;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
	background: #fafafa;
}
.cookie-pref__row:last-child {
	border-bottom: none;
	background: #fff;
}
.cookie-pref__main {
	min-width: 0;
}
.cookie-pref__name {
	display: block;
	font-size: 15px;
	margin: 0 0 6px;
	color: #111;
}
.cookie-pref__descr {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
.cookie-pref__ctrl {
	justify-self: end;
	align-self: start;
	padding-top: 2px;
}
.cookie-pref__switch {
	position: relative;
	display: inline-block;
	cursor: pointer;
}
.cookie-pref__switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.cookie-pref__switch-ui {
	position: relative;
	display: block;
	width: 48px;
	height: 26px;
	border-radius: 13px;
	background: #ccc;
	transition: background .2s;
}
.cookie-pref__switch-ui::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
	transition: transform .2s;
}
.cookie-pref__switch input:checked + .cookie-pref__switch-ui {
	background: rgb(235, 33, 46);
}
.cookie-pref__switch input:checked + .cookie-pref__switch-ui::after {
	transform: translateX(22px);
}
.cookie-pref__switch--locked {
	cursor: not-allowed;
}
.cookie-pref__switch--locked .cookie-pref__switch-ui {
	background: #b8b8b8;
}
.cookie-pref__switch--locked .cookie-pref__switch-ui::after {
	transform: translateX(22px);
}
.cookie-modal__body p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
}
.cookie-modal__footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 16px;
	margin-top: 6px;
	padding-top: 4px;
	border-top: 1px solid #eee;
}
.cookie-modal__footer-bar .cookie-modal__policy-link {
	flex: 1 1 auto;
	min-width: 0;
}
.cookie-modal__btn {
	border: none;
	border-radius: 4px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.cookie-modal__btn--primary {
	background: rgb(235, 33, 46);
	color: #fff;
}
.cookie-modal__btn--primary:hover {
	background: rgb(196, 0, 13);
}
.cookie-modal__btn--ghost {
	background: #fff;
	color: #333;
	border: 1px solid #c4c4c4;
}
.cookie-modal__btn--ghost:hover {
	border-color: #888;
	background: #f7f7f7;
}
.cookie-confirm__body p:last-of-type {
	margin-bottom: 0;
}
.cookie-confirm__question {
	margin-top: 14px !important;
}
.cookie-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}
.cookie-modal__policy-link {
	color: rgb(235, 33, 46);
	font-weight: 600;
	text-decoration: underline;
}
.cookie-modal__policy-link:hover {
	text-decoration: none;
}
.cookie-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	box-shadow: none;
	text-shadow: none;
	filter: none;
}
.cookie-modal__close:hover {
	color: #000;
	box-shadow: none;
	text-shadow: none;
}
@media screen and (max-width: 600px) {
	.warning__p3 {
		width: 100%;
		justify-content: stretch;
	}
	.warning__apply,
	.warning__reject {
		flex: 1 1 auto;
		text-align: center;
	}
	.cookie-pref__row {
		grid-template-columns: 1fr;
	}
	.cookie-pref__ctrl {
		justify-self: start;
	}
	.cookie-modal__footer-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.cookie-modal__footer-bar .cookie-modal__btn {
		width: 100%;
		text-align: center;
	}
	.cookie-confirm__actions {
		flex-direction: column-reverse;
	}
	.cookie-confirm__actions .cookie-modal__btn {
		width: 100%;
		text-align: center;
	}
}
