﻿@charset "UTF-8";
/* @extend */
.toggle-compare {
  position: fixed;
  bottom: 0;
  display: block;
  width: 200px;
  background-color: #232ea0;
  right: 60px;
  transform: translate(-50%, 0);
  z-index: 1000;
  color: #fff;
  border-radius: 34px 34px 0 0;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 34px 34px 0 0;
  transform: translateY(0);
  transition: transform 0.2s;
  box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.15);
}
@media (max-width: 769px) {
  .toggle-compare {
    right: unset;
    left: 50%;
    transform: translate(-50%, 0);
  }
}
.toggle-compare:before {
  content: "مقایسه (" attr(data-count) " مورد)";
  height: 34px;
  line-height: 34px;
  text-align: center;
  display: block;
}
.toggle-compare:after {
  border-right: 2px solid #eee;
  border-bottom: 2px solid #eee;
  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;
  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;
}
.toggle-compare + div img {
  max-height: 140px;
}
.toggle-compare + div a {
  margin-top: 70px;
  background-color: #dc3b4a;
  color: #fff;
  display: block;
  width: 100px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  color: #fff;
}
.toggle-compare + div a:hover {
  text-decoration: none;
}
.toggle-compare.active {
  transform: translateY(-200px);
}
.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 (max-width: 767px) {
  #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;
  }
}
