.branch-popup {
  @include box-shadow(0 3px 9px rgba(0, 0, 0, .5));
  border-radius: 0;
  font-family: inherit;
  max-width: 750px;
  min-width: 300px;
  padding: 0;
  z-index: 1031 !important;

  .ui-dialog-titlebar {
    display: none;
  }

  .ui-dialog-content {
    padding: 0;
    overflow-x: hidden;

    h3 {
      font-size: 20px;
      margin-bottom: 15px;
      margin-top: 15px;
      padding-right: 15px;
      color: $primary;
      width: 100%;

      &:after {
        content: ":";
      }
    }

    .form-item-branch {
      padding: 15px;
      position: relative;
      border-radius: $border-radius;
      margin: 0 20px 0 0;
      display: flex;
      align-items: center;

      &:hover {
        background-color: $gray-100;
      }

      label {
        font-size: 14px;
        margin: 0;
        padding-left: 15px;
      }
    }

    @include media-breakpoint-up(md) {
      .branch-popup-map {
        position: relative;
        overflow: hidden;
        max-height: 100px;
        transition: max-height 0.3s;

        &:hover {
          max-height: 500px;
        }
      }
    }
  }

  & + .ui-widget-overlay {
    z-index: 1030 !important;
    opacity: 0.5;
  }
}

.modal-body {
  overflow: hidden;

  & + .modal-body {
    padding-top: 0;
    margin-top: -10px;
  }

  .fieldset-legend {
    @include cachet();
    margin: 0 0 .75rem 0;
    font-weight: normal;
    line-height: inherit;

    @include media-breakpoint-up(sm) {
      font-size: 24px;
    }
  }

  .button {
    float: right;
    padding: 10px 20px;
  }

  legend {
    border-bottom: 0;
    margin-bottom: 0;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .fieldset-wrapper > div {
    @extend .row-eq-height;
  }

  [class*='form-type-radio'] {
    display: inline-block;
    padding: 15px;

    @include media-breakpoint-up(sm) {
      width: 50%;
    }

    @include media-breakpoint-up(lg) {
      width: 33.33%;
    }
  }
}

.ygs-popups-class-branches-form {
  hr {
    margin: 0;
    width: 100%;
  }
}

// Vertically align modals
.modal-dialog {
  height: 100%;
  display: flex;
  align-items: center;
}