@keyframes openPopup {
	from {
		opacity: 0; translate: 0 -20px;
	}
	to {
		opacity: 1; translate: 0 0;
	}
}
@keyframes closePopup {
	to {
		opacity: 0; translate: 0 -20px;
	}
}

/* body:has(.popup:not([hidden])) {
	overflow: hidden;
} */

.popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	/* overflow-x: clip; */
	/* overflow-y: scroll; */
	background: rgba(0, 0, 82, .6);
	backdrop-filter: blur(1px);
	-webkit-backdrop-filter: blur(1px);
	animation: openPopup 0.5s ease;
	animation-fill-mode: forwards;
}

.popup[hidden] {
	display: none !important;
}

.popup.hidePopup {
	animation: closePopup 0.5s ease forwards;
}

.popup .dialog-wrapper .close_icon {
	cursor: pointer;
	position: absolute;
	top: 20px;
	right: 20px;
	height: 42px;
	width: 42px;
}

.popup .dialog_wrapper .close_icon rect {
	transition: fill 0.3s ease-in-out;
}

.popup .dialog_wrapper .close_icon:hover rect {
	fill: #FFEA3B;
}

.popup > .dialog-wrapper {
	position: relative;
	width: calc(100vw - 40px);
	max-width: 1240px;
	padding: 100px;
	max-width: 980px;
	max-height: 80vh;
	background-color: var(--tt-wit);
	overflow-y: scroll;
	animation: inherit;
	border-radius: 16px;
}

.popup > .dialog-wrapper .required_text {
	display: block;
	font-style: italic;
	font-weight: 500;
	font-size: 16px;
}


.popup > .dialog-wrapper .gfield--input-type-html {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	max-width: 500px;
	margin-inline: auto;
	margin-bottom: 60px;
}

.popup.search_popup > .dialog-wrapper{
	background-color: transparent;
	padding: 0;
}

.popup.search_popup > .dialog-wrapper form input{
	border-radius: 16px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	padding: 20px 40px;
	height: auto;
	border: none;
	color: var(--tt-donker-blauw-100);
}

@media screen and (max-width: 1200px) {
	
	.popup > .dialog-wrapper {
		padding: 80px;
	}
	
}

@media screen and (max-width: 992px) {
	
	.popup > .dialog-wrapper {
		padding: 60px;
	}
	
}

@media screen and (max-width: 767px) {
	
	.popup > .dialog-wrapper {
		padding: 40px 20px;
	}
	
}