﻿@charset "UTF-8";
/* Following media queries are based on Bootstrap 3.x breakpoints */
/* Following media queries are based on Bootstrap 3.x breakpoints */
/* @extend */
.toggle-compare {
  position: fixed;
  top: 20%;
  display: block;
  width: 42px;
  height: 42px;
  background-color: #008cc9;
  left: 0;
  z-index: 20;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.2s;
  box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: end;
  /*&:before {
      content: "مقایسه (" attr(data-count) " مورد)";
      height: 34px;
      line-height: 34px;
      text-align: center;
      display: block;
  }*/
}
.toggle-compare:after {
  /* border-right: 2px solid #000;
  border-bottom: 2px solid #000;*/
  /*transform: rotate(45deg);*/
  content: "";
  width: 15px;
  height: 15px;
  width: 10px;
  height: 10px;
  position: absolute;
  left: 25px;
  top: 13px;
  transition: transform 0.2s;
}
.toggle-compare + div {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  padding: 15px 0;
  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: 220px;
}
.toggle-compare + div img {
  max-height: 140px;
}
.toggle-compare + div a {
  margin-bottom: 10px;
  background-color: #2196f3;
  color: #fff;
  display: block;
  width: 100px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  color: #fff;
}
.toggle-compare + div a:hover {
  background-color: #0c7cd5;
  text-decoration: none;
}
.toggle-compare.active {
  /*transform: translateY(-220px);*/
}
.toggle-compare.active:after {
  transform: rotate(-135deg);
}
.toggle-compare.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 (min-width: 768px) and (max-width: 991px) {
  #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;
  }
}
