/*
  Add to Cart Panel (Journal 3 Theme)
  OpenCart Version: 2.x - 3.x
  Author: MagDevel (support@magdevel.com)
*/

.atcp-wrapper {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 5px 0;
  background-color: #fff;
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.3);
  z-index: 10001;
}

.atcp-container {
  max-width: 1310px;
  padding-right: 5px;
  padding-left: 5px;
  margin-right: auto;
  margin-left: auto;
}

.atcp-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 50px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.atcp-row .atcp-col {
  margin-left: 10px;
  margin-right: 10px;
}

.atcp-col-image {
  width: 50px;
}

.atcp-col-name {
  flex-grow: 2;
  overflow: hidden;
}

.atcp-col-image .img-responsive {
  cursor: pointer;
}

.atcp-name {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atcp-col-name .rating > p {
  margin: 0;
}

.atcp-price {
  font-size: 1.6em;
  font-weight: bold;
}

.atcp-old-price {
  color: #999;
  text-decoration: line-through;
}

.atcp-qty-group {
  display: table;
  border-collapse: separate;
  width: 130px;
}

.atcp-qty-group-btn {
  display: table-cell;
  vertical-align: top;
}

.atcp-qty-group-btn:first-child>.btn,
[dir=rtl] .atcp-qty-group-btn:last-child>.btn {
  margin-left: 0;
  margin-right: -1px;
  border-radius: 3px 0 0 3px !important;
}

.atcp-qty-group-btn:last-child>.btn,
[dir=rtl] .atcp-qty-group-btn:first-child>.btn {
  margin-left: -1px;
  margin-right: 0;
  border-radius: 0 3px 3px 0 !important;
}

.atcp-qty-group-btn>.btn {
  width: 34px;
  height: 34px;
  padding: 5px;
}

.atcp-col .atcp-input-qty {
  display: table-cell;
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 4px;
  border-radius: 0;
  text-align: center;
  vertical-align: top;
  z-index: 1;
}

.atcp-col-cart-add {
  flex-grow: 1;
  overflow: hidden;
}

.atcp-col-cart-add .atcp-btn-cart {
  display: block;
  width: 100%;
  padding: 5px 10px;
  height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atcp-col .btn-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
}

.atcp-col-wishlist-compare {
  display: flex;
}

.atcp-col-wishlist-compare .btn {
  height: 34px;
  padding: 4px;
  padding-right: 12px;
  padding-left: 12px;
}

.atcp-col-wishlist-compare > .btn:not(:last-child) {
  margin-right: 4px;
}

@media (max-width: 1024px) {
  .route-product-product:not(.popup) .product-info .product-right .product-details .button-group-page {
    position: static;
    width: 100%;
    z-index: 1;
    padding: 0;
    margin-bottom: 20px;
    border-width: 0;
    border-top-width: 0;
    background: transparent;
    box-shadow: none;
  }

  .atcp-col-name {
    display: none;
  }
}

@media (max-width: 767px) {
  .atcp-row .atcp-col {
    margin-left: 5px;
    margin-right: 5px;
  }

  .atcp-col-image {
    max-width: 44px;
  }

  .atcp-price {
    font-size: 1.4em;
  }

  .atcp-old-price {
    display: none;
  }

  .atcp-qty-group {
    width: 110px;
  }
}

@media (max-width: 519px) {
  .atcp-col-qty {
    display: none;
  }
}

@media (max-width: 359px) {
  .atcp-col-image {
    display: none;
  }
}
