/**
 * Consent banner. Both choices use the same button style.
 * Accent orange is a highlight bar only; text on the bar is the dark primary.
 */

.chagil-consent__status {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.chagil-consent {
	position: fixed;
	z-index: 70;
	inset-inline: 0;
	bottom: 0;
	max-height: 70vh;
	overflow: auto;
	box-sizing: border-box;
	background: var(--c-light, #f2f4f7);
	color: var(--c-primary, #1e2b3a);
	border-top: 3px solid var(--c-accent, #d4804e);
	box-shadow: 0 -8px 24px rgba(30, 43, 58, 0.12);
	padding: 1rem clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem) calc(1rem + env(safe-area-inset-bottom, 0px));
	font-family: var(--font, "Rubik", system-ui, sans-serif);
}

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

.has-consent-banner {
	padding-bottom: 9rem;
}

.chagil-consent__inner {
	max-width: 1200px;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.chagil-consent__copy {
	flex: 1 1 18rem;
	min-width: 0;
}

.chagil-consent__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--c-primary, #1e2b3a);
}

.chagil-consent__text,
.chagil-consent__preview {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--c-primary, #1e2b3a);
}

.chagil-consent__preview {
	margin-top: 0.5rem;
	color: var(--c-text-2, #4d5866);
}

.chagil-consent__text a {
	color: var(--c-primary, #1e2b3a);
	font-weight: 500;
}

.chagil-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	flex: 1 1 20rem;
	justify-content: flex-end;
}

.chagil-consent__choice {
	flex: 1 1 10rem;
	min-height: 48px;
	margin: 0;
	padding: 0.75rem 1.25rem;
	font: 500 1rem/1.2 var(--font, "Rubik", system-ui, sans-serif);
	color: #1e2b3a;
	background: #fff;
	border: 2px solid #1e2b3a;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
}

.chagil-consent__choice:hover {
	background: #fff;
	color: #1e2b3a;
	border-color: #1e2b3a;
}

.chagil-consent__choice:focus-visible,
.chagil-consent:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1e2b3a;
}

.chagil-consent-settings {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.site-footer .chagil-consent-settings {
	color: #fff;
}

.site-footer .chagil-consent-settings:hover {
	text-decoration-thickness: 2px;
}

.site-footer .chagil-consent-settings:focus-visible {
	outline: none;
	border-radius: 3px;
	box-shadow: 0 0 0 3px #1e2b3a, 0 0 0 6px #d4804e;
}

@media (max-width: 640px) {
	.has-consent-banner {
		padding-bottom: 18rem;
	}

	.chagil-consent__actions {
		flex-basis: 100%;
		justify-content: stretch;
	}

	.chagil-consent__choice {
		flex-basis: 100%;
	}
}
