/* Author: Francesco Russo — https://francescorusso.work */
.litoart-consent[hidden] {
	display: none !important;
}

.litoart-consent__banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: #fff;
	color: #2f2f2a;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
	border-top: 3px solid #688c4a;
}

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

.litoart-consent__title {
	margin: 0 0 8px;
	font-family: Montserrat, Lato, sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: #486234;
}

.litoart-consent__text {
	margin: 0 0 16px;
	font-family: Lato, sans-serif;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #5b5a55;
}

.litoart-consent__text a {
	color: #486234;
	text-decoration: underline;
}

.litoart-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.litoart-consent__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 11px 18px;
	font-family: Lato, sans-serif;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.litoart-consent__btn--primary {
	background: #688c4a;
	color: #fff;
}

.litoart-consent__btn--primary:hover {
	background: #486234;
}

.litoart-consent__btn--secondary {
	background: #2f2f2a;
	color: #fff;
}

.litoart-consent__btn--ghost {
	background: #fff;
	border-color: #cfcfc8;
	color: #2f2f2a;
}

.litoart-consent__modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(20, 24, 16, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.litoart-consent__modal[hidden] {
	display: none !important;
}

.litoart-consent__modal-dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	padding: 28px 24px 22px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.litoart-consent__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #5b5a55;
}

.litoart-consent__cats {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.litoart-consent__cat {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #e7e7e0;
	font-family: Lato, sans-serif;
	cursor: pointer;
}

.litoart-consent__cat strong {
	display: block;
	color: #2f2f2a;
	margin-bottom: 2px;
}

.litoart-consent__cat small {
	display: block;
	color: #707070;
	line-height: 1.4;
}

.litoart-consent__cat input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: #688c4a;
}

.litoart-consent-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	border: 0;
	border-radius: 999px;
	padding: 10px 14px;
	background: #486234;
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.litoart-consent-reopen:hover {
	background: #688c4a;
}

.litoart-consent-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 200px;
	padding: 24px;
	background: #1a1a1a;
	color: #fff;
	text-align: center;
	font-family: Lato, sans-serif;
	aspect-ratio: 16 / 9;
	width: 100%;
	box-sizing: border-box;
}

.litoart-consent-placeholder p {
	margin: 0;
	max-width: 28em;
	line-height: 1.45;
	opacity: 0.92;
}

.litoart-consent-placeholder button {
	appearance: none;
	border: 0;
	border-radius: 4px;
	padding: 10px 16px;
	background: #688c4a;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 640px) {
	.litoart-consent__actions {
		justify-content: stretch;
	}

	.litoart-consent__btn {
		flex: 1 1 100%;
	}

	.litoart-consent-reopen {
		left: 12px;
		bottom: 12px;
		font-size: 0.75rem;
		padding: 8px 12px;
	}
}
