.dp-modal {
	display: none;
}

.dp-modal.is-open {
	display: block;
}

.dp-modal__overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.dp-modal__container {
	background-color: #fff;
	padding: 0;
	max-width: 500px;
	max-height: 100vh;
	border-radius: 4px;
	overflow-y: auto;
	box-sizing: border-box;
	position: relative;
}

.dp-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #e9ecef;
}

.dp-modal__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.dp-modal__close {
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0;
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
	opacity: 0.5;
}

.dp-modal__close:hover {
	opacity: 1;
}

.dp-modal__content {
	padding: 1.5rem;
	line-height: 1.5;
}

.dp-modal__footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid #e9ecef;
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

@keyframes mmfadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes mmfadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes mmslideIn {
	from {
		transform: translateY(15%);
	}
	to {
		transform: translateY(0);
	}
}

@keyframes mmslideOut {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-10%);
	}
}

.dp-micromodal-slide {
	display: none;
}

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

.dp-micromodal-slide[aria-hidden="false"] .dp-modal__overlay {
	animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.dp-micromodal-slide[aria-hidden="false"] .dp-modal__container {
	animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.dp-micromodal-slide[aria-hidden="true"] .dp-modal__overlay {
	animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.dp-micromodal-slide[aria-hidden="true"] .dp-modal__container {
	animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.dp-micromodal-slide .dp-modal__container,
.dp-micromodal-slide .dp-modal__overlay {
	will-change: transform;
}
