/**
 * Museum Cookie Consent — bottom banner
 * Brand tokens: #E94E1B / #9F3110 / #101828 / #4A5565
 */

.mcc-banner {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 99999;
	padding: 1rem;
	pointer-events: none;
	font-family: "Open Sans", system-ui, -apple-system, sans-serif;
}

.mcc-banner[hidden] {
	display: none !important;
}

.mcc-banner__inner {
	pointer-events: auto;
	box-sizing: border-box;
	width: 100%;
	max-width: 72rem;
	height: auto;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.25rem 1.5rem;
	background: #ffffff;
	color: #101828;
	border: 0.0625rem solid #e5e7eb;
	border-bottom: 0.1875rem solid #101828;
	box-shadow: 0 -0.5rem 1.5rem rgba(16, 24, 40, 0.12);
}

/*
 * Do NOT use flex-basis: 18rem here — when the row wraps to a column,
 * that basis becomes height (~288px) and leaves a huge empty gap above the buttons.
 */
.mcc-banner__content {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: min(100%, 18rem);
	min-height: 0;
	height: auto;
}

.mcc-banner p {
	margin: 0;
}

.mcc-banner__title {
	margin: 0 0 0.375rem;
	font-family: "Space Grotesk", "Open Sans", sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.35;
	color: #101828;
}

.mcc-banner__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #4a5565;
}

.mcc-banner__privacy {
	color: #e94e1b;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.125rem;
}

.mcc-banner__privacy--append {
	margin-left: 0.35em;
}

.mcc-banner__privacy:hover,
.mcc-banner__privacy:focus-visible {
	color: #9f3110;
}

.mcc-banner__privacy:focus-visible {
	outline: 0.125rem solid #e94e1b;
	outline-offset: 0.125rem;
}

.mcc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	flex: 0 0 auto;
}

.mcc-banner__btn {
	appearance: none;
	cursor: pointer;
	margin: 0;
	padding: 0.75rem 1.25rem;
	min-height: 2.75rem;
	border-radius: 0;
	font-family: Inter, "Open Sans", sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.25;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mcc-banner__btn:focus-visible {
	outline: 0.125rem solid #e94e1b;
	outline-offset: 0.125rem;
}

.mcc-banner__btn--reject {
	background: #ffffff;
	color: #101828;
	border: 0.125rem solid #101828;
}

.mcc-banner__btn--reject:hover,
.mcc-banner__btn--reject:focus-visible {
	background: #f2f2f7;
}

.mcc-banner__btn--accept {
	background: #e94e1b;
	color: #ffffff;
	border: 0.125rem solid #e94e1b;
}

.mcc-banner__btn--accept:hover,
.mcc-banner__btn--accept:focus-visible {
	background: #9f3110;
	border-color: #9f3110;
}

@media (max-width: 40rem) {
	.mcc-banner {
		padding: 0.5rem;
		padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
	}

	.mcc-banner__inner {
		max-width: 100%;
		height: auto;
		max-height: none;
		overflow: visible;
		padding: 0.75rem 0.875rem;
		gap: 0.5rem;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		align-content: flex-start;
		justify-content: flex-start;
	}

	.mcc-banner__content {
		flex: 0 0 auto;
		min-width: 0;
		width: 100%;
		height: auto;
		min-height: 0;
	}

	.mcc-banner__title {
		margin: 0 0 0.25rem;
		font-size: 0.9375rem;
		line-height: 1.3;
	}

	.mcc-banner__text {
		margin: 0;
		font-size: 0.8125rem;
		line-height: 1.4;
	}

	.mcc-banner__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
		width: 100%;
		flex: 0 0 auto;
		margin: 0;
	}

	.mcc-banner__btn {
		width: 100%;
		padding: 0.625rem 0.5rem;
		min-height: 2.75rem;
		font-size: 0.8125rem;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcc-banner__btn {
		transition: none;
	}
}
