/* Aviso de cookies — Camisetas + Camisetas */
.cmck {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
	font-family: var(--f-body, "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif);
}
.cmck[hidden] {
	display: none !important;
}

/* El sitio se difumina detrás del aviso */
.cmck__veil {
	position: absolute;
	inset: 0;
	background: rgba(11, 11, 13, 0.22);
	-webkit-backdrop-filter: blur(var(--cmck-blur, 6px)) saturate(0.9);
	backdrop-filter: blur(var(--cmck-blur, 6px)) saturate(0.9);
	opacity: 0;
	pointer-events: auto;
	transition: opacity 0.7s ease;
}
.cmck.is-in .cmck__veil {
	opacity: 1;
}
html.cmck-open {
	overflow: hidden;
}

/* Tarjeta */
.cmck__card {
	position: relative;
	box-sizing: border-box;
	width: min(560px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	margin-bottom: env(safe-area-inset-bottom, 0px);
	padding: 22px 22px 18px;
	border-radius: 22px;
	background: #fff;
	color: #0b0b0d;
	box-shadow: 0 30px 80px -24px rgba(11, 11, 13, 0.5), 0 0 0 1px rgba(11, 11, 13, 0.06);
	pointer-events: auto;
	outline: none;
	opacity: 0;
	transform: translate3d(0, 24px, 0) scale(0.98);
	transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmck.is-in .cmck__card {
	opacity: 1;
	transform: none;
}
.cmck__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}
.cmck__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(209, 15, 45, 0.08);
	color: #d10f2d;
}
.cmck__title {
	margin: 0;
	font: 800 1.1rem/1.2 var(--f-display, "Montserrat", system-ui, sans-serif);
	letter-spacing: -0.01em;
	color: #0b0b0d;
}
.cmck__text {
	margin: 0 0 16px;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #4a4a52;
}
.cmck__text a {
	color: #d10f2d;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Preferencias por categoría */
.cmck__prefs {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
}
.cmck__prefs[hidden] {
	display: none;
}
.cmck__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f5f5f7;
}
label.cmck__opt {
	cursor: pointer;
}
.cmck__opt-txt {
	display: block;
	min-width: 0;
}
.cmck__opt-t {
	display: block;
	font-size: 0.86rem;
	font-weight: 700;
	color: #0b0b0d;
}
.cmck__opt-d {
	display: block;
	margin-top: 2px;
	font-size: 0.78rem;
	line-height: 1.4;
	color: #6b6b74;
}
.cmck__always {
	flex: none;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(29, 107, 63, 0.1);
	color: #1d6b3f;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.cmck__switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 44px;
	height: 26px;
	margin: 0;
	border-radius: 999px;
	background: #c9c9d1;
	cursor: pointer;
	transition: background-color 0.25s;
}
.cmck__switch::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.25);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmck__switch:checked {
	background: #d10f2d;
}
.cmck__switch:checked::after {
	transform: translateX(18px);
}

/* Botones */
.cmck__btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.cmck__btn {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	min-height: 44px;
	padding: 0.95em 1.35em;
	border: 0;
	border-radius: 999px;
	font: 700 0.86rem/1 var(--f-body, "Montserrat", system-ui, sans-serif);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.cmck__btn[hidden] {
	display: none;
}
.cmck__btn--main {
	background: #d10f2d;
	color: #fff;
}
.cmck__btn--main:hover {
	background: #97091f;
}
.cmck__btn--ghost {
	background: #f3f3f5;
	color: #0b0b0d;
	box-shadow: inset 0 0 0 1px rgba(11, 11, 13, 0.1);
}
.cmck__btn--ghost:hover {
	background: #e8e8ed;
}
.cmck.is-prefs [data-cmck="all"] {
	background: #f3f3f5;
	color: #0b0b0d;
	box-shadow: inset 0 0 0 1px rgba(11, 11, 13, 0.1);
}
.cmck.is-prefs [data-cmck="all"]:hover {
	background: #e8e8ed;
}
.cmck.is-prefs [data-cmck="save"] {
	order: -1;
}
.cmck__btn--link {
	margin-left: auto;
	padding-inline: 0.6em;
	background: none;
	color: #0b0b0d;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cmck__btn--link:hover {
	color: #d10f2d;
}
.cmck__btn:focus-visible,
.cmck__switch:focus-visible,
.cmck__text a:focus-visible {
	outline: 2px solid #d10f2d;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.cmck {
		padding: 10px;
	}
	.cmck__card {
		padding: 18px 16px 14px;
		border-radius: 18px;
	}
	.cmck__btn--main,
	.cmck__btn--ghost {
		flex: 1 1 140px;
	}
	.cmck__btn--link {
		margin: 0 auto;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cmck__veil,
	.cmck__card {
		transition: none;
	}
}
@media print {
	.cmck {
		display: none !important;
	}
}
