/**
 * TENARYA — Compact Cookie Consent Banner
 *
 * Lightweight, fixed, mobile-first and dependency-free.
 */

.tenarya-cookie-banner[hidden] {
	display: none !important;
}

.tenarya-cookie-banner {
	--tenarya-cookie-bg: #172019;
	--tenarya-cookie-text: #f6f2e8;
	--tenarya-cookie-muted: rgba(246, 242, 232, 0.78);
	--tenarya-cookie-green: #1f4b30;
	--tenarya-cookie-green-hover: #163722;
	--tenarya-cookie-border: rgba(246, 242, 232, 0.38);

	position: fixed;
	z-index: 99999;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);

	width: min(560px, calc(100% - 24px));
	padding: 12px;

	box-sizing: border-box;
	background: var(--tenarya-cookie-bg);
	color: var(--tenarya-cookie-text);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);

	font-family: inherit;
	text-align: center;
}

.tenarya-cookie-banner__text {
	margin: 0;
	color: var(--tenarya-cookie-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.tenarya-cookie-banner__text a {
	color: var(--tenarya-cookie-text);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tenarya-cookie-banner__text a:hover {
	color: #ffffff;
}

.tenarya-cookie-banner__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.tenarya-cookie-banner__button {
	min-height: 38px;
	margin: 0;
	padding: 8px 14px;

	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;

	transition:
		background-color 140ms ease,
		border-color 140ms ease,
		color 140ms ease;
}

.tenarya-cookie-banner__button--accept {
	color: #ffffff;
	background: var(--tenarya-cookie-green);
	border: 1px solid var(--tenarya-cookie-green);
}

.tenarya-cookie-banner__button--accept:hover {
	background: var(--tenarya-cookie-green-hover);
	border-color: var(--tenarya-cookie-green-hover);
}

.tenarya-cookie-banner__button--reject {
	color: var(--tenarya-cookie-text);
	background: transparent;
	border: 1px solid var(--tenarya-cookie-border);
}

.tenarya-cookie-banner__button--reject:hover {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.05);
}

.tenarya-cookie-banner a:focus-visible,
.tenarya-cookie-banner button:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.tenarya-cookie-banner {
		bottom: 0;
		width: 100%;
		padding: 10px 14px 12px;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
	}

	.tenarya-cookie-banner__text {
		font-size: 12px;
		line-height: 1.4;
	}

	.tenarya-cookie-banner__actions {
		margin-top: 9px;
	}

	.tenarya-cookie-banner__button {
		min-height: 36px;
		padding: 7px 12px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tenarya-cookie-banner__button {
		transition: none;
	}
}
