/* Klaro Cookie Consent */

#klaro {
	position: fixed;
	bottom: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	background-color: rgba(255, 255, 255, 0.98);
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}

.klaro-notice {
	position: fixed;
	bottom: 0;
	right: 0;
	left: 0;
	font-family: var(--mainfont);
	background-color: rgba(255, 255, 255, 0.98);
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	width: 100%;
}

.klaro {
	background-color: rgba(255, 255, 255, 0.98);
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}

.klaro p {
	margin-bottom: 1em;
}

/* Notice */
.cookie-notice,
.cookie-modal {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	padding: 30px;
	background-color: #fff;
}

.cn-message {
	margin-bottom: 1rem;
}

.cn-message p {
	margin: 0 0 0.5rem 0;
}

.cn-message a.privacy-link {
	text-decoration: underline;
}

.cn-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

/* Modal */
.klaro-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1001;

	p {
		margin-bottom: 0;
	}
}

.cm-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cm-modal {
	background-color: #fff;
	border-radius: var(--radiusL);
	max-width: 1200px;
	width: 100%;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
	margin: 0 auto;
	padding: var(--gapL);
	font-size: 1rem;
}

.cm-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.cm-title {
	margin: 0;
}

.cm-close {
	position: absolute;
	right: 0;
	top: 0;
	background: url("close.svg") no-repeat center center transparent;
	background-size: contain;
	width: 20px;
	height: 20px;
	opacity: 0.5;
	transition: all 0.3s;
	text-decoration: none;
	font-size: 0;
}

.cm-close:hover {
	opacity: 1;
	transition: all 0.3s;
	cursor: pointer;
}

.cm-body {
	padding: 1rem 0;
	overflow-y: auto;
	flex: 1;
}

.cm-description {
	margin-bottom: var(--gapM);
	a {
		text-decoration: underline;
	}
}

.cm-description p {
	margin: 0.25em 0;
}

.cm-apps {
}

.cm-app {
	display: grid;
	grid-template-columns: 80px 1fr;
	align-items: center;
	overflow: hidden;
	list-style-type: none;
	position: relative;
	margin-bottom: var(--gapS);
}

.cm-app-header {
	display: contents;

	.cm-app-title {
		grid-column: 2/3;
		grid-row: 1/2;
	}

	.cm-app-toggle {
		grid-column: 1/2;
		grid-row: 1/2;
	}
}

.cm-app-description {
	grid-column: 2/3;
	grid-row: 2/3;
	display: flex;
	flex-wrap: wrap;
	column-gap: 0.25em;
	> p {
		width: 100%;
	}
}

.cm-app-title h3 {
	margin: 0 0 0.5em 0;
	display: inline;
	font-weight: 700;
}

.cm-required {
	position: relative;
	top: -4px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #6c757d;
	background-color: #e9ecef;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	margin-left: 0.5rem;
}

/* Switches */
.cm-app-toggle {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 1.5em;
}

.cm-app-toggle input[type="checkbox"] {
	position: absolute;
	top: 5px;
	left: 0;
	opacity: 0;
	width: 50px;
	height: 1.5em;
}

.cm-app-toggle label {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	cursor: pointer;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
	width: 50px;
	display: inline-block;
	border-radius: 40px;
}

.cm-app-toggle label::after {
	position: absolute;
	content: "";
	height: 0.8em;
	width: 0.8em;
	left: 0.35em;
	bottom: 0.35em;
	background-color: #fff;
	-webkit-transition: 0.4s;
	transition: 0.4s;
	border-radius: 50%;
}

.cm-app-toggle input:checked + label {
	background-color: #000000;
}

.cm-app-toggle input:checked + label::after {
	transform: translateX(1.65em);
}

.cm-app-description p {
	margin: 0.25em 0;
}

.cm-purposes-title {
	font-weight: 500;
}

.cm-purposes {
	margin: 0;
	display: flex;

	list-style-type: none;
}

.cm-purposes li::after {
	content: ", ";
}

.cm-purposes li:last-child::after {
	content: "";
}

.cm-footer {
	padding-top: 1rem;
	position: relative;
}

.cm-powered-by {
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 0.75rem;
}

.cm-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

.cm-button:hover {
	cursor: pointer;
	opacity: 1;
	transition: all 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.klaro-notice {
		bottom: 0;
		left: 0;
		right: 0;
		max-width: none;
		border-radius: 0;
	}

	.cm-modal {
		width: 95%;
		max-height: 95vh;
	}

	.cm-buttons {
		justify-content: center;
	}
}
