/*
----------------------------------------------------
  Module name: Advanced Popup Cart
  OpenCart Version: 2.x - 3.x
  Author: MagDevel (magdeveloper2@gmail.com)
----------------------------------------------------
*/

.apc-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  z-index: 3;
}

.apc-loader {
  top: 50%;
  left: 50%;
  position: absolute;
  margin-top: -35px;
  margin-left: -35px;
  width: 70px;
  height: 70px;
}

.apc-mfp-zoom-in .zoom-anim-dialog {
  opacity: 0;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
}

.apc-mfp-zoom-in.mfp-ready .zoom-anim-dialog {
  opacity: 1;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}

.apc-mfp-zoom-in.mfp-removing .zoom-anim-dialog {
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
  opacity: 0;
}

.apc-mfp-zoom-in.mfp-bg {
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}

.apc-mfp-zoom-in.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.apc-mfp-zoom-in.mfp-removing.mfp-bg {
  opacity: 0;
}

#advanced_popup_cart {
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  position: relative;
}

.apc-modal-content {
      position: relative;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    outline: 0;
    -webkit-box-shadow: 0 5px 10px rgb(0 0 0 / 50%);
    box-shadow: 30px 30px 40px rgb(0 0 0 / 50%);
    overflow: hidden;
}

.apc-close {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: relative;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
  color: #fff !important;
}

.apc-close:hover {
  opacity: 1;
}

.apc-close:active {
  top: 1px;
}

.apc-header {
  padding: 15px 15px 10px;
  border-bottom: 1px solid #006bc7;
  background: #006bc7;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.apc-modal-title {
  margin: 0;
    padding-left: 5px;
    line-height: 1.4;
    text-transform: uppercase;
    font-size: 14px;
    color: white;
    text-align: center;
}

.apc-subheading {
  padding-left: 5px;
}

.apc-body {
  position: relative;
}

.apc-html-block {
  margin: 10px 20px;
}

.apc-alert-danger,
.apc-alert-info,
.apc-alert-success {
  margin: -1px 0 0;
  padding: 7px 14px;
  border-radius: 0;
}

#advanced_popup_cart .text-danger {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4em;
}

.apc-shipping-modal {
  text-align: center;
  z-index: 1046;
}

.apc-shipping-modal:before {
  display: inline-block;
  vertical-align: middle;
  content: "";
  height: 100%;
}

.apc-shipping-modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  width: 520px;
}

.apc-shipping-modal-body {
  padding: 15px;
}

.apc-cart {
  position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.apc-table {
  width: 100%;
  max-width: 100%;
}

.apc-table > tbody > tr > td,
.apc-table > thead > tr > td {
  vertical-align: middle;
  border-bottom: 1px solid #e5e5e5;
}

.apc-thead td {
  height: 30px;
}

.apc-hr {
  height: 0;
  border-top: 1px solid #e5e5e5;
}

.apc-image-td {
  width: 25%;
}

.apc-product-image {
  border: 1px solid #cacaca;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-right: 24px;
    padding: 10px;
    background: #fff;
}

.apc-product-name-td {
  padding: 5px;
  line-height: 1.3em;
  display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding: 6px 0;
}

.apc-product-name,
.apc-voucher-name {
  font-size: 1.1em;
}

.apc-small-text {
  font-size: 0.9em;
}

.apc-additional-td {
  width: 70px;
  text-align: center;
}

.apc-quantity-td {
  width: 130px;
  text-align: center;
}

.apc-qty-block {
  display: table;
  position: relative;
  margin: 0 auto;
  vertical-align: middle;
  border-collapse: separate;
}

.apc-qty-input {
  display: table-cell;
  box-sizing: border-box;
  width: 50px;
  height: 30px;
  padding: 0 3px;
  line-height: 30px;
  text-align: center;
  vertical-align: top;
  border: 1px solid #ccc;
  border-radius: 0 !important;
  box-shadow: none;
  -moz-appearance: textfield;
}

.apc-qty-block input[type="number"]::-webkit-inner-spin-button,
.apc-qty-block input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.apc-btn-minus,
.apc-btn-plus {
  display: table-cell;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 30px;
  outline: none !important;
}

.apc-btn-minus {
  border-radius: 3px 0 0 3px;
}

.apc-btn-plus {
  border-radius: 0 3px 3px 0;
}

.apc-total-td {
  width: 80px;
  text-align: center;
  white-space: nowrap;
  padding-right: 10px;
  font-size: 20px;
    font-weight: bold;
}

.apc-remove-td {
  width: 25px;
  text-align: center;
}

.apc-btn-remove {
  padding: 4px;
  color: #da3030;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.apc-btn-remove .fa {
  padding-top: 3px;
  font-size: 18px;
}

.apc-btn-remove,
.apc-btn-remove:active,
.apc-btn-remove:active:focus,
.apc-btn-remove:focus {
  outline: none;
}

.apc-btn-remove:focus,
.apc-btn-remove:hover {
  color: #bd3030;
}

.apc-totals {
  padding: 8px 20px 0;
}

.apc-totals-col {
  padding-top: 5px;
  font-size: 1.1em;
}

.apc-totals-table {
  display: table;
  width: 100%;
}

.apc-totals-item {
  display: table-row;
}

.apc-totals-name {
  display: table-cell;
}

.apc-totals-padding {
  width: 3px;
}

.apc-totals-value {
  display: table-cell;
  width: 50px;
  white-space: nowrap;
}

.apc-panel-group {
  margin-top: 0;
  margin-bottom: 5px;
}

.apc-panel {
  margin-bottom: 0;
  background-color: inherit;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.apc-panel-title {
  margin: 0;
  font-size: 1.15em;
}

.apc-panel-title a {
  display: block;
  padding: 8px 10px;
  color: inherit;
}

.apc-panel-title a:focus {
  text-decoration: none;
}

.apc-panel-body {
  padding: 10px 10px 20px;
  border: none;
}

.apc-panel-quote {
  padding-bottom: 5px;
}

.apc-panel-quote .form-group {
  margin-bottom: 10px;
}

.apc-buttons {
  padding: 10px 25px;
}

.apc-button-col {
  padding-right: 10px;
  padding-left: 10px;
}

.apc-button {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-cart-row {
  padding: 15px 0 20px;
  text-align: center;
  font-size: 1.2em;
}

.empty-cart-image {
  padding-bottom: 10px;
  font-size: 70px;
  opacity: 0.3;
}

.empty-cart-buttons {
  padding-top: 20px;
}

.apc-btn-start-shopping {
  padding: 7px 15px;
  line-height: inherit;
}

.apc-related-block {
  padding: 0 15px 20px;
  border-top: 1px solid #e5e5e5;
}

.apc-related-heading {
  margin: 15px 5px;
}

.apc-related-carousel {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.apc-related-btn-next,
.apc-related-btn-prev {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 44px;
  margin-top: -22px;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 47px;
  color: #000;
  opacity: 0;
}

.apc-related-btn-prev {
  left: 10px;
  text-align: left;
}

.apc-related-btn-next {
  right: 10px;
  text-align: right;
}

.apc-related-carousel:hover .apc-related-btn-next,
.apc-related-carousel:hover .apc-related-btn-prev {
  opacity: 1;
}

.apc-related-btn-prev:before {
  font-family: FontAwesome;
  content: "\f053";
  opacity: 0.5;
  font-size: 30px;
}

.apc-related-btn-next:before {
  font-family: FontAwesome;
  content: "\f054";
  opacity: 0.5;
  font-size: 30px;
}

.apc-related-thumb {
  margin: 0 5px;
  background-color: #fff;
  border-width: 1px;
  border-color: #ddd;
  border-style: solid;
  border-radius: 0;
  overflow: hidden;
}

.apc-related-image {
  padding: 5px 0;
  position: relative;
  text-align: center;
}

.apc-related-image > a {
  display: block;
}

.apc-related-img {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto;
}

.apc-related-block .rating {
  width: 100%;
  position: absolute;
  bottom: 5px;
}

.apc-related-caption {
  min-height: 30px;
  padding: 0 5px;
  text-align: center;
}

.apc-related-name {
  font-size: 1.1em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apc-related-block .apc-price {
  font-size: 1.1em;
  padding-bottom: 5px;
  position: relative;
}

.apc-related-block .price-new {
  font-weight: 600;
}

.apc-related-block .price-old {
  text-decoration: line-through;
  color: #aaa;
}

.apc-related-btn-group {
  padding-bottom: 5px;
  text-align: center;
}

.apc-btn-cart-add {
  padding: 7px 12px;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  #advanced_popup_cart {
    margin: 6px auto;
  }

  .apc-shipping-modal-dialog {
    width: 85%;
    max-width: 500px;
  }

  .apc-thead {
    display: none;
  }

  .apc-image-td {
    text-align: left;
  }

  .apc-product-image {
    margin: 4px 0;
    border: none;
  }

  .apc-product-name-td {
  }

  .apc-additional-td {
    display: none;
  }

  .apc-total-td {
    padding-left: 0;
    padding-right: 10px;
  }

  .apc-buttons {
    padding: 10px 25px;
  }

  .empty-cart-image {
    font-size: 60px;
  }

  .apc-related-btn-next,
  .apc-related-btn-prev {
    opacity: 1;
  }
}

@media (max-width: 479px) {
  .apc-shipping-modal-dialog {
    width: 85%;
  }

  .apc-shipping-modal-body {
    padding: 10px;
  }

  .apc-image-td {
    padding: 0;
  }

  .apc-cart {
    padding: 0 10px;
  }

  .apc-cart td {
    padding-right: 0;
  }

  .apc-product-name-td {
    padding: 0;
  }

  .apc-product-name {
    font-size: 1em;
  }

  .apc-quantity-td {
    width: 95px;
  }

  .apc-qty-input {
    width: 35px;
  }

  .apc-btn-minus,
  .apc-btn-plus {
    width: 24px;
  }

  .apc-total-td {
    width: 35px;
    padding-right: 5px;
  }

  .apc-remove-td {
    width: 22px;
  }

  .apc-totals {
    padding: 10px 15px;
  }

  .apc-accordion-col {
    width: 100%;
  }

  .apc-totals-col {
    width: 100%;
    font-size: 1em;
  }

  .apc-buttons {
    padding: 0 20px 5px;
  }

  .apc-button-col {
    width: 100%;
  }

  .apc-button {
    width: 100%;
  }

  .apc-related-block {
    padding: 0 13px 15px;
  }

  .apc-related-thumb {
    margin: 0 2px;
  }
}

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

  .apc-product-name-td {
    height: 60px;
    padding-left: 10px;
  }
}