/**
 * Баннер cookies (разметка: core/user/js/cookie.user.js).
 * Визуал по образцу fastkart/front-end/index.html (.cookie-bar-box).
 */
:root {
	--cookie-bar-theme: var(--theme-color, #0f3460);
	--cookie-bar-radius: clamp(8px, 8px + 12 * (100vw - 320px) / 1600, 20px);
}

.cookie-bar-box.cookie-agreement-root {
	box-sizing: border-box;
	position: fixed;
	z-index: 100050;
	right: 10px;
	bottom: 10px;
	left: auto;
	max-width: 370px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border-radius: var(--cookie-bar-radius);
	box-shadow:
		0 0.25rem 0.5rem rgba(34, 34, 34, 0.05),
		0 24px 35px rgba(34, 34, 34, 0.1);
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

[dir="rtl"] .cookie-bar-box.cookie-agreement-root {
	right: auto;
	left: 10px;
}

.cookie-bar-box.cookie-agreement-root.cookie-agreement--hide {
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	bottom: -400px;
}

.cookie-bar-box.cookie-agreement-root .cookie-box {
	padding: clamp(13px, 13px + 17 * (100vw - 320px) / 1600, 30px);
	text-align: center;
}

.cookie-bar-box.cookie-agreement-root .cookie-image {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.cookie-bar-box.cookie-agreement-root .cookie-image .cookie-agreement__icon {
	font-size: clamp(22px, 18px + 8 * (100vw - 320px) / 1600, 28px);
	line-height: 1;
}

.cookie-bar-box.cookie-agreement-root .cookie-image h2 {
	margin: 0;
	font-size: clamp(18px, 18px + 4 * (100vw - 320px) / 1600, 22px);
	font-weight: 700;
	line-height: 1.2;
}

.cookie-bar-box.cookie-agreement-root .cookie-contain {
	margin-top: clamp(10px, 10px + 6 * (100vw - 320px) / 1600, 16px);
}

.cookie-bar-box.cookie-agreement-root .cookie-contain .text-content {
	margin: 0 auto;
	font-size: clamp(14px, 14px + 4 * (100vw - 320px) / 1600, 18px);
	font-weight: 500;
	line-height: 1.35;
	color: #222;
}

.cookie-bar-box.cookie-agreement-root .button-group {
	display: flex;
	align-items: stretch;
	margin: 0;
}

.cookie-bar-box.cookie-agreement-root .button-group .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.cookie-bar-box.cookie-agreement-root .button-group .privacy-button {
	background-color: #f8f8f8;
	color: #222;
}

.cookie-bar-box.cookie-agreement-root .button-group .privacy-button:hover {
	background-color: #ececec;
}

.cookie-bar-box.cookie-agreement-root .button-group .ok-button {
	background-color: var(--cookie-bar-theme);
	color: #fff;
}

.cookie-bar-box.cookie-agreement-root .button-group .ok-button:hover {
	filter: brightness(1.06);
}

.cookie-bar-box.cookie-agreement-root .cookie-agreement__dismiss {
	position: absolute;
	top: 6px;
	right: 8px;
	z-index: 1;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	font-size: 22px;
	line-height: 1;
	color: #666;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.cookie-bar-box.cookie-agreement-root .cookie-agreement__dismiss:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #111;
}

@media (max-width: 480px) {
	.cookie-bar-box.cookie-agreement-root {
		max-width: none;
		right: 10px;
		left: 10px;
		width: auto;
	}

	[dir="rtl"] .cookie-bar-box.cookie-agreement-root {
		right: 10px;
		left: 10px;
	}

	.cookie-bar-box.cookie-agreement-root .button-group .btn {
		white-space: normal;
		font-size: 13px;
	}
}
