.modal-content {
  border-radius: 2px;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2);
  border: none;
  overflow: hidden;

  .modal-header {
    padding: 54px 100px 12px 48px;

    .modal-header__back {
      float: left;
      height: 24px;
      cursor: pointer;

      .icon-label {
        line-height: 21px;
        display: inline-block;
      }

      .icon-label__label {
        font-size: 16px;
        font-weight: 500;
        color: #888fa1;
      }

      .se-icon-back {
        color: #444f6c;
        vertical-align: bottom;
      }
    }

    .modal-close {
      min-height: 24px;
      height: 24px;
      opacity: 1.0;
      transition: opacity 0.25s linear;

      &:hover {
        opacity: 0.6;
      }
    }
  }

  .modal-title {
    font-weight: 300;
    font-size: 24px;
    color: $color-fiord;
    line-height: 1.2;
    float: left;

    .btn-icon {
      margin: -6px 24px 0 0;
      width: 24px;
      height: 24px;

      &:hover,
      &:active,
      &:focus,
      &:active:hover,
      &:active:focus {
        color: #00aadf;
      }

      &.modal-close {
        color: inherit !important;
      }
    }
  }

  .modal-body {
    padding: 0 48px 64px 48px;
    min-height: 115px;

    .control-label {
      height: auto;
      padding-bottom: 6px;
    }
  }

  .modal-footer {
    padding-top: 16px;
    padding-left: 48px;
    padding-right: 48px;
    height: 72px;
    background-color: $color-porcelain;
    border-top: none;

    .btn {
      margin-left: 12px;
    }
  }
}

/* Large modal */
.modal-lg {
  .modal-content {
    border-radius: 4px;
  }

  .modal-header {
    padding: 22px 54px 0 54px;
  }

  .modal-title {
    margin-top: 10px;
  }

  .modal-body {
    padding: 0;
  }
}

/* Vertical alignment of modal */
.modal {
  text-align: center;
  padding: 0!important;
}

.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px; /* Adjusts for spacing */
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}
/* / Vertical alignment of modal */

.modal.fade .modal-dialog {
  transform: scale(0.95, 0.95);
}

.modal.in .modal-dialog {
  transform: scale(1, 1);
}

.modal-backdrop {
  background-color: $color-pickled-bluewood;
}

.modal.fullscreen {

  &:before {
    margin-right: 0;
  }

  .modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0 auto;

    .modal-content {
      width: 100%;
      height: 100%;
      box-shadow: none;

      .modal-header {
        padding: 20px 24px;
        height: 64px;
        border-bottom: none;
        box-shadow: inset 0 -1px 0 0 #e4e6e9;
      }

      .modal-body {
        height: calc(100% - 64px);
        overflow: auto;
      }
    }
  }
}

@media (min-width: 768px) {
  .modal:not(.fullscreen) {
    .modal-dialog:not(.modal-lg) {
      width: 648px;
    }
  }
}
