/* === extracted from main.css.old lines 703-709 === */

	div#snippet--modal {
		width: 100vw;
		top: 0!important;
		right: 0!important;
		bottom: 0!important;
		left: 0!important;
	}

/* === extracted from main.css.old lines 1227-1272 === */

div.modal-main {
	display: none;
	z-index: 998;
	position: fixed;
	top:0;
	bottom: 0;
	right: 0;
	left: 0;
	background-color: rgba(0,0,0,.5);
}

.modal-main {
	backdrop-filter: blur(3px);
}

div#snippet--modal {
	/* transition: 1s; */
	position: fixed;
	top: 15vh;
	left: 18vh;
	bottom: 15vh;
	right: 18vh;
	z-index: 3;
	background-color: hsl(0, 0%, 100%, 0.9);
	/* border: solid; */
	/* border-color: var(--color-header); */
	border-radius: 4px;
/* border-left: 10px solid var(--clr-primary); */
/* position: relative; */
	padding: 10px 15px;

}

span.close-button {
	position: absolute;
	top: 0;
	right: 7px;
	cursor: pointer;
	color: black;
	font-size: 1.7rem;
	transition: all .3s;
}

span.close-button:hover {
	transform: rotate(90deg);
}

/* === extracted from main.css.old lines 1374-1463 === */

div#snippet--flash-message {
	position: absolute;
	top: 75px;
	right: 50px;
	z-index: 3;
}

div#snippet--flash-message > * {
	max-width: 500px;
	z-index: 999;
	position: fixed;
	top: 175px;
	right: 25px;
	width: 300px;
}

.flash-alert .inner {
	display: block;
	padding: 10px 20px;
	border-radius: 10px;
	border: 1px solid rgb(180, 180, 180);
	background-color: rgb(212, 212, 212);
}

.flash-alert .close {
	float: right;
	margin: 10px 20px 0px 0px;
	cursor: pointer;
}

.flash-alert .inner,
.flash-alert .close {
	color: rgb(88, 88, 88);
}

.flash-alert input {
	display: none;
}

.flash-alert input:checked~* {
	animation-name: dismiss, hide;
	animation-duration: 300ms;
	animation-iteration-count: 1;
	animation-timing-function: ease;
	animation-fill-mode: forwards;
	animation-delay: 0s, 100ms;
}

.flash-alert.success .inner {
	border: 1px solid rgb(214, 233, 198);
	background-color: rgb(223, 240, 216);
}

.flash-alert.success .inner,
.flash-alert.success .close {
	color: rgb(70, 136, 71);
}

.flash-alert.warning .inner {
	border: 1px solid rgb(231, 233, 198);
	background-color: rgb(240, 238, 216);
}

.flash-alert.warning .inner,
.flash-alert.warning .close {
	color: rgb(70, 136, 71);
}

.flash-alert.error .inner {
	border: 1px solid rgb(233, 198, 198);
	background-color: rgb(240, 216, 216);
}

.flash-alert.error .inner,
.flash-alert.error .close {
	color: rgb(70, 136, 71);
}

@keyframes dismiss {
	0% {
		opacity: 1;
	}

	90%,
	100% {
		opacity: 0;
		font-size: 0.1px;
		transform: scale(0);
	}
}

/* === extracted from main.css.old lines 1558-1677 === */

.loader {
	position: fixed;
	top: 45vh;
	left: 45vw;
	display: none;
	background-image: url('../images/loader.png');
	background-repeat: no-repeat;
	background-size: 20vh;
	z-index: 1000;

	width: 20vh;
	height: 20vh;
	/* animation: spin 0.5s linear infinite; */
	animation: loader .33s ease-in-out;
}

@keyframes loader {
	0% {
		opacity: 0%;
	}

	50% {
		opacity: 100%;
	}

	100% {
		opacity: 0%;
	}
}

#consent-modal-maximized {
	display: none;
	position: fixed;
	bottom: 0;
	background-color: var(--clr-primary);
	width: 100vw;
	padding: 1.7em 3em;
	color: white;
	font-weight: bold;
	z-index: 99;
}

#consent-modal-maximized > .consent-box {
	display: flex;
	justify-content: space-evenly;
	align-content: center!important;
}

.consent-text {
	transform: translateY(7px);
}

.consent-buttons button {
	padding: .5em 1em;
	margin-left: 15px;
	border: none;
	border-radius: 4px;
	transition: all .3s ease-in-out;
	letter-spacing: .8px;
}

#acceptCookie {
	background-color: white;
}

#acceptCookie:hover {
	background-color: rgb(255, 255, 255);
}

#denyCookie {
	background-color: brown;
	color: white;
}

#denyCookie:hover {
	background-color: rgb(148, 39, 39);
}

#consent-modal-minimized {
	position: fixed;
	bottom: 15px;
	left: 15px;
	display: block;
	background-image: url('../images/cookie.png'); /* icon by Freepik */
	background-repeat: no-repeat;
	background-size: 35px 35px;
	width: 35px;
	height: 35px;
	cursor: pointer;
	z-index: 99;
	background-color: transparent;
	transform: skew(-4deg,-2deg);
	border-radius: 50%;
	box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

button#changeConsent {
	background-color: transparent;
	width: 50px;
	height: 50px;
	border: none;

}

@media screen and (max-width: 1420px) {
	#consent-modal-maximized > .consent-box {
		flex-direction: column;
		gap: 2em;
	}
}

@media screen and (max-width: 620px) {
	button#acceptCookie {
		margin-bottom: 1em;
}

	button#denyCookie {
		margin-bottom: 1.2em;
	}
}
