/*
 * Module 14 — consent banner. ATC tokens, bottom sheet, no dark pattern: "Nur notwendige" is as
 * prominent and as reachable as "Alle akzeptieren".
 */

.atc-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: var(--atc-dark-card, #1f1f1f);
	border-top: 3px solid var(--atc-primary, #ffee00);
	color: var(--atc-color-body, #e0e0e0);
	transform: translateY(110%);
	transition: transform 0.35s ease;
	max-height: 85vh;
	overflow-y: auto;
}

.atc-consent.is-visible {
	transform: translateY(0);
}

.atc-consent__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 22px 20px;
}

.atc-consent__text {
	margin: 0 0 16px;
	line-height: 1.6;
	font-size: 15px;
}

.atc-consent__link {
	color: var(--atc-primary, #ffee00);
	text-decoration: underline;
}

.atc-consent__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.atc-consent__btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
	padding: 12px 20px;
	border-radius: 2px;
	border: 1px solid var(--atc-cta, #ef3054);
	background: transparent;
	color: var(--atc-color-heading, #fff);
}

.atc-consent__btn:hover {
	background: #ffffff14;
}

.atc-consent__btn--accept {
	background: var(--atc-cta, #ef3054);
	border-color: var(--atc-cta, #ef3054);
	color: #fff;
}

/* Only shown once the details are open; saving a partial choice needs its own button. */
.atc-consent__details[hidden] ~ .atc-consent__buttons .atc-consent__btn--save {
	display: none;
}

.atc-consent__details {
	margin: 0 0 18px;
	padding: 16px 0;
	border-top: 1px solid var(--atc-border, #1a1a1a);
	border-bottom: 1px solid var(--atc-border, #1a1a1a);
}

.atc-consent__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.atc-consent__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	align-items: start;
	background: #0a0a0a;
	border: 1px solid var(--atc-border, #1a1a1a);
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
}

.atc-consent__item.is-locked {
	opacity: 0.65;
	cursor: default;
}

.atc-consent__item input {
	margin: 2px 0 0;
	accent-color: var(--atc-primary, #ffee00);
}

.atc-consent__item-label {
	font-weight: 700;
	color: var(--atc-color-heading, #fff);
	font-size: 14px;
}

.atc-consent__item-desc {
	grid-column: 2;
	color: var(--atc-text-muted, #9c9c9c);
	font-size: 12px;
	line-height: 1.5;
}

/* Google Translate injects its own widget; keep it out of the layout until it is asked for. */
/* Google's own dropdown never shows: the flag in the header drives the hidden select. */
.atc-translate-host {
	position: fixed;
	bottom: 0;
	right: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

body { top: 0 !important; }
.skiptranslate iframe,
#goog-gt-tt,
.goog-te-banner-frame,
.goog-te-balloon-frame { display: none !important; }

.goog-te-banner-frame,
.skiptranslate iframe {
	display: none !important;
}

body {
	top: 0 !important;
}

@media (max-width: 600px) {
	.atc-consent__buttons .atc-consent__btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

/*
 * Aidbase chat (consent.js mountChatbot). Fixed frame as on the old site (40px from the corner).
 * The cart button sits bottom-left and the booking bar at the bottom: the chat moves above both.
 */
.atc-chatbot {
	position: fixed;
	bottom: 40px;
	z-index: 1000;
}

.atc-chatbot--left {
	left: 40px;
}

.atc-chatbot--right {
	right: 40px;
}

body:has(.atc-cart-fab) .atc-chatbot--left {
	bottom: 100px;
}

body.atc-has-sticky .atc-chatbot {
	bottom: calc(var(--atc-sticky-h, 80px) + 24px);
}

body.atc-has-sticky:has(.atc-cart-fab) .atc-chatbot--left {
	bottom: calc(var(--atc-sticky-h, 80px) + 84px);
}

@media (max-width: 600px) {
	.atc-chatbot {
		bottom: 16px;
	}

	.atc-chatbot--left {
		left: 16px;
	}

	.atc-chatbot--right {
		right: 16px;
	}

	body:has(.atc-cart-fab) .atc-chatbot--left {
		bottom: 72px;
	}
}
