.journey-modal-overrides {

  /*-- Modal overrrides --*/
  .modal-sm {
    width: 100%;
  }

  .modal-content {
    border: 0;
    border-radius: 0;
    height: 100%;

    @media (min-width: $screen-sm-min) {
      height: 491px;
    }
  }

  .modal-dialog {
    height: 100vh;
    margin: 0;
    width: 100vw;

    @media (min-width: $screen-sm-min) {
      height: 491px;
      margin: spacing(60) auto 0;
      width: 408px;
    }
  }
}

/*-- Journey modal styles --*/
.journey-modal {

  @include column-flex-container;
  flex-grow: 1;
  min-height: 0;
  height: 100vh;

  @media (min-width: $screen-sm-min) {
    height: 100%;
  }

  &__content {
    @include column-flex-container;
    flex-grow: 1;
    min-height: 0;
  }

  &__header,
  &__footer,
  &__customer-form .form-group,
  &__attendee-form fieldset,
  &__submit-wrapper {
    @media (min-width: $screen-sm-min) {
      padding: {
        right: spacing(20);
        left: spacing(20);
      }
    }

    padding: {
      right: spacing(14);
      left: spacing(14);
    }
  }

  &__header {
    @include flex-row;

    justify-content: space-between;
    padding: {
      top: spacing(20);
      bottom: spacing(20);
    }

    > h1 {
      color: $bb-dark-gray;
      font: {
        size: 18px;
        weight: normal;
      }
      margin: 0;
    }
  }

  &__close-modal {
    @include css-close-icon;

    margin-top: spacing(3);
  }

  &__customer-container {
    display: flex;
    flex: 1;
    margin-bottom: spacing(54);
    min-height: 0;
    overflow: auto;
  }

  &__attendee-container {
    @include column-flex-container;

    flex-grow: 1;
    min-height: 0;
  }

  &__customer-form {
    width: 100%;
  }

  &__attendee-form {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: auto;

    .form-horizontal .form-group {
      padding: 0;
    }
  }

  &__submit-wrapper {
    background-color: #fff;
    border-top: border(1);
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: {
      top: spacing(10);
      bottom: spacing(10);
    }
    position: absolute;
    width: 100%;
    z-index: 9999;

    .col-sm-10 {
      padding: 0;
      @media (min-width: $screen-sm-min) {
        width: 100%;
      }
    }

    .schema-form-submit {
      width: 100%;

      &.form-group {
        padding: 0;
      }
    }
  }

  &__footer {
    @include footer-box-shadow;

    display: flex;
    justify-content: space-between;
    padding: {
      top: spacing(10);
      bottom: spacing(10);
    }
    z-index: 9999;
  }

  &__save-btn,
  &__cancel-btn {
    @include journey-button;
    margin: {
      top: 0 !important;
      right: spacing(10);
    }

    &:last-child {
      margin-right: 0;
    }

    margin-right: spacing(10);

  }

  /*-- Schema form overrides --*/
  label {
    color: $studio-raven-pale-gray;
    padding: {
      bottom: spacing(5);
    }
  }

  .form-horizontal {
    width: 100%;

    .col-sm-4,
    .col-sm-8,
    .col-xs-12,
    .col-sm-12 {
      @media (min-width: $screen-sm-min) {
        float: none;
        width: 100%;
      }

      padding: 0;
    }

    .control-label {
      color: $studio-raven-pale-gray;
      font: {
        size: 15px;
        weight: normal;
      }
      margin: {
        bottom: spacing(5);
      }
      padding: {
        bottom: 0;
      }
    }

    .form-control {
      @include text-input;
    }

    .form-group {
      margin: {
        right: 0;
        left: 0;
      }
    }

    .help-block {
      margin-bottom: 0;
    }

    > .help-block {
      margin-left: 20px;
      margin-bottom: 20px;
    }

    .row {
      margin: 0;
      width: 100%;
    }

    .schema-form-checkbox {
      & .col-sm-8 {
        > .editable-field {
          display: flex;

          .help-block {
            margin-top: 0;
            padding-left: spacing(5);
          }
        }
      }
    }

    .journey-modal__submit-wrapper {
      .form-group {
        margin: {
          bottom: 0;
          right: spacing(10);
        }

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
}