/* ==========================================================================
   Cookie consent banner + preferences modal
   ========================================================================== */

.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	transform: translateY(110%);
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
	pointer-events: none;
}
.cookie-banner.is-visible {
	transform: translateY(0);
	pointer-events: auto;
}

.cookie-banner-inner {
	max-width: 1140px;
	margin: 0 auto 20px;
	padding: 22px 26px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(11, 31, 58, .25);
	border-top: 4px solid #0D509F;
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}

.cookie-banner-text { flex: 1 1 420px; }
.cookie-banner-title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	color: #0b1f3a;
}
.cookie-banner-text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #45566e;
	max-width: 62ch;
}

.cookie-banner-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.cookie-banner-actions .btn {
	padding: 10px 20px;
	font-size: 14px;
	border-radius: 8px;
	white-space: nowrap;
}
.cookie-banner-actions .btn-link {
	background: none;
	border: none;
	color: #0D509F;
	text-decoration: underline;
	padding-left: 4px;
	padding-right: 4px;
	cursor: pointer;
}
.cookie-banner-actions .btn-outline {
	border: 1.5px solid #c9d4e2;
	color: #33465f;
	background: #fff;
	cursor: pointer;
}
.cookie-banner-actions .btn-outline:hover {
	border-color: #0D509F;
	color: #0D509F;
}

/* ---- Preferences modal ---- */

.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}
.cookie-modal.is-open { display: block; }

.cookie-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 31, 58, .55);
	backdrop-filter: blur(2px);
}

.cookie-modal-card {
	position: relative;
	width: 100%;
	max-width: 340px;
	margin: 5vh auto;
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(11, 31, 58, .25);
	padding: 10px 14px;
	animation: cookieModalIn .3s ease both;
}
@keyframes cookieModalIn {
	from { opacity: 0; transform: translateY(16px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.cookie-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #7a8aa0;
	cursor: pointer;
	padding: 2px 6px;
}
.cookie-modal-close:hover { color: #C92547; }

.cookie-modal h2 {
	margin: 0 0 1px;
	font-size: 16px;
	font-weight: 700;
	color: #0b1f3a;
}
.cookie-modal-intro {
	display: none;
}

.cookie-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border: 1px solid #e4eaf2;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 6px;
}

.cookie-cat p { display: none !important; }
.cookie-cat-cookies { display: none !important; }

.cookie-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

/* Toggle on the right, label on the left (standard settings pattern) */
.cookie-switch { order: 2; }
.cookie-cat-name { order: 1; }

.cookie-switch {
	display: inline-flex;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
	position: relative;
	cursor: pointer;
}

.cookie-switch input {
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	position: absolute;
	z-index: 2;
}

.cookie-slider {
	display: block;
	width: 100%;
	height: 100%;
	background: #cbd5e3;
	border-radius: 999px;
	transition: background .2s ease;
	pointer-events: none;
	position: relative;
}

.cookie-slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}

.cookie-switch input:checked + .cookie-slider { background: #0D509F; }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-slider {
	outline: 2px solid #0D509F;
	outline-offset: 2px;
}

.cookie-cat-name {
	font-weight: 600;
	font-size: 13px;
	color: #0b1f3a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cookie-cat-name small { display: none; }

.cookie-cat-always {
	order: 3;
	font-size: 10px;
	font-weight: 600;
	color: #0D509F;
	background: #eaf2fb;
	border-radius: 999px;
	padding: 2px 8px;
	white-space: nowrap;
	flex-shrink: 0;
}

.cookie-modal-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 14px;
}

.cookie-modal-actions .btn {
	padding: 9px 18px;
	font-size: 12.5px;
	border-radius: 7px;
	cursor: pointer;
}


