﻿/* @extend */
.toggle-compare {
  position: fixed;
  bottom: 129px;
  left: -74px;
  color: #696969;
  background-color: #fff;
  box-shadow: 0px 18px 36px 0px rgba(0, 0, 0, 0.09);
  z-index: 998;
}
.toggle-compare i {
  margin-left: 3px;
}
.toggle-compare:before {
  content: attr(data-count);
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  right: 0;
  border-radius: 50%;
  color: #fff;
  background-color: #f05646;
  box-shadow: 0px 6px 9px 0px #f59489;
  line-height: 16px;
  text-align: center;
  transition: top 600ms;
}
.toggle-compare:hover:before {
  top: -6px;
}
.toggle-compare + div {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  padding: 15px;
  z-index: 999;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translate3d(0, 0, 0);
  transform: translateY(100%);
  transition: transform 0.2s;
  height: 200px;
  overflow: auto;
  z-index: 1000;
}
.toggle-compare + div img {
  max-height: 140px;
}
.toggle-compare + div a {
  margin-top: 70px;
  background-color: #f05646;
  color: #fff;
  display: block;
  width: 100px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  color: #fff;
  text-decoration: none;
}
.toggle-compare + div a:hover {
  background-color: #f59489;
  text-decoration: none;
}
.toggle-compare.neon-btn.active {
  transform: translateY(-100px);
}
.toggle-compare.neon-btn.active:before {
  top: -6px;
}
.toggle-compare.neon-btn.active + div {
  transform: translateY(0);
}

#compare__handlebars-results figure {
  position: relative;
}
#compare__handlebars-results figcaption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  font-size: 90%;
}
#compare__handlebars-results img {
  border: 1px solid #ddd;
}
#compare__handlebars-results i {
  position: absolute;
  top: -10px;
  right: -10px;
  cursor: pointer;
}
#compare__handlebars-results i:before {
  content: "X";
  font-size: 15px;
  font-style: normal;
  cursor: pointer;
  background-color: #eee;
  width: 30px;
  display: block;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
}
#compare__handlebars-results i:hover:before {
  background-color: #ff6b6b;
  color: #fff;
}

.product-list .product-box__item:hover .product-box__compare-label {
  display: block !important;
}
.product-list .product-box__item.compare__selected .product-box__compare-label {
  display: block !important;
}

.compare__list .fa-times {
  position: absolute;
  right: -5px;
  top: -5px;
  font-size: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ddd;
  line-height: 22px;
  cursor: pointer;
}

@media (max-width: 767px) {
  #Body .toggle-compare {
    bottom: 189px;
  }
  #Body .compare-preview a {
    margin-top: 0;
    position: relative;
    top: -4px;
    right: -10px;
  }
  #Body #compare__handlebars-results figure {
    height: 30px;
  }
  #Body #compare__handlebars-results figure img {
    display: none;
  }
  #Body #compare__handlebars-results figure i {
    top: -2px;
  }
  #Body #compare__handlebars-results figure figcaption {
    text-align: right;
    padding-right: 30px;
  }
}
