/*BEGIN 02.05.26*/
.cookie-mini-banner,
.cookie-overlay {
	display: none;
}

/* Базовый сброс для виджета */
.cookie-app-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Плашка внизу по центру */
.cookie-mini-banner {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 800px;
	background: #ffffff;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
	border-radius: 12px;
	padding: 20px;
	z-index: 999999999;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

@media (max-width: 768px) {
	.cookie-mini-banner {
		flex-direction: column;
		text-align: center;
		bottom: 80px;
	}
}

.cookie-text {
	font-size: 14px;
	color: #333;
	line-height: 1.4;
}

.cookie-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

/* Кнопки */
.cookie-btn {
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid #ddd;
	transition: 0.2s;
}

/**.cookie-btn-primary {
	background: #2c3e50;
	color: #fff;
	border-color: #2c3e50;
}

.cookie-btn-primary:hover {
	background: #1a252f;
}**/

.cookie-btn-secondary, .cookie-btn-primary {
	background: #fff;
	color: #333;
}

.cookie-btn-secondary:hover, .cookie-btn-primary:hover {
	background: #f5f5f5;
}

.cookie-btn-save {
	background: #e4c584;
	color: #98501f;
	border-color: #e4c584;
}

.cookie-btn-save:hover {
	background: #d1ab5c;
	border-color: #d1ab5c;
}

.cookie-btn-link {
	background: none;
	border: none;
	text-decoration: underline;
	color: #7f8c8d;
	cursor: pointer;
	font-size: 13px;
}

/* Модальное окно */
.cookie-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 10000;
}

.cookie-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95%;
	max-width: 550px;
	background: #fff;
	border-radius: 12px;
	z-index: 10001;
	padding: 25px;
	max-height: 85vh;
	overflow-y: auto;
}

.cookie-modal-desc {
	font-size: 14px;
	margin-bottom: 15px;
}

.cookie-modal-hint {
	font-size: 12px;
	color: #7f8c8d;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
}

.cookie-group {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #eee;
}

.cookie-group-info strong {
	font-size: 14px;
	display: block;
	margin-bottom: 4px;
}

.cookie-group-info p {
	font-size: 12px;
	color: #666;
	margin: 0;
	padding-right: 20px;
}

/* Переключатели (Свитчи) */
.cookie-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 18px;
}

.cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .3s;
	border-radius: 20px;
}

.cookie-slider:before {
	position: absolute;
	content: "";
	height: 12px;
	width: 12px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

input:checked+.cookie-slider {
	background-color: #e4c584;
}

input:checked+.cookie-slider:before {
	transform: translateX(18px);
}

input:disabled+.cookie-slider {
	background-color: #eee;
}

.cookie-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 25px;
}
/*END 02.05.26*/

/* HTML-разметка старого виджета: обёртка свитча и цвет ссылки на политику */
.cookie-switch-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-size: 13px;
	color: #888;
	white-space: nowrap;
}

.cookie-modal-desc a {
	color: #98501f;
	text-decoration: underline;
}

.cookie-app-container button {
	font-family: inherit;
	line-height: 1.2;
	box-shadow: none;
	text-transform: none;
	appearance: none;
	-webkit-appearance: none;
}

.cookie-app-container .cookie-btn {
	background: #fff;
	color: #333;
	border: 1px solid #ddd;
}

.cookie-app-container .cookie-btn-link {
	background: none;
	border: none;
	color: #7f8c8d;
	padding: 0;
}
