@import "../../../core/assets/scss/components/mixins";
@import "../../../core/assets/scss/components/variables";
/*
 * Live Search component :
 */
.eo_live_search_handler{
  overflow: visible !important;
  position: relative;
  &.is-fetching{
    input[type="search"],
    input[type="text"],
    #s{
      -webkit-animation-name: blinker;
      -webkit-animation-duration: .8s;
      -webkit-animation-timing-function: linear;
      -webkit-animation-iteration-count: infinite;
      -moz-animation-name: blinker;
      -moz-animation-duration: 1s;
      -moz-animation-timing-function: linear;
      -moz-animation-iteration-count: infinite;
      animation-name: blinker;
      animation-duration: .8s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }
    @-moz-keyframes blinker {
      0% { opacity: 1.0; }
      50% { opacity: 0.3; }
      100% { opacity: 1.0; }
    }
    @-webkit-keyframes blinker {
      0% { opacity: 1.0; }
      50% { opacity: 0.3; }
      100% { opacity: 1.0; }
    }
    @keyframes blinker {
      0% { opacity: 1.0; }
      50% { opacity: 0.3; }
      100% { opacity: 1.0; }
    }
  }
}
.eo_nothing_found{
  padding: 40px 20px;
  border-top: 1px solid #e2e2e2;
  i{
    font-size: 3em;
    color: #828282;
  }
  h4{
    font-size: 1.3em;
    font-weight: 300;
    text-decoration: none;
  }
}
.eo_search_tabs{
  border-top: 1px solid #e2e2e2;
  .eo_tabs_header{
    text-align: center;
    border-bottom: 1px solid #e2e2e2;
    background: rgba(240,240,240,.5);
    margin: 0;
    font-size: 0;
    li{
      list-style-type: none;
      display: inline-block;
      position: relative;
      padding: 0 !important;
      &.is-active{
        a{
          background: #ececec;
        }
        &:after, &:before{
          bottom: -1px;
          z-index: 1;
          left: 50%;
          top: initial;
          border: solid transparent;
          content: " ";
          height: 0;
          width: 0;
          position: absolute;
          pointer-events: none;
          border-color: rgba(136, 183, 213, 0);
          border-bottom-color: #ffffff;
          border-width: 7px;
          margin-left: -7px;
        }
        &:before{
          border-bottom-color: #e2e2e2;
          border-width: 8px;
          margin-left: -8px;
        }
      }
      a{
        font-size: 15px;
        padding: 8px 10px;
        display: inline-block;
        outline:none;
        border-right: 1px solid #e2e2e2;
        color: #565656 !important;
        position: relative;
        text-transform: none;
        span{
          font-size: .8em;
          margin-left: 5px;
        }
        &:hover{
          background: #ececec;
          text-decoration: none !important;
        }
      }
      &:first-child{
        a{
          border-left: 1px solid #e2e2e2;
        }
      }
    }
  }
  .eo_tabs_content{
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    .eo_tabs_content_inner{
      margin-left: 0;
      @include transitionIn(margin, .3s);
      .eo_tab_content{
        float: left;
        display: none;
        transform: translateX(100%);
        @include transitionOut(all, .3s);
        &.is-active{
          display: block;
          transform: translateX(0%);
          @include transitionIn(all, .5s);
        }
      }
    }
  }
}
.eo_history_list{
  margin: 0;
}
.eo_posts_list{
  margin: 0;
  display: block;
  padding: 0;
  li{
    display: block;
    text-align: left;
    list-style-type: none;
    padding: 10px 20px !important;
    border-bottom: 1px solid #e2e2e2;
    margin: 0 !important;
    a{
      position: relative;
      display: block;
      color: #444;
      .eo_thumb_wrapper{
        display: inline-block;
        width: 40px;
        text-align: center;
        height: 40px;
        line-height: 40px;
        vertical-align: middle;
        margin-right: 15px;
        b{
          display: block;
          font-size: 24px;
          color: #FFF;
          background: $color1;
          border-radius: 50%;
        }
        img{
          width: 40px;
          height: 40px;
          border-radius: 50%;
        }
      }
      h5{
        display: inline-block;
        margin: 0;
        font-size: 13px;
        font-weight: 300;
        vertical-align: middle;
        text-transform: none;
        letter-spacing: normal;
        padding: 0;
        del,span.amount{
          color: #888888;
          opacity: 1;
        }
        ins{
          background: $color1;
          color: #fff;
          border-radius: 3px;
          padding: 2px 6px;
          text-decoration: none;
          span.amount{
            color: #FFF;
          }
        }
      }
      &:after{
        position: absolute;
        right: 20px;
        font-family: "Ionicons";
        content: "\f3d1";
        font-size: 2em;
        top: 5px;
        color: $color1;
        line-height: normal;
        @include transitionOut(all, .2s);
      }
      &:hover{
        color: $color1;
        box-shadow: none !important;
        &:after{
          right: 10px;
          @include transitionIn(all, .3s);
        }
      }
    }
  }
  &.eo_history_list li a:after {
    top: -5px;
  }
}

.eo_custom_popover{
  font-family: $font-family;
  background: rgba(255,255,255,.98);
  position: absolute;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  z-index: 100;
  font-size: 14px;
  box-shadow: 0px 0px 8px rgba(0,0,0,.1);
  .eo_live_search_query{
    padding: 12px 20px 10px 20px;
    position: relative;
    font-size: 1.2em;
    span{
      font-weight: bold;
    }
    a.eo_live_search_control{
      position: absolute;
      box-shadow: none;
      top: 5px;
      font-size: 1.5em;
      color: #a5a5a5;
      transition: all .4s ease-out;
      transform: rotate(0deg);
      @include transitionOut(all, .4s);
      &:hover{
        text-decoration: none;
        transform: rotate(360deg);
        @include transitionIn(all, .4s);
      }
      &#eo_live_search_close{
        right: 20px;
      }
      &#eo_live_search_page{
        right: 50px;
      }
    }
    &:before,&:after{
      bottom: 100%;
      left: 50%;
      border: solid transparent;
      content: " ";
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
      border-color: transparent;
      border-bottom-color: #eaeaea;
      border-width: 12px;
      margin-left: -12px;
    }
    &:after{
      border-width: 11px;
      margin-left: -11px;
      border-bottom-color: rgba(255,255,255,.98);
    }
  }
}

@media screen and (max-width: 650px) {
  .eo_custom_popover {
    //min-width: 400px;
    width: 100%;
    margin-left: 0 !important;
    overflow: hidden;
    max-width: 100%;
  }
}
