/**
 * Consent banner. Fixed to the bottom so the page does not shift.
 * Accept and Reject share one rule so they stay the same size and weight.
 */

.cp-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 210;
	margin: 0;
	padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
	background: var(--cp-navy, #0a2642);
	color: var(--cp-text, #eaf0f6);
	border-top: 1px solid var(--cp-line, rgba(234, 240, 246, 0.16));
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
}

.cp-consent[hidden] {
	display: none !important;
}

.cp-consent:focus {
	outline: none;
}

.cp-consent:focus-visible {
	outline: 2px solid var(--cp-teal-soft, #8ad4c6);
	outline-offset: -2px;
}

.cp-consent-inner {
	max-width: var(--cp-max, 68rem);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.5rem;
}

.cp-consent-copy {
	flex: 1 1 18rem;
	min-width: 12rem;
}

.cp-consent-text {
	margin: 0 0 0.35rem;
	max-width: 42rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--cp-text, #eaf0f6);
}

.cp-consent-privacy {
	font-size: 0.85rem;
}

.cp-consent-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
	flex: 0 0 auto;
	width: min(100%, 20rem);
}

.cp-consent-btn {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-height: 2.6rem;
	margin: 0;
	padding: 0.55rem 1.1rem;
	border: 1px solid rgba(234, 240, 246, 0.55);
	border-radius: var(--cp-radius, 5px);
	background: transparent;
	color: var(--cp-white, #fff);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
}

.cp-consent-btn:hover,
.cp-consent-btn:focus-visible {
	background: var(--cp-blue, #144d87);
	border-color: var(--cp-teal-soft, #8ad4c6);
	color: var(--cp-white, #fff);
}

.cp-consent-btn:focus-visible {
	outline: 2px solid var(--cp-teal-soft, #8ad4c6);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.cp-consent-actions {
		width: 100%;
	}
}
