.gleisan-consent,
.gleisan-consent * {
	box-sizing: border-box;
}

.gleisan-consent,
.gleisan-consent-preferences {
	--gleisan-consent-surface: var(--theme-color-bg_color, #fff);
	--gleisan-consent-soft: var(--theme-color-bg_color_2, #faf9f6);
	--gleisan-consent-border: var(--theme-color-bd_color, #e6ded7);
	--gleisan-consent-ink: var(--theme-color-title, #1f242e);
	--gleisan-consent-text: var(--theme-color-text, #4b5563);
	--gleisan-consent-muted: var(--theme-color-meta, #7a828c);
	--gleisan-consent-accent: var(--theme-color-link, #c20919);
	--gleisan-consent-accent-hover: var(--theme-color-hover, #930712);
	--gleisan-consent-radius: var(--gleisan-radius-md, 8px);
	--gleisan-consent-shadow: 0 18px 50px rgba(31, 36, 46, 0.16);
}

.gleisan-consent__banner {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 99990;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	max-width: 960px;
	margin: 0 auto;
	padding: 18px;
	color: var(--gleisan-consent-ink);
	background: var(--gleisan-consent-surface);
	border: 1px solid var(--gleisan-consent-border);
	border-radius: var(--gleisan-consent-radius);
	box-shadow: var(--gleisan-consent-shadow);
	font-family: inherit;
}

.gleisan-consent__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0;
}

.gleisan-consent__message,
.gleisan-consent__choice p,
.gleisan-consent__choice span {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0;
}

.gleisan-consent__message {
	margin-top: 6px;
	color: var(--gleisan-consent-text);
}

.gleisan-consent__message a {
	color: var(--gleisan-consent-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gleisan-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.gleisan-consent__button,
.gleisan-consent-preferences,
.gleisan-consent__icon-button {
	appearance: none;
	border: 0;
	font: inherit;
	letter-spacing: 0;
	cursor: pointer;
}

.gleisan-consent__button {
	min-height: 42px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.gleisan-consent__button--primary {
	color: #fff;
	background: var(--gleisan-consent-accent);
}

.gleisan-consent__button--primary:hover {
	background: var(--gleisan-consent-accent-hover);
}

.gleisan-consent__button--secondary {
	color: var(--gleisan-consent-ink);
	background: var(--gleisan-consent-soft);
}

.gleisan-consent__button--secondary:hover {
	color: var(--gleisan-consent-accent);
	background: rgba(194, 9, 25, 0.08);
}

.gleisan-consent__button:focus-visible,
.gleisan-consent-preferences:focus-visible,
.gleisan-consent__icon-button:focus-visible,
.gleisan-consent__choice input:focus-visible {
	outline: 3px solid rgba(194, 9, 25, 0.28);
	outline-offset: 2px;
}

.gleisan-consent__overlay {
	position: fixed;
	inset: 0;
	z-index: 99991;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(31, 36, 46, 0.62);
}

.gleisan-consent__panel {
	width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 20px;
	color: var(--gleisan-consent-ink);
	background: var(--gleisan-consent-surface);
	border: 1px solid var(--gleisan-consent-border);
	border-radius: var(--gleisan-consent-radius);
	box-shadow: 0 24px 70px rgba(31, 36, 46, 0.28);
}

.gleisan-consent__panel-header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.gleisan-consent__icon-button {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--gleisan-consent-ink);
	background: var(--gleisan-consent-soft);
	border-radius: var(--gleisan-consent-radius);
	font-size: 24px;
	line-height: 1;
}

.gleisan-consent__choices {
	display: grid;
	gap: 10px;
}

.gleisan-consent__choice {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--gleisan-consent-border);
	border-radius: var(--gleisan-consent-radius);
	background: var(--gleisan-consent-soft);
}

.gleisan-consent__choice strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
	line-height: 1.3;
}

.gleisan-consent__choice input {
	width: 22px;
	height: 22px;
	accent-color: var(--gleisan-consent-accent);
}

.gleisan-consent__required {
	padding: 5px 8px;
	color: var(--gleisan-consent-accent);
	background: rgba(194, 9, 25, 0.08);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.gleisan-consent__actions--panel {
	margin-top: 16px;
}

.gleisan-consent-preferences {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: auto;
	z-index: 99960;
	min-height: 36px;
	padding: 8px 10px;
	color: var(--gleisan-consent-ink);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--gleisan-consent-border);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(31, 36, 46, 0.12);
	font-size: 12px;
}

[hidden] {
	display: none !important;
}

@media (max-width: 720px) {
	.gleisan-consent__banner {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.gleisan-consent__actions {
		justify-content: stretch;
	}

	.gleisan-consent__button {
		flex: 1 1 100%;
		white-space: normal;
	}
}
