/**
 * EireSafe theme — cookie consent card.
 * Small, anchored bottom-left, dismissible. Never a full-width bar.
 */

.es-consent {
	position: fixed;
	left: 14px;
	bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	z-index: 100000;
	width: min(340px, calc(100vw - 28px));
	padding: 14px 15px 13px;
	border: 1px solid #dfe8e0;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 18px 44px -14px rgba(10, 25, 18, .45);
	font-family: Inter, -apple-system, "Segoe UI", sans-serif;
	animation: es-consent-in .35s cubic-bezier(.22, .8, .24, 1);
}

.es-consent[hidden] { display: none; }

@keyframes es-consent-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

.es-consent p {
	margin: 0 0 10px;
	color: #41524a;
	font-size: 12.5px;
	line-height: 1.55;
}

.es-consent strong { color: #0b3d2a; }

.es-consent a {
	color: #0b3d2a;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.es-consent-actions { display: flex; gap: 8px; }

.es-consent-btn {
	flex: 1;
	min-height: 44px;
	padding: 8px 10px;
	border: 1.5px solid #cbd6cd;
	border-radius: 9px;
	background: #ffffff;
	color: #0b3d2a;
	font: 700 12.5px/1 Inter, -apple-system, "Segoe UI", sans-serif;
	cursor: pointer;
}

.es-consent-btn.is-primary {
	border-color: #0b3d2a;
	background: #0b3d2a;
	color: #ffffff;
}

.es-consent-btn:hover { filter: brightness(1.05); }

@media (prefers-reduced-motion: reduce) {
	.es-consent { animation: none; }
}
