/* Sky Zone — banner de cookies. Color de botones: --szck-accent (o el resaltado del tema). */
.szck {
	--szck-accent-c: var( --szck-accent, var( --sz-hl, #ff5a00 ) );
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: var( --sz-font, system-ui, sans-serif );
	color: #1e2033;
}

.szck[hidden] {
	display: none;
}

.szck__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 16, 18, 32, 0.55 );
	opacity: 0;
	transition: opacity 0.25s ease;
}

.szck__box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc( 100vh - 32px );
	overflow-y: auto;
	padding: 26px 28px 24px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px rgba( 16, 18, 32, 0.3 );
	outline: none;
	opacity: 0;
	transform: translateY( 14px );
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.szck.is-open .szck__backdrop,
.szck.is-open .szck__box {
	opacity: 1;
	transform: none;
}

.szck__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
	color: inherit;
}

.szck__text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: #454a5c;
}

.szck__text a {
	color: var( --szck-accent-c );
	font-weight: 600;
}

/* Preferencias */
.szck__prefs {
	margin-top: 18px;
	border-top: 1px solid #e6e7ec;
}

.szck__prefs[hidden] {
	display: none;
}

.szck__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #e6e7ec;
}

.szck__cat-text strong {
	display: block;
	margin-bottom: 2px;
	font-size: 15px;
}

.szck__cat-text span {
	font-size: 13px;
	line-height: 1.45;
	color: #5c6470;
}

.szck__switch {
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
}

.szck__switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.szck__switch input:disabled {
	cursor: not-allowed;
}

.szck__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #c9ccd6;
	transition: background-color 0.2s ease;
	pointer-events: none;
}

.szck__slider::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, 0.2 );
	transition: transform 0.2s ease;
}

.szck__switch input:checked + .szck__slider {
	background: var( --szck-accent-c );
}

.szck__switch input:checked + .szck__slider::after {
	transform: translateX( 20px );
}

.szck__switch input:disabled + .szck__slider {
	opacity: 0.55;
}

.szck__switch input:focus-visible + .szck__slider {
	outline: 2px solid var( --szck-accent-c );
	outline-offset: 2px;
}

/* Botones: aceptar y rechazar con el mismo peso visual */
.szck__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.szck__btn {
	padding: 11px 18px;
	border: 2px solid var( --szck-accent-c );
	border-radius: 999px;
	background: transparent;
	color: var( --szck-accent-c );
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.szck__btn[hidden] {
	display: none;
}

.szck__btn--primary,
.szck__btn--outline:hover {
	background: var( --szck-accent-c );
	color: #fff;
}

.szck__btn--primary:hover {
	filter: brightness( 0.92 );
}

.szck__btn--ghost {
	margin-right: auto;
	padding-left: 4px;
	padding-right: 4px;
	border-color: transparent;
	color: #1e2033;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.szck__btn--save {
	margin-right: auto;
}

.szck__btn--ghost:hover {
	background: none;
	color: var( --szck-accent-c );
}

.szck__btn:focus-visible {
	outline: 2px solid #1e2033;
	outline-offset: 2px;
}

html.szck-lock {
	overflow: hidden;
}

/* Barra inferior: no bloquea la página */
.szck--bar {
	inset: auto 0 0 0;
	align-items: flex-end;
	padding: 12px;
	pointer-events: none;
}

.szck--bar .szck__backdrop {
	display: none;
}

.szck--bar .szck__box {
	max-width: 1100px;
	pointer-events: auto;
}

@media ( min-width: 900px ) {
	.szck--bar .szck__box {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0 28px;
		align-items: center;
	}

	.szck--bar .szck__prefs {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.szck--bar .szck__actions {
		margin-top: 0;
	}
}

@media ( max-width: 600px ) {
	.szck {
		padding: 10px;
		align-items: flex-end;
	}

	.szck__box {
		padding: 20px 18px 18px;
	}

	.szck__actions .szck__btn {
		flex: 1 1 100%;
	}

	.szck__btn--ghost,
	.szck__btn--save {
		order: 3;
		margin-right: 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.szck__box,
	.szck__backdrop {
		transition: none;
	}
}
