.hidden {
	display: none;
}
.modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	background: white;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal.active {
	display: block !important;
}
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: none;
}

.modal-overlay.active {
	display: block;
}
.modal-content {
	position: relative;
	background: white;
	max-width: 600px;
	height: 100vh;
	overflow-y: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	z-index: 10000;
}
.modal-content-inner-wrap {
	height: calc(100% - 80px);
	position: relative;
	overflow-y: scroll;
	background: #f7f7f7;
	padding: 1rem;
}
.modal-controls {
	height: 80px;
	display: flex;
	align-items: center;
	border-top: 1px solid #eee;
}
.close-modal {
	display: inline-block;
	background-color: #e74c3c;
	color: white;
	padding: 6px 20px;
	border: none;
	cursor: pointer;
	margin-left: auto;
}
body.no-scroll {
	overflow: hidden !important;
}
.modal-content-inner-wrap {
	padding-right: 1rem;
	scrollbar-gutter: stable;
	overflow-y: auto;
  scrollbar-width: 8px;
  scrollbar-color: #3a4048;
}

.modal-content-inner-wrap::-webkit-scrollbar {
  width: 14px;
}

.modal-content-inner-wrap::-webkit-scrollbar-track {
	background: linear-gradient(to bottom, #c2c8d0, #8d95a0);
}

.modal-content-inner-wrap::-webkit-scrollbar-thumb {
  background-color: #3a4048;
  border-radius: 4px;
}
@media (min-width: 768px) {
	.modal-content {
		margin: 50px auto;
		padding: 1.5rem 1.5rem 0;
		max-height: calc(100vh - 200px);
	}
}
@media (max-width: 767px) {
	.modal-content {
		margin: 0 auto;
		padding: 1rem 0.5rem 0;
		min-height: 320px;
		height: 100vh;
	}
}