@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: perspective(100px) translate3d(0, 20px, -20px); }
  to {
    opacity: 1;
    transform: perspective(0px) translate3d(0, 0, 0); } }

.modal-dialog {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  background-color: white;
  border-radius: 5px;
  width: 90%;
  margin: 10px;
  max-width: 450px;
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.3);
  overflow: auto;
  max-height: calc(100% - 20px);
  animation-duration: 0.3s;
  animation-name: modal-slide-in;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
  .modal-dialog::-webkit-scrollbar {
    height: 10px;
    width: 10px; }
    .modal-dialog::-webkit-scrollbar-button {
      height: 0;
      width: 0; }
    .modal-dialog::-webkit-scrollbar-corner {
      background: transparent; }
    .modal-dialog::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.2);
      box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07);
      min-height: 30px;
      border-radius: 5px;
      margin: 2px; }
      .modal-dialog::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.4);
        box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25); }
      .modal-dialog::-webkit-scrollbar-thumb:active {
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35); }
    .modal-dialog::-webkit-scrollbar-track {
      background-color: rgba(0, 0, 0, 0.025);
      box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.05); }
      .modal-dialog::-webkit-scrollbar-track:hover {
        background-color: rgba(0, 0, 0, 0.05);
        box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.1); }
      .modal-dialog::-webkit-scrollbar-track:active {
        background-color: rgba(0, 0, 0, 0.05);
        box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.14), inset -1px 0 0 rgba(0, 0, 0, 0.07); }
  .modal-dialog__body {
    padding: 15px 20px;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative; }
    .modal-dialog__body::-webkit-scrollbar {
      height: 10px;
      width: 10px; }
      .modal-dialog__body::-webkit-scrollbar-button {
        height: 0;
        width: 0; }
      .modal-dialog__body::-webkit-scrollbar-corner {
        background: transparent; }
      .modal-dialog__body::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07);
        min-height: 30px;
        border-radius: 5px;
        margin: 2px; }
        .modal-dialog__body::-webkit-scrollbar-thumb:hover {
          background-color: rgba(0, 0, 0, 0.4);
          box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25); }
        .modal-dialog__body::-webkit-scrollbar-thumb:active {
          background-color: rgba(0, 0, 0, 0.5);
          box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35); }
      .modal-dialog__body::-webkit-scrollbar-track {
        background-color: rgba(0, 0, 0, 0.025);
        box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.05); }
        .modal-dialog__body::-webkit-scrollbar-track:hover {
          background-color: rgba(0, 0, 0, 0.05);
          box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.1); }
        .modal-dialog__body::-webkit-scrollbar-track:active {
          background-color: rgba(0, 0, 0, 0.05);
          box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.14), inset -1px 0 0 rgba(0, 0, 0, 0.07); }
  .modal-dialog__title {
    color: #000066;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px; }
  .modal-dialog__h2 {
    color: #000066;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px; }
  .modal-dialog__text {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.3; }
  .modal-dialog__footer {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #f9f9fb;
    border-top: 1px solid #d5d5e2;
    border-radius: 0 0 5px 5px; }
  .modal-dialog__footer-button {
    display: inline-block;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 5px; }
    .modal-dialog__footer-button--cancel {
      border-color: #d5d5e2;
      color: black; }
    .modal-dialog__footer-button--continue {
      transition: none; }
      .modal-dialog__footer-button--continue.is-collapsed {
        opacity: 0;
        pointer-events: none; }
      .modal-dialog__footer-button--continue.is-hidden {
        visibility: hidden; }
  @media (max-height: 300px) {
    .modal-dialog {
      display: block; }
      .modal-dialog__body {
        padding-top: 10px;
        padding-bottom: 10px;
        max-height: none;
        overflow-y: visible; }
      .modal-dialog__footer {
        padding-top: 10px;
        padding-bottom: 10px; } }
  .modal-dialog--500px {
    max-width: 500px; }
