/* Cookie-Leiste (gdpr.php) – Porto-Regeln aus BAV css/theme-elements.css, in Gröpler fehlten sie */
/* GDPR */
[data-plugin-gdpr-wrapper] {
	opacity: 0;
	transition: ease opacity 300ms;
}

[data-plugin-gdpr-wrapper].show {
	opacity: 1;
}

.gdpr-bar {
	position: fixed;
	width: 100%;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: rgba(0, 0, 0, 0.9);
	padding: 16px 24px;
	padding: 1rem 1.5rem;
	z-index: 1050;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 100%, 0);
	transition: ease opacity 300ms, ease transform 300ms;
}

.gdpr-bar .gdpr-bar-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
}

.gdpr-bar .gdpr-bar-actions .gdpr-agree-trigger {
	margin-left: 32px;
	margin-left: 2rem;
}

.gdpr-bar.show {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0);
}

.gdpr-bar.removing {
	opacity: 0;
	transform: translate3d(0, 100%, 0);
}

@media (min-width: 1200px) {
	.gdpr-bar {
		flex-direction: row;
		align-items: center;
	}

	.gdpr-bar .gdpr-bar-actions {
		justify-content: flex-end;
		margin-top: 0;
	}
}

.gdpr-preferences-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1051;
	opacity: 0;
	visibility: hidden;
	transition: ease opacity 300ms;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content {
	max-width: 1000px;
	background: var(--light);
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-close-popup {
	position: absolute;
	top: 25px;
	right: 25px;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body {
	max-height: 60vh;
	overflow-y: auto;
	padding: 40px;
	padding: 2.5rem;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item {
	display: flex;
	flex-wrap: wrap;
	font-size: 12.8px;
	font-size: 0.8rem;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item .gdpr-cookie-item-title {
	width: 100%;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item .gdpr-cookie-item-description {
	width: 70%;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item .gdpr-cookie-item-action {
	width: 30%;
	text-align: right;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item + .gdpr-cookie-item {
	margin-top: 10px;
}

.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 40px;
	padding: 1.5rem 2.5rem;
	background: #f4f4f4;
}

.gdpr-preferences-popup.show {
	opacity: 1;
	visibility: visible;
}

@media (min-width: 992px) {
	.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item {
		flex-wrap: nowrap;
	}

	.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item .gdpr-cookie-item-title {
		width: 20%;
	}

	.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item .gdpr-cookie-item-description {
		width: 60%;
	}

	.gdpr-preferences-popup .gdpr-preferences-popup-content .gdpr-preferences-popup-content-body .gdpr-cookie-item .gdpr-cookie-item-action {
		width: 20%;
	}
}

/* Custom Checkbox Switch */
.custom-checkbox-switch {
	position: relative;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	width: 50px;
	height: 26px;
	background-color: var(--grey-500);
	border: 1px solid #D9DADC;
	border-radius: 50px;
	cursor: pointer;
	transition: ease all 300ms;
}

.custom-checkbox-switch:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 6px;
	width: 15px;
	height: 15px;
	background-color: var(--light);
	border-radius: 50%;
	transform: translate3d(0, -50%, 0);
	transition: ease left 300ms;
}

.custom-checkbox-switch:checked {
	border-color: var(--grey-500);
}

.custom-checkbox-switch:checked:after {
	left: 27px;
}

/* Gröpler-Anpassungen */
.gdpr-preferences-popup .gdpr-preferences-popup-content { background: #fff; }
.custom-checkbox-switch { background-color: #c8ccd0; }
.custom-checkbox-switch:after { background-color: #fff; }
.custom-checkbox-switch:checked { background-color: var(--primary, #1c5fa8); border-color: var(--primary, #1c5fa8); }
.gdpr-bar .gdpr-bar-description p { color: #fff; }
.gdpr-preferences-popup-content-footer { gap: 1rem; flex-wrap: wrap; }
.gdpr-bar .btn-primary, .gdpr-preferences-popup .btn-primary { background-color: var(--primary, #1c5fa8) !important; border-color: var(--primary, #1c5fa8) !important; color: #fff !important; }
.gdpr-bar .btn-primary:hover, .gdpr-preferences-popup .btn-primary:hover { background-color: var(--primary-200, #174c87) !important; border-color: var(--primary-200, #174c87) !important; }
