:root {
	--clr-main: #d75b4c;
	--clr-dark: #333;
	--clr-neutral: #ddd;
	--clr-light: #fff;
}

.modal .btn:hover {
	filter: brightness(1.1);
}

.modal {
	display: block;
	position: fixed;
	top: 70px;
	right: 70px;
	left: auto;
	transform: translateY(-100%) translateX(0%);
	width: auto;
	max-width: 480px;
	height: auto;
	opacity: 0;
	visibility: hidden;
	transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
	z-index: 99999;
	background-color: transparent;
	box-shadow: none;
	margin: 0;
}
.modal .modal-content {
	display: flex;
	flex-direction: column;
	background-color: white;
	padding: 0;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
}

.modal .modal-content .modal-body {
	padding: 1.5rem;
}
.modal .modal-content .modal-body p{
	margin-bottom: 0;
	font-size: 16px;
	color: #14181F;
}
.modal .modal-content .modal-body span {
	border-bottom: 1px dashed grey;
	margin: 1.5rem 0;
	display: block;
	width: 100%;
	height: 1px;
}

.modal .modal-content .modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid lightgrey;
}
.modal .modal-content .modal-header h2 {
	font-size: 19px;
	font-weight: 700;
	text-align: left;
	margin-bottom: 0;
	color: #14181F;
}
.modal .modal-content .modal-footer {
	background: #F6F7F9;
	height: 35px;
	border-top: 1px solid lightgrey;
}
.modal .check-icon,.modal .close-button {
	display: flex;
	align-items: center;
	justify-content: center;
}
.modal .close-button {
	cursor: pointer;
	color: var(--clr-dark);
	transition: color 0.12s ease-in-out;
	padding: 2px;
	background-color: #F6F7F9;
	border-radius: 50%;
}

.modal.show-modal {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) translateX(0%);
	transition: visibility 0s linear 0s, opacity 0.5s 0s, transform 0.5s;
}

.modal .mobile{
	display: none;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 30px;
}

.modal .mobile h2{
	font-size: 19px;
	font-weight: 700;
	text-align: left;
	margin-bottom: 0;
	color: #14181F;
	padding-left: 10px;
}

.modal .handle {
	width: 32px;
	background-color: #E1E5EA;
	height: 4px;
	position: absolute;
	left: 0;
	right: 0;
	top: 5px;
	margin: auto;
	border-radius: 7px;
	display: none;
}

@media screen and (max-width: 680px) {
	.modal .mobile{
		display: flex;
		align-items: flex-start;
	}
	.modal .modal-footer {
		display: none;
	}
	.modal .modal-content{
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
	.modal .modal-header .desktop {
		display: none;
	}
	.modal .modal-header .mobile{
		display: flex;
	}
	.modal .modal-body{
		padding-bottom: 60px!important;
	}
	.modal .handle {
		display: inline-block;
	}
	.modal .modal-content .modal-body span:first-child{
		border-bottom: none!important;
		width: auto;
		margin: 0;
		height: auto;
	}

	.modal {
		top: auto;
		bottom: 0;
		right: 0;
		left: 0;
		margin: 0 auto;
		transform: translateY(100%); /* Initially position off the viewport */
	}

	.modal.show-modal {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: visibility 0s linear 0s, opacity 0.5s 0s, transform 0.5s;
	}
}
