/* Banner de cookies. Colores fijos (no variables del kit) porque también se carga en las landings sin Elementor. */
#selvo-cookies {
	--sck-dark: #283618;
	--sck-cream: #FEFAE0;
	--sck-gold: #DDA15E;
	--sck-ease: cubic-bezier(.22, 1, .36, 1);
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9995;
	box-sizing: border-box;
	width: min(430px, calc(100vw - 48px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 24px;
	border: 1px solid rgba(40, 54, 24, .14);
	border-radius: 24px;
	background: var(--sck-cream);
	color: var(--sck-dark);
	box-shadow: 0 18px 50px rgba(40, 54, 24, .22);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .5s var(--sck-ease), transform .5s var(--sck-ease);
}
#selvo-cookies.is-in { opacity: 1; transform: none; }
#selvo-cookies * { box-sizing: border-box; }

#selvo-cookies .sck-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; color: inherit; }
#selvo-cookies .sck-text { margin: 0; color: inherit; }
#selvo-cookies .sck-text a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

#selvo-cookies .sck-prefs { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(40, 54, 24, .14); }
#selvo-cookies .sck-prefs[hidden] { display: none; }
#selvo-cookies .sck-pref { display: flex; align-items: center; gap: 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(40, 54, 24, .14); cursor: pointer; }
#selvo-cookies .sck-pref span { flex: 1; font-size: 14px; }
#selvo-cookies .sck-pref b { display: block; font-size: 15px; font-weight: 600; }
#selvo-cookies .sck-pref input {
	-webkit-appearance: none; appearance: none; flex: none; position: relative;
	width: 42px; height: 24px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 999px; background: rgba(40, 54, 24, .25); cursor: pointer;
	transition: background-color .3s ease;
}
#selvo-cookies .sck-pref input::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
	border-radius: 50%; background: #fff; transition: transform .35s var(--sck-ease);
}
#selvo-cookies .sck-pref input:checked { background: var(--sck-dark); }
#selvo-cookies .sck-pref input:checked::after { transform: translateX(18px); }
#selvo-cookies .sck-pref input:disabled { opacity: .45; cursor: default; }
#selvo-cookies .sck-pref input:focus-visible,
#selvo-cookies button:focus-visible { outline: 2px solid var(--sck-dark); outline-offset: 3px; }

#selvo-cookies .sck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
#selvo-cookies .sck-btn {
	flex: 1 1 150px; min-height: 46px; margin: 0; padding: 0 18px;
	border: 1px solid var(--sck-dark); border-radius: 999px;
	background: transparent; color: var(--sck-dark);
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0;
	cursor: pointer; box-shadow: none;
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
#selvo-cookies .sck-btn:hover { background: var(--sck-dark); color: var(--sck-cream); }
#selvo-cookies .sck-btn--primary { border-color: var(--sck-gold); background: var(--sck-gold); }
#selvo-cookies .sck-btn--primary:hover { border-color: var(--sck-dark); }
#selvo-cookies .sck-link {
	flex: 1 1 100%; min-height: 0; margin: 2px 0 0; padding: 4px;
	border: 0; border-radius: 6px; background: none; color: var(--sck-dark);
	font: inherit; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
	cursor: pointer; box-shadow: none; opacity: .8;
	transition: opacity .35s ease;
}
#selvo-cookies .sck-link:hover { background: none; color: var(--sck-dark); opacity: 1; }

@media (max-width: 767px) {
	#selvo-cookies { left: 12px; bottom: 12px; width: calc(100vw - 24px); max-height: calc(100vh - 24px); padding: 20px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	#selvo-cookies, #selvo-cookies * { transition: none !important; }
	#selvo-cookies { transform: none; }
}
