.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  left: -999em;
}

.modal {
  /**************************        Animation Style
    \**************************/
  display: none;
}

.modal .modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}

.modal .modal__container {
  background-color: #fff;
  padding: 16px 24px;
  max-width: 800px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
}

@media (min-width: 768px) {
  .modal .modal__container {
    padding: 28px 48px;
  }
}

@media (min-width: 992px) {
  .modal .modal__container {
    padding: 48px 88px;
  }
}

.modal .modal__header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-align: center;
  align-items: center;
}

@media (min-width: 768px) {
  .modal .modal__header {
    padding-right: 48px;
  }
}

.modal .modal__title {
  margin: 0 48px 0 0;
}

.modal .modal__content {
  margin-top: 8px;
}

.modal .modal__content > *:first-child {
  margin-top: 0;
}

.modal .modal__footer {
  margin-top: 16px;
}

@media (min-width: 992px) {
  .modal .modal__footer {
    display: -ms-flexbox;
    display: flex;
  }
}

.modal .modal__footer .button {
  margin-top: 8px;
  margin-right: 16px;
}

.modal .modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: inherit;
}

@media (min-width: 768px) {
  .modal .modal__close {
    top: 24px;
    right: 32px;
  }
}

@keyframes modalfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes modalslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes modalslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.modal.is-open {
  display: block;
}

.modal[aria-hidden="false"] .modal__overlay {
  animation: modalfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal[aria-hidden="false"] .modal__container {
  animation: modalslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal[aria-hidden="true"] .modal__overlay {
  animation: modalfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal[aria-hidden="true"] .modal__container {
  animation: modalslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal .modal__container,
.modal .modal__overlay {
  will-change: transform;
}
