/* =========================================================
   Naikka — Aviso de Cookies
   Estilos ligeros, sin dependencias. Los colores se controlan
   mediante variables CSS inyectadas por el plugin.
   ========================================================= */

.scc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: var(--scc-overlay, rgba(0, 0, 0, 0.45));
	display: flex;
	padding: 20px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.scc-overlay[hidden] {
	display: none;
}

/* Posición: centrado (por defecto) */
.scc-pos-center {
	align-items: center;
	justify-content: center;
}

/* Posición: barra inferior (centrada) */
.scc-pos-bottom {
	align-items: flex-end;
	justify-content: center;
	background: transparent;        /* sin oscurecer el fondo en modo barra */
	pointer-events: none;
}
.scc-pos-bottom .scc-card {
	pointer-events: auto;
	max-width: 760px;
}

/* Posición: esquina inferior derecha (toast) */
.scc-pos-bottom-right {
	align-items: flex-end;
	justify-content: flex-end;
	background: transparent;        /* no bloquea el resto de la página */
	pointer-events: none;
}
.scc-pos-bottom-right .scc-card {
	pointer-events: auto;
	max-width: 380px;
}

.scc-card {
	background: var(--scc-card-bg, #fff);
	color: var(--scc-text, #444);
	width: 100%;
	max-width: 560px;
	border-radius: var(--scc-radius, 12px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	padding: 26px 28px 22px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	animation: scc-fade 0.18s ease-out;
}

@keyframes scc-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.scc-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.scc-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--scc-title, #1a1a1a);
	text-align: center;
	line-height: 1.3;
}

.scc-close {
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--scc-title, #1a1a1a);
	padding: 4px 8px;
	border-radius: 6px;
}
.scc-close:hover { opacity: 0.7; }

.scc-body p {
	margin: 0 0 20px;
	color: var(--scc-text, #444);
}

.scc-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.scc-btn {
	flex: 1 1 0;
	min-width: 120px;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease, background 0.15s ease;
	font-family: inherit;
}
.scc-btn:hover { filter: brightness(0.95); }

.scc-btn-accept {
	background: var(--scc-accept-bg, #1d6fcc);
	color: var(--scc-accept-text, #fff);
}

.scc-btn-deny {
	background: var(--scc-deny-bg, #f5f5f5);
	color: var(--scc-deny-text, #333);
	border-color: var(--scc-deny-border, #ddd);
}

.scc-policy {
	text-align: center;
	margin-top: 16px;
}
.scc-policy a {
	color: var(--scc-link, #1d6fcc);
	text-decoration: underline;
	font-size: 14px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet / móvil grande: las posiciones de esquina y barra
   pasan a ocupar el ancho disponible, pegadas abajo y centradas. */
@media (max-width: 600px) {
	.scc-overlay {
		padding: 12px;
	}
	.scc-pos-bottom,
	.scc-pos-bottom-right {
		justify-content: center;
	}
	.scc-pos-bottom .scc-card,
	.scc-pos-bottom-right .scc-card {
		max-width: 100%;
	}
}

/* Móvil: botones apilados a ancho completo y tipografía ajustada. */
@media (max-width: 480px) {
	.scc-card {
		padding: 20px 18px 16px;
		font-size: 14px;
		border-radius: var(--scc-radius, 12px);
	}
	.scc-title {
		font-size: 17px;
	}
	.scc-close {
		right: 0;
		font-size: 26px;   /* área de toque mayor */
		padding: 6px 10px;
	}
	.scc-body p {
		margin-bottom: 18px;
	}
	.scc-actions {
		flex-direction: column;
		gap: 10px;
	}
	.scc-btn {
		flex: none;
		width: 100%;
		padding: 14px 16px;
		min-width: 0;
	}
}

/* Móvil muy estrecho: que la tarjeta llegue casi a los bordes. */
@media (max-width: 360px) {
	.scc-overlay {
		padding: 8px;
	}
	.scc-card {
		padding: 18px 14px 14px;
	}
}
