.modal {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.visible {
  display: flex !important;
}
.modal__dialog {
  background-color: white;
}
.modal__content {
  position: relative;
}
.modal__body {
  max-height: 80vh;
  overflow-x: hidden;
}
.modal__header,
.modal__body,
.modal__footer {
  padding: 15px;
  box-sizing: border-box;
}
.modal__header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #cccccc;
  font-size: 1.4em;
}
.modal__container {
  padding: 10px 15px;
  border-radius: 5px;
}
.modal__container--inset {
  padding: 10px 15px;
  border-radius: 5px;
  -webkit-box-shadow: inset 0px 0px 5px 0px #bdb9bd;
  -moz-box-shadow: inset 0px 0px 5px 0px #bdb9bd;
  box-shadow: inset 0px 0px 5px 0px #bdb9bd;
}
.modal__label {
  font-weight: bold;
  margin-bottom: 10px;
}
.modal__label:not(:first-of-type) {
  margin-top: 25px;
}
.modal__footer {
  display: flex;
  align-items: center;
  border-top: 1px solid #cccccc;
  background-color: white;
}
.modal__footer-buttongroup {
  margin-left: auto;
}
.modal__close {
  margin-left: auto;
  cursor: pointer;
}
.modal__title {
  color: inherit;
  font-size: 1.2em;
  margin: 0;
}
@media (max-width: 576px) {
  .modal__dialog {
    width: 95%;
  }
}
@media (min-width: 576px) {
  .modal__dialog {
    width: 500px;
  }
}
@media (min-width: 768px) {
  .modal__dialog {
    width: 600px;
  }
  .modal--small {
    width: 300px;
  }
}
@media (min-width: 992px) {
  .modal--large {
    width: 900px;
  }
}
