.modal.left .modal-dialog,
.modal.right .modal-dialog {
  position: fixed;
  margin: auto;
  -webkit-transform: translate3d(0%, 0, 0);
  -ms-transform: translate3d(0%, 0, 0);
  -o-transform: translate3d(0%, 0, 0);
  transform: translate3d(0%, 0, 0);
}

.modal.right .modal-body {
  max-height: 500px;
  overflow-x: auto;
}

/*Right*/

.modal.right.fade .modal-dialog {
  position: fixed;
  bottom: 65px;
  right: 20px;
  z-index: 9;
  -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
  -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
  -o-transition: opacity 0.3s linear, right 0.3s ease-out;
  transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.in .modal-dialog {
  right: 0;
}

/* ----- v CAN BE DELETED v ----- */

body .compare-btn {
  position: fixed !important;
  bottom: 80px;
  right: 70px;
  /* background-color: #006b9f; */
  z-index: 10000;
}

.cmpParent:hover .compareitems {
  visibility: visible;
  z-index: 9999;
}
.compareitems {
  z-index: 2;
  position: fixed;
  /* bottom: 60px; */
  bottom: 0px;
  right: 20px;
  margin: -10px;
  visibility: hidden;
  -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
  -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
  -o-transition: opacity 0.3s linear, right 0.3s ease-out;
  transition: opacity 0.3s linear, right 0.3s ease-out;
}
.cmpParent {
  -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
  -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
  -o-transition: opacity 0.3s linear, right 0.3s ease-out;
  transition: opacity 0.3s linear, right 0.3s ease-out;
}

.fixedtop {
  position: fixed;
  top: 0;
}

.compareitems .modal-dialog {
  max-width: 100% !important;
  margin: 3.25rem auto;
}
.compareitems .card {
  border-radius: 0px !important;
  display: inline-block !important;
  border: 1px solid #f0f0f0 !important;
  padding: 10px 10px !important;
  width: 47%;
  text-align: center;
  margin: 5px;
  vertical-align: top;
  min-height: 110px;
}
.compareitems .modal-header {
  padding: 10px 15px;
  border-bottom: 1px solid #e5e5e5;
}

.compareimage {
  object-fit: contain;
  width: 140px;
  height: 140px;
}

.compareimg {
  margin: auto;
  object-fit: contain;
  height: 50px;
  width: 50px;
}

.compareitems .modal-header h5 {
  font-size: 15px;
  line-height: 16px;
  margin: 0px;
  font-weight: 700;
}
.pull-left {
  float: left;
}
.compareitems .modal-footer {
  float: left !important;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

/* .product-title {
  color: #000000;
  padding-top: 20px;
  font-size: 12px;
} */
.btn-compare,
.btn-compare:focus,
.btn-compare:active,
.btn-compare:active:focus {
  z-index: 99999;
  /* background: #fed700 !important;
  color: #000 !important; */
}
body .btn-compare:hover {
  /* background: #fed700 !important;
  color: #fff !important; */
}
.visibility-hide {
  visibility: hidden;
}
.compareitems .card i.fa {
  float: right;
  width: 25px;
  height: 25px;
  background: #f0f0f0;
  line-height: 25px;
  border-radius: 25px;
  font-size: 12px;
  cursor: pointer;
}
.compareitems .modal-body {
  padding: 5px;
  padding-bottom: 60px;
}

body .btn-removeall {
  position: fixed !important;
  right: 200px;
  bottom: 80px;
  margin-right: 22px !important;
}
/* body .btn-compare,
body .btn-removeall {
  padding: 3px 23px 0px;
  border-radius: 0px;
} */
/* @media (min-width: 544px) {
  .compareitems .modal-dialog {
    width: 250px;
    margin: 30px auto;
  }
} */

@media (min-width: 544px) {
  .compareitems .modal-dialog {
    width: 500px;
  }
}

@media (max-width: 767px) {
  .compareitems {
    margin: -10px 25px 10px 0px;
  }
  .compareitems .modal-dialog {
    min-width: 300px;
  }
  .compareitems {
    bottom: -0px;
    right: -8px;
  }
  .compare-btn {
    bottom: 70px;
    right: 20px;
  }
  .btn-removeall {
    right: 165px;
    bottom: 67px;
  }
}
