/**
 * Travelnet Cookies – bottom consent bar
 * Same structure as top promo banner, different palette (slate / amber).
 */

.tn-cookies {
	--tn-ck-bg0: #1a2a2e;
	--tn-ck-bg1: #243b40;
	--tn-ck-bg2: #2f5553;
	--tn-ck-accent: #e8a317;
	--tn-ck-text: #f4f7f6;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--tn-ck-text);
	background: linear-gradient(145deg, var(--tn-ck-bg0) 0%, var(--tn-ck-bg1) 55%, var(--tn-ck-bg2) 100%);
	border-top: 2px solid rgba(232, 163, 23, 0.5);
	box-shadow: 0 -8px 32px rgba(15, 28, 32, 0.4);
	transform: translateY(110%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, visibility 0.45s ease;
	overflow: hidden;
}

.tn-cookies--pending {
	transform: translateY(110%);
	opacity: 0;
	visibility: hidden;
}

.tn-cookies.is-visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.tn-cookies.is-closing {
	transform: translateY(110%);
	opacity: 0;
}

.tn-cookies__shimmer {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		transparent 35%,
		rgba(255, 255, 255, 0.05) 50%,
		transparent 65%
	);
	background-size: 200% 100%;
	animation: tn-cookies-shimmer 6s ease-in-out infinite;
	pointer-events: none;
}

@keyframes tn-cookies-shimmer {
	0%, 100% { background-position: 200% 0; }
	50% { background-position: -200% 0; }
}

.tn-cookies__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.85rem 1rem 0.85rem 1.25rem;
}

.tn-cookies__content {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	flex: 1;
	min-width: 0;
}

.tn-cookies__dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	margin-top: 0.45em;
	border-radius: 50%;
	background: var(--tn-ck-accent);
	box-shadow: 0 0 0 0 rgba(232, 163, 23, 0.5);
	animation: tn-cookies-pulse 2.5s ease-out infinite;
}

@keyframes tn-cookies-pulse {
	0% { box-shadow: 0 0 0 0 rgba(232, 163, 23, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(232, 163, 23, 0); }
	100% { box-shadow: 0 0 0 0 rgba(232, 163, 23, 0); }
}

.tn-cookies__text {
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(244, 247, 246, 0.92);
}

.tn-cookies__identity {
	font-weight: 700;
	color: #fff;
}

.tn-cookies__hook {
	display: inline;
	margin-left: 0.35rem;
	color: rgba(244, 247, 246, 0.82);
}

.tn-cookies__list {
	display: block;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	color: rgba(244, 247, 246, 0.88);
}

.tn-cookies__list li {
	margin: 0.15rem 0;
}

.tn-cookies__list strong {
	color: var(--tn-ck-accent);
	font-weight: 700;
}

.tn-cookies__link {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.tn-cookies__link:hover,
.tn-cookies__link:focus {
	color: var(--tn-ck-accent) !important;
}

.tn-cookies__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.tn-cookies__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.5rem 1.05rem;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tn-cookies__btn:focus {
	outline: 2px solid var(--tn-ck-accent);
	outline-offset: 2px;
}

.tn-cookies__btn--accept {
	color: #1a2a2e !important;
	background: #fff;
	border: 1px solid #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.tn-cookies__btn--accept:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.tn-cookies__btn--refuse {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.tn-cookies__btn--refuse:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.7);
	transform: translateY(-1px);
}

.tn-cookies-reopen {
	position: fixed;
	bottom: 1rem;
	left: 1rem;
	z-index: 99998;
	padding: 0.55rem 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: #1a2a2e !important;
	background: #e8a317;
	border: none;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(26, 42, 46, 0.28);
	cursor: pointer;
}

.tn-cookies-reopen:hover,
.tn-cookies-reopen:focus {
	filter: brightness(1.05);
	outline: none;
}

.tn-cookies-reopen[hidden] {
	display: none !important;
}

.tn-cookies-yt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0.75rem 0;
	padding: 1rem 1.1rem;
	color: #f4f7f6;
	background: linear-gradient(145deg, #1a2a2e, #2f5553);
	border: 1px solid rgba(232, 163, 23, 0.45);
	border-radius: 12px;
}

.tn-cookies-yt__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
}

.tn-cookies-yt__btn {
	padding: 0.45rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #1a2a2e;
	background: #e8a317;
	border: none;
	border-radius: 999px;
	cursor: pointer;
}

body.tn-cookies-active {
	transition: padding-bottom 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
	.tn-cookies__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding: 0.85rem;
	}

	.tn-cookies__hook {
		display: block;
		margin-left: 0;
		margin-top: 0.25rem;
	}

	.tn-cookies__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.tn-cookies__btn {
		width: 100%;
	}

	.tn-cookies-reopen {
		bottom: 0.75rem;
		left: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tn-cookies,
	.tn-cookies__shimmer,
	.tn-cookies__dot,
	body.tn-cookies-active {
		animation: none;
		transition: none;
	}
}
