.visit-calendar-container {
	width: 100%;
	position: relative;

	@media screen and (max-width: 767px) {
		position: relative;
		width: 100vw;

		&:before {
			transition: .25s all ease-in-out;
			content: '';
			position: absolute;
			left: 0;
			top: 0;
			height: 100%;
			width: 100%;
			background-color: rgba(255,255,255,0.8);
			z-index: 2;
			opacity: 0;
			pointer-events: none;
		}

		&:has(.key-item.toggled) {
			&:before {
				pointer-events: auto;
				opacity: 1;
			}
		}
	}

	#visitCalendar {
		position: relative;
		display: block;
		background-color: #FFF;
	}

	.key-container {
		position: relative;
		z-index: 3;
		display: flex;
		background-color: #FFF;
		justify-content: center;
		padding: 40px 30px;
		font-family: 'aktiv-grotesk', sans-serif;
		opacity: 0;
		animation: fadeIn 1s 1.5s forwards;

		@media screen and (max-width: 767px) {
			max-width: 500px;
			margin: 0 auto;
		}

		&:after {
			content: '';
			transition: .15s .15s linear;
			position: absolute;
			top: 0;
			left: 0;
			height: 100%;
			width: 100%;
			background-color: rgba(255,255,255,0.8);
			opacity: 0;
			pointer-events: none;
		}

		&.modalOpened {
			&:after {
				opacity: 1;
				transition-delay: 0s;
				pointer-events: auto;
			}
		}

		.key {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			gap: 20px;

			@media screen and (max-width: 767px) {
				justify-content: center;
				gap: 20px 20px;
				position: relative;
				width: 100%;
			}

			.key-item {
				display: none;
				align-items: center;
				gap: 5px;
				font-size: 12px;
				font-weight: 300;
				color: #000;
				cursor: pointer;

				svg {
					display: block;
					height: 1.8em;
					width: 1.8rem;
				}

				&.active {
					display: flex;
				}

				@media screen and (min-width: 1024px) {
					&:hover {
						.key-description {
							opacity: 1;
						}

						.swatch {
							background-color: var(--event_hover_bg, var(--eventbg)) !important;
						}

						.swatch, .icon-container {
							&:before, &:after {
								opacity: 1;
							}
						}
					}
				}

				&.toggled {
					.key-description {
						opacity: 1;
					}

					.swatch {
						background-color: var(--event_hover_bg, var(--eventbg)) !important;
					}

					.swatch, .icon-container {
						&:before, &:after {
							opacity: 1;
						}
					}
				}
			}

			p {
				font-size: 12px;
				text-transform: uppercase;
				margin: 0!important;
				font-weight: 300;

				strong {
					font-weight: 500;
					display: flex;
					align-items: center;
					gap: .5rem;
					line-height: 1;

					span {
						display: block;
						margin-top: 4px;
					}
				}
			}

			.icon-container {
				position: relative;
				margin: 0;

				&:before {
					transition: .25s all ease-in-out;
					position: absolute;
					content:'';
					bottom: calc(100% + 12px);
					left: 50%;
					transform: translateX(-50%);
					width: 11px;
					height: 2px;
					background-color: #FFF;
					z-index: 6;
					opacity: 0;

					@media screen and (max-width: 767px) {
						bottom: 10px;
					}
				}

				&:after {
					transition: .25s all ease-in-out;
					content: '';
					position: absolute;
					left: 50%;
					bottom: 24px;
					transform: translateX(-50%);
					background: url('../img/tooltip-down-arrow-outlined.svg') center bottom / contain no-repeat;
					height: 10px;
					width: 20px;
					z-index: 5;
					opacity: 0;
				}
			}

			.swatch {
				position: relative;
				transition: .25s all ease-in-out;
				height: 20px;
				background-color: var(--eventbg);
				border: 1px solid var(--event_border, transparent);
				aspect-ratio: 1;
				overflow: visible;

				&:before {
					transition: .25s all ease-in-out;
					position: absolute;
					content:'';
					bottom: calc(100% + 12px);
					left: 50%;
					transform: translateX(-50%);
					width: 11px;
					height: 2px;
					background-color: #FFF;
					z-index: 6;
					opacity: 0;
				}


				&:after {
					transition: .25s all ease-in-out;
					content: '';
					position: absolute;
					left: 50%;
					bottom: 22px;
					transform: translateX(-50%);
					background: url('../img/tooltip-down-arrow-outlined.svg') center bottom / contain no-repeat;
					height: 10px;
					width: 20px;
					z-index: 5;
					opacity: 0;

					@media screen and (max-width: 767px) {
						bottom: 21px;
					}
				}
			}

			.key-description {
				transition: .25s all ease-in-out;
				position: absolute;
				pointer-events: none;
				opacity: 0;
				background-color: #FFF;
				padding: 15px;
				bottom: calc(100% - 30px);
				left: 0;
				border: 1px solid #7e7e7e ;
				font-size: 12px;
				line-height: 20px;
				max-width: 250px;
				transform: translateX(-50%);
				font-weight: 300;

				@media screen and (max-width: 767px) {
					width: calc(100vw - 80px);
					text-align: center;
					max-width: 400px;
					left: 50%;
					transform: translateX(-50%) translateY(calc(-100% - 10px));
					bottom: auto;
					text-align: center;
				}

				.inner {
					position: relative;
					z-index: 3;
				}

				span {
					display: block;
					font-weight: 500;
				}
			}
		}
	}

	.form-container {
		width: 100%;
		margin: 0 auto;

		@media screen and (max-width: 992px) {
			max-width: calc(100vw - 60px)!important;
		}
	}

	&:has(.gform_wrapper[style*="display: none"]) {
		.visit-type {
			display: none !important;
		}
	}

	&:has(.visit-type) {
		button[type=submit]:disabled {
			opacity: 0.2;
			pointer-events: none;
		}
	}

	.visit-type {
		display: none;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 25px;
		text-transform: uppercase;
		margin-bottom: 32px;

		&.active {
			display: flex;
		}

		@media screen and (max-width: 768px) {
			gap: 12px;
		}

		@media screen and (min-width: 1024px) {
			margin-top: 24px!important;
			margin-bottom: 38px!important;
		}

		label {
			display: flex;
			align-items: center;
			gap: 15px;
			cursor: pointer;

			@media screen and (max-width: 768px) {
				gap: 10px;
			}
		}

		.field-container {
			position: relative;

			&:after {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				content: '';
				width: 30%;
				border-radius: 50%;
				aspect-ratio: 1;
				opacity: 0;
				background-color: #F4F4F4;
				pointer-events: none;
			}

			&:has(input:checked) {
				&:after {
					opacity: 1;
				}
			}
		}

		input[type="radio"] {
			transition: .3s background-color ease-in-out;
			display: block;
			-webkit-appearance: none;
			height: 36px;
			width: 36px;
			border-radius: 50%;
			aspect-ratio: 1;
			border: 2px solid #F4F4F4;
			border-radius: 50%;
			background-color: transparent;
			cursor: pointer;

			@media screen and (max-width: 768px) {
				height: 28px;
				width: 28px;
			}
		}
	}

	.gform_wrapper {
		width: 100%;
	}
}

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

	100% {
		opacity: 1;
	}
}
