.modal__backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.2s ease-in;
  z-index: 1050;
}

.modal__content {
  position: relative;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.3s ease-in;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  background-clip: padding-box;
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 20px;
  box-shadow: 0 0 7px 0 rgba(0,0,0,.3);
  overflow: hidden;
}

@media (min-width: 576px) {
  .modal__content {
    max-width: 500px;
  }
}

.modal__show .modal__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #eceeef;
}

.modal__title {
  margin: 0;
  line-height: 1.5;
  font-size: 1.25rem;
  font-weight: 500;
}

.modal__btn-close {
  padding: 10px 8px;
  text-align: center;
  background-color: #587ec9;
  background-image: linear-gradient(center top, #0c98c5, #0c98c5);
  border: 0 solid #4ec8ef;
  text-shadow: 0 0 rgba(0,0,0,.1);
  border-radius: 1px;
  cursor: default;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__btn-close:hover,
.modal__btn-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  opacity: .75;
}

.modal__body {
  position: relative;
  flex: 1 1 auto;
  padding: 15px;
  overflow: auto;
}