/*
 * Cookie panel (includes/cookies.php): small, translucent, bottom-left.
 * Self-contained: it shows on blog pages, landings and migrated campaigns,
 * which load different stylesheets.
 */

.al-galetes {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 99990;
	box-sizing: border-box;
	width: min(320px, calc(100vw - 32px));
	padding: 14px 16px 12px;
	border: 1px solid rgb(41 50 65 / 0.1);
	border-radius: 12px;
	background: rgb(255 255 255 / 0.82);
	box-shadow: 0 6px 24px -10px rgb(41 50 65 / 0.35);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	backdrop-filter: blur(12px) saturate(1.2);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	line-height: 1.45;
	color: #3a414d;
	text-align: left;
}

.al-galetes[hidden] {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.al-galetes:not([hidden]) {
		animation: al-galetes-in 0.25s ease-out;
	}
}

@keyframes al-galetes-in {
	from {
		opacity: 0;
		translate: 0 8px;
	}
}

.al-galetes__title {
	margin: 0 0 4px;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #293241;
}

.al-galetes__text {
	margin: 0;
	font-size: 12.5px;
	color: inherit;
}

.al-galetes__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.al-galetes__options {
	display: grid;
	gap: 6px;
	margin: 10px 0 0;
	font-size: 12.5px;
}

.al-galetes__options[hidden] {
	display: none;
}

.al-galetes__options label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font: inherit;
	color: inherit;
}

.al-galetes__options input {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #293241;
}

/* Three choices with the same weight. */
.al-galetes__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 10px;
}

.al-galetes__actions button {
	margin: 0;
	padding: 5px 11px;
	border: 1px solid rgb(41 50 65 / 0.22);
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #293241;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.al-galetes__actions button[hidden] {
	display: none;
}

.al-galetes__actions button:hover {
	border-color: rgb(41 50 65 / 0.4);
	background: rgb(41 50 65 / 0.06);
}

.al-galetes :is(button, a, input):focus-visible {
	outline: 2px solid #293241;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.al-galetes {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
	}
}

@media print {
	.al-galetes {
		display: none !important;
	}
}

/* Legal links: blog footer, landing footer, migrated campaigns. */
.al-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 18px;
	font-size: 13px;
}

.al-legal a,
.al-legal button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: none;
	opacity: 0.75;
	cursor: pointer;
}

.al-legal a:hover,
.al-legal button:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 1;
}

.al-legal--blog {
	padding: 14px 16px 22px;
}

/* Under a migrated campaign's own footer: a quiet line on the page colour. */
.al-legal--legacy {
	padding: 14px 16px 18px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 12px;
}
