/* CLB cookie consent banner + preferences dialog.
   High-contrast, brand-aligned (CLB teal + beam yellow), and anchored bottom-left
   so it never covers the accessibility launcher (bottom-right). Paired with
   assets/js/clb-consent.js. */

.clb-consent {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 2147483000; /* above the site chrome, below nothing that matters */
	max-width: 30rem;
	width: calc(100% - 2rem);
}

.clb-consent__card {
	background: #063e3e;
	color: #ffffff;
	border: 2px solid #fee065;
	border-radius: 14px;
	padding: 1.15rem 1.25rem 1.25rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.clb-consent__title {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
	line-height: 1.2;
	color: #ffffff;
}

.clb-consent__text {
	margin: 0 0 0.9rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #eef5f3;
}

.clb-consent__text a,
.clb-consent-dialog a {
	color: #fee065;
	text-decoration: underline;
}

.clb-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.clb-consent__btn {
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	border: 2px solid #fee065;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

.clb-consent__btn--primary {
	background: #fee065;
	color: #063e3e;
}

.clb-consent__btn--link {
	border-color: transparent;
	text-decoration: underline;
	padding-left: 0.4rem;
	padding-right: 0.4rem;
}

.clb-consent__btn:hover {
	background: #fff2ad;
	color: #063e3e;
	border-color: #fff2ad;
}

.clb-consent__btn:focus-visible,
.clb-consent__btn:focus {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

/* Preferences dialog */
.clb-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: rgba(6, 24, 22, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.clb-consent-dialog {
	background: #ffffff;
	color: #10201d;
	border-radius: 14px;
	max-width: 34rem;
	width: 100%;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 1.4rem 1.5rem 1.5rem;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.clb-consent-dialog__title {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
	color: #063e3e;
}

.clb-consent-dialog__intro {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #33413e;
}

.clb-consent-row {
	padding: 0.85rem 0;
	border-top: 1px solid #e2e8e6;
}

.clb-consent-row__label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	color: #10201d;
	cursor: pointer;
}

.clb-consent-row__label input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: #063e3e;
}

.clb-consent-row__label input:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.clb-consent-row__name {
	font-size: 1.02rem;
}

.clb-consent-row__desc {
	margin: 0.35rem 0 0 1.75rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #47554f;
}

.clb-consent-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.2rem;
}

.clb-consent-dialog .clb-consent__btn {
	border-color: #063e3e;
	color: #063e3e;
}

.clb-consent-dialog .clb-consent__btn--primary {
	background: #063e3e;
	color: #ffffff;
}

.clb-consent-dialog .clb-consent__btn--link {
	border-color: transparent;
}

.clb-consent-dialog .clb-consent__btn:hover {
	background: #063e3e;
	color: #ffffff;
}

.clb-consent-dialog .clb-consent__btn:focus-visible,
.clb-consent-dialog .clb-consent__btn:focus {
	outline: 3px solid #063e3e;
	outline-offset: 2px;
}

/* Respect reduced-motion and honor the accessibility widget's high-contrast mode
   by leaning on system colors when forced-colors is active. */
@media (forced-colors: active) {
	.clb-consent__card,
	.clb-consent-dialog {
		border: 2px solid CanvasText;
	}
}
