/* Cookie consent — в стиле DeLonghi (#add_to_basket / footer) */

.footer-cookie-settings {
	text-align: center;
	clear: both;
	padding: 4px 0 22px;
}
.footer-cookie-settings__btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: bold;
	color: #f2f8ff;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	opacity: 0.85;
	transition: color .15s, border-color .15s, opacity .15s;
}
.footer-cookie-settings__btn:hover {
	color: #f94444;
	border-bottom-color: #f94444;
	opacity: 1;
}

/* --- Нижняя полоса (фирменный синий) --- */
.warning {
	position: fixed;
	z-index: 9999;
	bottom: 0;
	left: 0;
	display: none;
	width: 100%;
	padding: 0;
	color: #f2f8ff;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	box-sizing: border-box;
}
.warning *,
.warning *::before,
.warning *::after {
	box-sizing: border-box;
}
.warning.warning--active {
	display: block;
	left: 16px;
	right: 16px;
	bottom: 16px;
	width: auto;
	max-width: min(1100px, calc(100vw - 32px));
	margin-left: auto;
	margin-right: auto;
	background: rgba(12, 38, 69, 0.92);
	border: 1px solid rgba(37, 62, 91, 0.85);
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(12, 38, 69, 0.45);
	overflow: hidden;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.warning.warning--active::before {
	content: '';
	display: block;
	height: 4px;
	background: #de1f1f;
}
.warning__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #a8bdd4;
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none;
	transition: color .15s, background .15s;
}
.warning__close:hover,
.warning__close:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}
.warning__inner {
	max-width: none;
	margin: 0;
	padding: 18px 48px 18px 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
}
.warning__p2 {
	flex: 1 1 280px;
	font-size: inherit;
	margin: 0;
	color: #f2f8ff;
}
.warning__text {
	display: block;
	margin-bottom: 8px;
}
.warning__read--btn {
	display: inline;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	color: #2ba5ec;
	font: inherit;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
	border-bottom: 1px solid #2ba5ec;
	transition: color .15s, border-color .15s;
}
.warning__read--btn:hover {
	color: #fff;
	border-bottom-color: #fff;
}
.warning__p3 {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
}
.warning__apply,
.warning__reject {
	border: none;
	border-radius: 4px;
	padding: 0 20px;
	height: 40px;
	line-height: 40px;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	transition: background .15s, color .15s, border-color .15s;
}
.warning__apply {
	background: #de1f1f;
	color: #fff;
}
.warning__apply:hover {
	background: #f94444;
}
.warning__reject {
	background: transparent;
	color: #f2f8ff;
	border: 1px solid #253e5b;
}
.warning__reject:hover {
	border-color: #2ba5ec;
	color: #2ba5ec;
	background: rgba(43, 165, 236, 0.08);
}

/* --- Модалки --- */
.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: 'Roboto', sans-serif;
}
.cookie-modal--confirm {
	z-index: 10100;
}
.cookie-modal--open {
	display: flex;
}
.cookie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 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: 10px;
	padding: 0;
	box-shadow: 0 0 15px #393939;
	color: #232323;
}
.cookie-modal__dialog--confirm {
	max-width: 520px;
}
.cookie-modal__header {
	position: relative;
	background: #0c2645;
	border-radius: 10px 10px 0 0;
	padding: 0 52px 0 24px;
	min-height: 56px;
	display: flex;
	align-items: center;
}
.cookie-modal__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	text-shadow: none;
}
.cookie-modal__close {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #ccc;
	box-shadow: none;
	text-shadow: none;
	padding: 0;
	transition: color .15s;
}
.cookie-modal__close:hover {
	color: #fff;
	box-shadow: none;
	text-shadow: none;
}
.cookie-modal__body {
	padding: 20px 24px 8px;
}
.cookie-modal__dialog--confirm .cookie-modal__body {
	padding-bottom: 4px;
}
.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.55;
	color: #363636;
}
.cookie-pref__list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}
.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 #e9e9e9;
	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: 14px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #232323;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}
.cookie-pref__descr {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #5e5e5e;
}
.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: #cfcfcf;
	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: #de1f1f;
}
.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: #9a9a9a;
}
.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: #363636;
}
.cookie-modal__footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 16px;
	margin: 0 -24px;
	padding: 16px 24px 20px;
	border-top: 1px solid #e9e9e9;
	background: #f3f3f3;
}
.cookie-modal__footer-bar .cookie-modal__policy-link {
	flex: 1 1 auto;
	min-width: 0;
}
.cookie-modal__btn {
	border: none;
	border-radius: 4px;
	padding: 0 18px;
	height: 42px;
	line-height: 42px;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.cookie-modal__btn--primary {
	background: #de1f1f;
	color: #fff;
}
.cookie-modal__btn--primary:hover {
	background: #f94444;
}
.cookie-modal__btn--ghost {
	background: #fff;
	color: #363636;
	border: 1px solid #cfcfcf;
}
.cookie-modal__btn--ghost:hover {
	border-color: #de1f1f;
	color: #de1f1f;
}
.cookie-confirm__body p:last-of-type {
	margin-bottom: 0;
}
.cookie-confirm__question {
	margin-top: 14px !important;
	color: #232323 !important;
}
.cookie-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
	padding: 16px 24px 20px;
	border-top: 1px solid #e9e9e9;
	background: #f3f3f3;
	border-radius: 0 0 10px 10px;
}
.cookie-modal__policy-link {
	color: #0c2645;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	border-bottom: 1px solid #0c2645;
}
.cookie-modal__policy-link:hover {
	color: #2ba5ec;
	border-bottom-color: #2ba5ec;
}

@media screen and (max-width: 600px) {
	.warning.warning--active {
		left: 10px;
		right: 10px;
		bottom: 10px;
		max-width: none;
	}
	.warning__inner {
		padding: 16px 42px 16px 16px;
	}
	.warning__p3 {
		width: 100%;
		justify-content: stretch;
	}
	.warning__apply,
	.warning__reject {
		flex: 1 1 auto;
		text-align: center;
		padding: 0 12px;
		font-size: 12px;
	}
	.cookie-modal__header {
		padding: 14px 48px 14px 16px;
		min-height: 0;
	}
	.cookie-modal__title {
		font-size: 16px;
	}
	.cookie-modal__body {
		padding: 16px;
	}
	.cookie-pref__row {
		grid-template-columns: 1fr;
	}
	.cookie-pref__ctrl {
		justify-self: start;
	}
	.cookie-pref__name {
		font-size: 13px;
	}
	.cookie-modal__footer-bar {
		margin: 0 -16px;
		padding: 14px 16px 16px;
		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;
		padding: 14px 16px 16px;
	}
	.cookie-confirm__actions .cookie-modal__btn {
		width: 100%;
		text-align: center;
	}
}
