/* OCTIV cookie consent banner — matches the site's navy / lavender palette. */

.octiv-consent {
	--octiv-navy: #213163;
	--octiv-navy-hover: #2d4180;
	--octiv-line: #cfd4e2;
	--octiv-soft: #eef0f5;
	--octiv-focus: #8f7ff5;

	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 100000;
	box-sizing: border-box;
	width: calc(100% - 48px);
	max-width: 440px;
	padding: 24px;
	background: #fff;
	color: var(--octiv-navy);
	border: 1px solid var(--octiv-line);
	box-shadow: 0 16px 40px rgba(33, 49, 99, 0.16);
	font-family: inherit;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.octiv-consent.is-visible {
	opacity: 1;
	transform: none;
}

.octiv-consent__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
}

.octiv-consent__text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.55;
}

.octiv-consent__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.octiv-consent__actions {
	display: flex;
	gap: 12px;
}

/* Both choices get the same size and weight — rejecting must be as easy as accepting. */
.octiv-consent__btn,
.octiv-consent-open {
	flex: 1 1 0;
	margin: 0;
	padding: 12px 20px;
	border: 1px solid var(--octiv-navy);
	border-radius: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.octiv-consent__btn--primary {
	background: var(--octiv-navy);
	color: #fff;
}

.octiv-consent__btn--primary:hover {
	background: var(--octiv-navy-hover);
	border-color: var(--octiv-navy-hover);
}

.octiv-consent__btn--secondary,
.octiv-consent-open {
	background: transparent;
	color: var(--octiv-navy);
}

.octiv-consent__btn--secondary:hover,
.octiv-consent-open:hover {
	background: var(--octiv-soft, #eef0f5);
}

.octiv-consent__btn:focus-visible,
.octiv-consent-open:focus-visible,
.octiv-consent__text a:focus-visible {
	outline: 2px solid var(--octiv-focus, #8f7ff5);
	outline-offset: 2px;
}

.octiv-consent-open {
	--octiv-navy: #213163;
	flex: none;
}

@media (max-width: 767px) {
	.octiv-consent {
		left: 16px;
		bottom: 16px;
		width: calc(100% - 32px);
		max-width: none;
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.octiv-consent {
		transition: none;
		transform: none;
	}
}
