.modal {
  display: none;
}
.modal.is-open, .modal.close {
  display: block;
}
.modal .close-btn {
  margin-right: -8px;
	width: 40px;
	height: 40px;
	display: block;
	background: url('../img/icons/close.svg') center no-repeat;
	background-size: 24px;
	border-radius: 50%;
	z-index: 2;
}
.modal[aria-hidden=false] .modal-container {
  animation: containerIn 0.3s;
}
.modal[aria-hidden=true] .modal-container {
  animation: containerOut 0.3s forwards;
}
.modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  padding: 40px;
}
.modal .modal-container {
  background-color: #ffffff;
  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
.modal.xl .modal-container {
	max-width: 1440px;
}
.modal .modal-body, .modal .modal-footer {
  padding: 24px;
  padding-top: 0px;
  flex: 1;
  overflow: auto;
}
.modal .modal-footer {
  overflow: visible;
}
.modal .modal-title {
  display: flex;
  padding: 16px 24px;
  align-items: center;
}
.modal .modal-title .text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.modal .modal-title .divider {
  height: 28px;
	width: 1px;
	background-color: rgba(154, 154, 154, 0.4);
	margin-left: 12px;
}
.modal#modal-error-message .modal-overlay {
  z-index: 9999 !important;
}
.modal.on-top .modal-overlay {
	z-index: 998;
}
.modal .modal-footer .btn-group {
	justify-content: center;
}
.modal .modal-footer .btn {
	min-width: 200px;
}
@keyframes containerIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes containerOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.9);
    opacity: 0;
  }
}
@media only screen and (max-width: 768px) {
	.modal .modal-overlay {
    padding: 16px;
  }
  .modal .modal-body {
    padding: 20px;
    padding-top: 0px;
  }
  .modal .modal-title {
    padding: 16px 20px;
  }
}