.micromodal {
	display: none;
	position: relative;
}

.micromodal.is-open {
	display: block;
}

.micromodal__close {
	align-items: center;
	appearance: none;
	background-color: var(--wp--preset--color--amaranth);
	border-radius: 0.5rem;
	border-width: 0;
	border-style: solid;
	color: var(--wp--preset--color--anti-flash-white);
	cursor: pointer;
	display: flex;
	justify-content: center;
	line-height: 1;
	padding: 0.5em;
	position: absolute;
	top: 0.5rem;
	transition-property: background-color, color;
	transition-duration: 0.2s;
	transition-timing-function: ease-in-out;
	right: 0.5rem;
	z-index: 10;
}

.micromodal__close:hover {
	background-color: var(--wp--preset--color--chocolate-cosmos);
}

.micromodal__container {
	background-color: var(--wp--preset--color--anti-flash-white);
	border-radius: 1rem;
	max-width: 500px;
	max-height: 100vh;
	overflow-y: auto;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	will-change: transform;
	z-index: 101;
}

.micromodal__overlay {
	align-items: center;
	backdrop-filter: blur(0.5rem);
	background: rgba(51, 48, 48, 0.5);
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	will-change: transform;
	z-index: 100;
}

.micromodal[aria-hidden=false] .micromodal__container {
	animation: microModalSlideIn 0.2s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal[aria-hidden=false] .micromodal__overlay {
	animation: microModalFadeIn 0.2s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes microModalFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes microModalSlideIn {
	from {
		transform: translateY(15%);
	}

	to {
		transform: translateY(0);
	}
}