/* Caja de canales de ayuda */
.travel-helpbox {
  position: fixed;
  bottom: 0;
  right: 70px;
  display: block;
  @media (max-width: $grid-float-breakpoint-max) {
    display: none;
    right: 15px;
  }
  @media (max-height: 799px) {
    display: none;
  }
  z-index: 199;
}
.helpbox-title {
  display: inline-block;
  float: right;
  width: 88px;
  min-height: 45px;
  padding: 0 25px 0 55px;
  text-align: left;
  border: 0;
  background:$brand-secondary;
  color:#fff;
  border-top-left-radius: $border-radius-large;
  border-top-right-radius: $border-radius-large;
  font-weight: $roboto-bold;
  position: relative;
  line-height: 1.3;
  @media (min-width: $grid-float-breakpoint) {
    width: 232px;
    display: block;
  }
  span {
    pointer-events: none;
    display: inline-block;
    @media (max-width: $grid-float-breakpoint-max) {
      display: none;
    }
  }
  &:before {
    content: '';
    display: inline-block;
    background: url('/headers/ilusion/img/packages/img-ayuda.png') no-repeat center top;
    @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
      background: url('/headers/ilusion/img/packages/img-ayuda@2x.png');
      background-size: 34px 34px;
    }
    width:34px;
    height:34px;
    vertical-align: middle;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  &:after {
    content: '';
    display: inline-block;
    background: url('/headers/ilusion/'+ $assets-folder +'/dist/svg/icon-ownfill-ui-minus-ffffff.svg') no-repeat 50% 50%;
    background-size: 100%;
    width:10px;
    height:10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  &.collapsed {
    &:after {
      background: url('/headers/ilusion/'+ $assets-folder +'/dist/svg/icon-ownfill-ui-plus-ffffff.svg') no-repeat 50% 50%;
    }
  }
}
.helpbox-body {
  padding: 10px 15px;
  background: #fff;
  width: 232px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.175);
  border-top-left-radius: $border-radius-large;
  @media (min-width: $grid-float-breakpoint) {
    border-top-left-radius: 0;
  }
  .introtext {
    font-size: 12px;
  }
  p a {
    font-weight: $roboto-bold;
  }
}
.icon-travel-helpbox {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 5px;
  &, & * {
    fill:$brand-primary;
  }
}



/* Nuevo diseño 2018/01/16: BOC */

.customer-helpbox {
  .customer-helpbox-button {
    display: flex;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 1040;
    width: auto;
    min-height: 45px;
    background:$interactive-color;
    border-radius: $border-radius-large;
    padding: 10px;
    font-size: $font-size-large;
    text-align: left;
    border: 0;
    color:#fff;
   @include medium-weight;
    line-height: 1.2;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease-in;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
    &:hover, &:focus {
      text-decoration: none;
    }
    span {
      pointer-events: none;
      display: inline-block;
      position: relative;
      padding-left: 44px;
      &:before {
        content: '';
        display: inline-block;
        background: url('/headers/ilusion/img/packages/img-ayuda.png') no-repeat center top;
        @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
          background: url('/headers/ilusion/img/packages/img-ayuda@2x.png');
          background-size: 34px 34px;
        }
        width:34px;
        height:34px;
        vertical-align: middle;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
      }
    }
    @media (min-width: $screen-sm-min) {
      left: auto;
      right: 10px;
      width: 300px;
      justify-content: center;
    }
    @media (min-width: $screen-md-min) {
      right: 70px;
      bottom: 30px;
    }
  }

  .customer-helpbox-box {
    opacity: 0;
    background-color: rgba(0,0, 0, 0.2);
    width: 100vw;
    height: 1px;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display:block;
    @media (max-width: $grid-float-breakpoint-max) {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    @media (min-width: $screen-sm-min) {
      width: 300px;
      top: auto;
      bottom: 55px;
      left: auto;
      right: 15px;
      border: 0;
      overflow: hidden;
      border-radius: $border-radius-large;
      background-color: #fff;
      box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.12);
    }
    @media (min-width: $screen-md-min) {
      bottom: 30px;
      right: 70px;
    }

    .customer-helpbox-tittle {
      min-height: 50px;
      position: relative;
      line-height: 1.2;
      font-size: 16px;
      padding: 10px 0 10px 20px;
      margin: 0;
      @include medium-weight;
      background: #fff;
      color: $brand-grey-dark;
      border-bottom: 1px solid $colorBordes;
      display: flex;
      align-items: center;
      justify-content: center;
      @media (min-width: $screen-sm-min) {
        min-height: 45px;
        background: $interactive-color;
        color: #ffffff;
      }
      span:not(.close-customer-helpbox) {
        position: relative;
        padding-left: 33px;
        flex: 1 1 auto;
        @media (min-width: $screen-sm-min) {
          padding-left: 44px;
        }
        &:before {
          content: '';
          display: inline-block;
          background: url('/headers/ilusion/img/packages/img-ayuda.png') no-repeat center top;
          background-size: 23px 23px;
          @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
            background: url('/headers/ilusion/img/packages/img-ayuda@2x.png');
            background-size: 23px 23px;
          }
          width:23px;
          height:23px;
          vertical-align: middle;
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          @media (min-width: $screen-sm-min) {
            width:34px;
            height:34px;
            background-size: 34px 34px;
            @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
              background-size: 34px 34px;
            }
          }
        }
      }
      .close-customer-helpbox {
        display: block;
        padding: 0 10px;
        cursor: pointer;
        flex: 0 0 auto;
        margin-left: auto;
        @media (min-width: $screen-sm-min) {
          max-height: 45px;
        }
        svg {
          width: 14px;
          height: 14px;
          margin: 0;
          &, & * {
            fill: $brand-grey-dark;
          }
          @media (min-width: $screen-sm-min) {
            &, & * {
              fill: #ffffff;
            }
          }
        }
      }
    }
    .customer-helpbox-body {
      font-size: $font-size-large;
      font-weight: $roboto-light;
      background: #ffffff;
      padding: 25px 20px;
      @media (min-width: $screen-sm-min) {
        padding: 15px 20px 15px 20px;
      }

      ul {
        margin-bottom: 0;
        li {
          position: relative;
          font-size: 14px;
          font-weight: $roboto-regular;
          border: 1px solid $colorBordes;
          border-radius:4px;
          padding: 10px 15px 10px 40px;
          margin-bottom: 10px;
          line-height: 1;
          color: $brand-grey-dark;
          svg {
            width: 14px;
            height: 14px;
            position: absolute;
            top: 10px;
            left: 15px;
            &, & * {
              fill: $brand-primary;
            }
            &.icon-graph-phone {
              &, & * {
                fill: $interactive-color;
              }
            }
            &.icon-graph-chatbotwhatsapp {
              &, & * {
                fill: #25d366;
              }
            }
          }
        }
      }
      a {
        color: $brand-grey-dark;
        &:hover {
          color: $brand-grey-dark;
          text-decoration: none;
        }
        &.help-center {
          color: $brand-grey-dark;
          .txt_faq {
            color: $brand-secondary;
          }
        }
      }
    }

    // $($customerHelpBox).removeClass('fadeOutDown').addClass('fadeInUp');

    &.fadeInUp {
      display: block;
      @media (max-width: $grid-float-breakpoint-max) {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
      }
      animation:customerHelpBoxFadeInUp 0.5s ease-out forwards;
    }
    &.fadeOutDown {
      animation:customerHelpBoxFadeOutDown 0.5s ease-out forwards;
    }
    @keyframes customerHelpBoxFadeInUp
    {
      from {opacity: 0;height: 1px;}
      to {opacity: 1;height: 100vh;}
    }
    @keyframes customerHelpBoxFadeOutDown
    {
      from {opacity: 1;display: flex;height: 100vh;}
      to {opacity: 0; display: none;height: 1px;}
    }
    @media (min-width: $screen-sm-min) {
      &.fadeInUp {
        //display: block;
        animation:customerHelpBoxFadeInUp 0.5s ease-out forwards;
      }
      &.fadeOutDown {
        animation:customerHelpBoxFadeOutDown 0.5s ease-out backwards;
      }
      @keyframes customerHelpBoxFadeInUp
      {
        from {bottom:-340px; opacity: 0; height: 1px}
        to {bottom: 10px; opacity: 1; height: auto;}
      }
      @keyframes customerHelpBoxFadeOutDown
      {
        from {bottom: 10px; opacity: 1; display: block; height: auto;}
        to {bottom: -340px; opacity: 0; display: none; height: 1px;}
      }
    }
    @media (min-width: $screen-md-min) {
      &.fadeInUp {
        display: block;
        max-height: 340px;
        animation:customerHelpBoxFadeInUp 0.5s ease-out forwards;
      }
      &.fadeOutDown {
        animation:customerHelpBoxFadeOutDown 0.5s ease-out backwards;
      }
      @keyframes customerHelpBoxFadeInUp
      {
        from {bottom:-340px; opacity: 0; height: 1px}
        to {bottom: 30px; opacity: 1; height: auto;}
      }
      @keyframes customerHelpBoxFadeOutDown
      {
        from {bottom: 30px; opacity: 1; display: block; height: auto;}
        to {bottom: -340px; opacity: 0; display: none; height: 1px;}
      }
    }
  }
}

/* Nuevo diseño 2018/01/16: EOC */


//** Point at which the navbar becomes uncollapsed.
$grid-float-breakpoint:     $screen-sm-min !default;
//** Point at which the navbar begins collapsing.
$grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;

/* Small devices (tablets, 768px and up) */
@media (min-width: $screen-sm-min) {

}

/* Medium devices (desktops, 992px and up) */
@media (min-width: $screen-md-min) {

}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: $screen-lg-min) {

}


