/*
 * Cookie notice styling.
 *
 * Reads the host theme's own custom properties (--ink, --paper, --marigold,
 * --font-body, --radius, --line) so the banner looks native rather than
 * bolted on. Every property has a plain-colour fallback first, so the banner
 * still looks reasonable if it's ever active under a theme that doesn't
 * define these variables.
 */

.accmcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 100000;
	background: #2e2233;
	background: var(--ink, #2e2233);
	color: #f5efe6;
	color: var(--paper, #f5efe6);
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-family: var(--font-body, system-ui, -apple-system, 'Segoe UI', sans-serif);
	font-size: 0.94rem;
	line-height: 1.5;
	box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.22);
	transform: translateY(100%);
	transition: transform 0.35s ease;
}

.accmcc-banner--bottom {
	bottom: 0;
}

.accmcc-banner--top {
	top: 0;
	transform: translateY(-100%);
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.accmcc-banner.is-visible {
	transform: translateY(0);
}

.accmcc-banner__inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.accmcc-banner__text {
	flex: 1 1 420px;
	margin: 0;
}

.accmcc-banner__link {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
	margin-left: 4px;
}

.accmcc-banner__button {
	flex: 0 0 auto;
	background: #e6a13a;
	background: var(--marigold, #e6a13a);
	color: #2e2233;
	color: var(--ink, #2e2233);
	border: none;
	border-radius: 6px;
	border-radius: var(--radius, 6px);
	padding: 11px 26px;
	font-size: 0.94rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.accmcc-banner__button:hover {
	filter: brightness(1.08);
}

.accmcc-banner__button:focus-visible,
.accmcc-banner__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.accmcc-banner__inner {
		padding: 16px 18px;
	}

	.accmcc-banner__button {
		width: 100%;
	}
}

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