.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;

		.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: 350px;
					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;
		}
	}

	.gform_wrapper {
		width: 100%;
	}
}

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

	100% {
		opacity: 1;
	}
}
