﻿@charset "UTF-8";
/* @extend */
.toggle-compare {
  position: fixed;
  display: block;
  width: 200px;
  bottom: 80px;
  left: 50%;
  color: #fff;
  background-color: #65b145;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.15);
  font-size: 1.1em;
  transform: translate(-50%, 0);
  transition: transform 0.2s;
  cursor: pointer;
  z-index: 1000;
}
@media (min-width: 768px) {
  .toggle-compare {
    right: 60px;
    transform: translateY(0);
    bottom: 0;
  }
}
.toggle-compare:before {
  content: "مقایسه (" attr(data-count) " مورد)";
  display: block;
  height: 34px;
  line-height: 34px;
  text-align: center;
}
.toggle-compare:after {
  content: "";
  position: absolute;
  border-right: 2px solid #eee;
  border-bottom: 2px solid #eee;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  top: 13px;
  left: 25px;
  transition: transform 0.2s;
}
.toggle-compare + div {
  position: fixed;
  bottom: 80px;
  width: 100%;
  height: 200px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(calc(100% + 80px));
  transition: transform 0.2s;
  z-index: 699;
}
.toggle-compare + div img {
  max-height: 140px;
}
.toggle-compare + div a {
  display: block;
  width: 100px;
  height: 32px;
  margin-top: 70px;
  color: #fff;
  background-color: #2aa9e0;
  line-height: 30px;
  text-align: center;
}
.toggle-compare + div a:hover {
  text-decoration: none;
}
.toggle-compare.active {
  transform: translate(-50%, -200px);
}
@media (min-width: 768px) {
  .toggle-compare.active {
    transform: translateY(-280px);
  }
}
.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";
  display: block;
  width: 30px;
  height: 30px;
  background-color: #eee;
  border-radius: 50%;
  font-size: 15px;
  font-style: normal;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
}
#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;
  width: 24px;
  height: 24px;
  top: -5px;
  right: -5px;
  font-size: 16px;
  background-color: #ddd;
  border-radius: 50%;
  line-height: 22px;
  cursor: pointer;
}

@media (max-width: 767px) {
  #Body .compare-preview a {
    position: relative;
    top: -4px;
    right: -10px;
    margin-top: 0;
  }
  #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 {
    padding-right: 30px;
    text-align: right;
  }
}
