@import '../global-sass-files/variables';
@import '../global-sass-files/mixins';
@import '../global-sass-files/helpers';
@import '../global-sass-files/grid';

// Extensions popup
.popup { 
  // display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  overflow: hidden;
  outline: 0;
  overflow-x: hidden;
  overflow-y: auto;
  &-dialog {
    margin: 20px;
    position: relative;
    width: auto;
    @media (min-width: 840px) {
      margin: 20px auto;
    }
    @media (max-width: 840px) {
      margin: 20px 30px;
    }
  }
  &-header, &-body, &-footer {
    padding: 20px;
  }
  &.popup-small {
    .popup-header, .popup-body, .popup-footer {
      padding: 20px;
    }
    .popup-body {
      padding: 5px 25px;
    }
    &.scroll {
      .popup-body {
        max-height: 350px;
        overflow-y: auto;
        &::-webkit-scrollbar {
          width: 5px;
        }
        &::-webkit-scrollbar-thumb {
          border-radius: 5px;
          background: #949494;
        }
        &::-webkit-scrollbar-track {
          border-radius: 5px;
          background: #d1d1d1;
        }
        &::-webkit-scrollbar-thumb:hover {
          background: linear-gradient(left, #8391A6, #536175);
        }
      }
      &.host {
        .popup-body {
          padding: 50px 25px 10px 25px;
        }
      }
    }
    @media (min-width: 576px) {
      .popup-dialog {
        max-width: 300px;
        width: 100%;
        @include centerAbsolute();
      }
    }
    .popup-footer {
      &.m-0 {
        .message-error {
          margin-top: 0;
        }
      }
    }
  }
  &.popup-big {
    .popup-header, .popup-body, .popup-footer {
      padding: 25px 80px;
      @media (max-width: 700px) {
        padding: 10px 20px;
      }
    }
    @media (min-width: 576px) {
      .popup-dialog {
        max-width: 780px;
      }
    }
  }
  &-header {
    .icon-close-small, .icon-close-middle, .icon-close-big {
      right: -45px;
      position: absolute;
      right: -33px;
      top: -5px;
      @media (max-width: 900px){
        width: 20px;
        height: 20px;
        right: -25px;
        background-size: cover;
      }
    }
    &.blue, &.light-blue {
      background-color: #009fe0;
      text-align: center;
      .popup-header-title {
        color: $white-color;
      }
    }
    &.light-blue {
      background-color: $lightblue-centreon-primary; 
    }
    &.red {
      background-color: #eb1c24;
    }
    &-title {
      font-size: 16px;
      line-height: 18px;
      font-family: $primary-font-regular;
    }
  }
  &-content {
    position: relative;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    outline: 0;
    box-sizing: border-box;
  }
  &-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: .7;
  }
  .icon-close-middle {
    position: absolute;
    right: -33px;
    top: -5px;
  }
  .icon-close-big {
    position: absolute;
    right: -40px;
    top: -6px;
  }
  .custom-title {
    font-size: 20px;
  }
  .container__col-xs-6 {
    margin-bottom: 0;
  }
  .description-text {
    font-size: 14px;
    line-height: 16px;
    font-family: $primary-font-regular;
    color: #b6b5b5;
  }
  .custom-control {
    min-height: 0;
  }
}