/* =========================================================================
   Quoriks Cookies — баннер согласия (LOPDP)
   Палитра в тон основному сайту Quoriks.
   ========================================================================= */

.qc-root {
	--qc-navy: #0D2754;
	--qc-navy-2: #1A3F7A;
	--qc-orange: #F5A623;
	--qc-text: #4B5563;
	--qc-muted: #8FA3BD;
	--qc-border: #D8E0EC;
	--qc-bg: #FFFFFF;
	--qc-radio: 8px;

	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--qc-text);
}

.qc-root *,
.qc-flotante * {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   Баннер
   ------------------------------------------------------------------------- */

.qc-banner {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 22px 26px;
	background: var(--qc-bg);
	border: 1px solid var(--qc-border);
	border-radius: var(--qc-radio);
	box-shadow: 0 12px 40px rgba(13, 39, 84, .18);
	animation: qc-subir .3s ease;
}

@keyframes qc-subir {
	from { transform: translateY(16px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.qc-banner__cuerpo {
	flex: 1 1 auto;
	min-width: 0;
}

.qc-banner__titulo {
	font-size: 16px;
	font-weight: 700;
	color: var(--qc-navy);
	margin: 0 0 6px;
}

.qc-banner__texto {
	font-size: 13.5px;
	line-height: 20px;
	margin: 0;
}

.qc-enlace {
	color: var(--qc-navy-2);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.qc-enlace:hover {
	color: var(--qc-navy);
}

.qc-banner__acciones {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* -------------------------------------------------------------------------
   Кнопки
   ------------------------------------------------------------------------- */

.qc-btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 20px;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.qc-btn--primario {
	background: var(--qc-orange);
	border-color: var(--qc-orange);
	color: var(--qc-navy);
}

.qc-btn--primario:hover {
	background: #e69512;
	border-color: #e69512;
}

.qc-btn--secundario {
	background: #fff;
	border-color: var(--qc-navy);
	color: var(--qc-navy);
}

.qc-btn--secundario:hover {
	background: var(--qc-navy);
	color: #fff;
}

.qc-btn--fantasma {
	background: transparent;
	border-color: transparent;
	color: var(--qc-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	padding-inline: 10px;
}

.qc-btn--fantasma:hover {
	color: var(--qc-navy);
}

/* -------------------------------------------------------------------------
   Панель настроек
   ------------------------------------------------------------------------- */

.qc-panel {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.qc-panel__fondo {
	position: absolute;
	inset: 0;
	background: rgba(13, 39, 84, .5);
}

.qc-panel__caja {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 540px;
	max-height: 85vh;
	overflow-y: auto;
	background: var(--qc-bg);
	border-radius: var(--qc-radio);
	box-shadow: 0 20px 60px rgba(13, 39, 84, .3);
	animation: qc-subir .25s ease;
}

.qc-panel__cabeza {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 26px;
	border-bottom: 1px solid var(--qc-border);
}

.qc-panel__titulo {
	font-size: 18px;
	font-weight: 700;
	color: var(--qc-navy);
	margin: 0;
}

.qc-panel__cerrar {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: var(--qc-muted);
	cursor: pointer;
	padding: 0 4px;
}

.qc-panel__cerrar:hover {
	color: var(--qc-navy);
}

.qc-panel__lista {
	padding: 8px 26px;
}

/* -------------------------------------------------------------------------
   Категория
   ------------------------------------------------------------------------- */

.qc-cat {
	padding: 20px 0;
	border-bottom: 1px solid var(--qc-border);
}

.qc-cat:last-child {
	border-bottom: none;
}

.qc-cat__cabeza {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.qc-cat__nombre {
	font-size: 15px;
	font-weight: 700;
	color: var(--qc-navy);
	margin: 0;
}

.qc-cat__estado {
	font-size: 12px;
	font-weight: 600;
	color: var(--qc-orange);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.qc-cat__desc {
	font-size: 13.5px;
	line-height: 20px;
	color: var(--qc-text);
	margin: 0;
}

/* -------------------------------------------------------------------------
   Переключатель
   ------------------------------------------------------------------------- */

.qc-switch {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	cursor: pointer;
}

.qc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.qc-switch__pista {
	position: absolute;
	inset: 0;
	background: var(--qc-border);
	border-radius: 999px;
	transition: background .2s ease;
}

.qc-switch__pista::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.qc-switch input:checked + .qc-switch__pista {
	background: var(--qc-orange);
}

.qc-switch input:checked + .qc-switch__pista::before {
	transform: translateX(20px);
}

.qc-switch input:focus-visible + .qc-switch__pista {
	outline: 2px solid var(--qc-navy-2);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Действия панели
   ------------------------------------------------------------------------- */

.qc-panel__acciones {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 20px 26px;
	border-top: 1px solid var(--qc-border);
	position: sticky;
	bottom: 0;
	background: var(--qc-bg);
}

/* -------------------------------------------------------------------------
   Плавающая кнопка
   ------------------------------------------------------------------------- */

.qc-flotante {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99997;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--qc-bg, #fff);
	color: #0D2754;
	border: 1px solid #D8E0EC;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(13, 39, 84, .18);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}

.qc-flotante:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(13, 39, 84, .25);
}

/* -------------------------------------------------------------------------
   Мобильная версия
   ------------------------------------------------------------------------- */

@media (max-width: 767px) {

	.qc-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		left: 12px;
		right: 12px;
		bottom: 12px;
		padding: 20px;
	}

	.qc-banner__acciones {
		flex-direction: column-reverse;
	}

	.qc-btn {
		width: 100%;
		text-align: center;
	}

	.qc-btn--fantasma {
		order: 3;
	}

	.qc-panel__acciones {
		flex-direction: column-reverse;
	}

	.qc-panel__acciones .qc-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qc-banner,
	.qc-panel__caja {
		animation: none;
	}
	.qc-switch__pista,
	.qc-switch__pista::before,
	.qc-flotante {
		transition: none;
	}
}
