/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_QuickCart
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */

/**
    QUICK VIEW POPUP
 */

#mp-fly-tocart {
  position: absolute;
  z-index: 10000;
  top: 0;
  left: 0
}

.cms-index-index #mpquickview-popup .page-title {
  position: relative;
  width: 100%;
  height: 100%;
}

#mpquickview-popup #maincontent {
  margin-top: 25px;
}

@media only screen and (max-width: 767px) {
  #mpquickview-popup #maincontent {
    padding-left: 15px;
    padding-right: 15px;
  }

  #mpquickview-popup .sidebar.sidebar-main {
    order: 2;
  }
}

.mpquickview-button {
  display: none;
  position: absolute;
  z-index: 100;
  width: 100%;
  height: 100%;
  top: 30%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(0deg);
  cursor: pointer;
}

ol.items.product-items li.product-item:hover .mpquickview-button {
  display: block;
}

ol.widget-product-grid li.product-item:hover .mpquickview-button {
  display: block;
}

.item.product.product-item .product-item-info:hover .mpquickview-button {
  display: block;
}

// compatible with salespop module
.mpsalespop-popup-floating .mpsalespop-container:hover .mpquickview-button {
  display: block;
}

.mpsalespop-popup-floating .mpsalespop-container .mpquickview-button {
  left: 15%;
  top: 50%;
}

.mpquickview-button img {
  width: 40px !important;
  height: 40px !important;
}

.mpquickview-button img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(0deg);
  z-index: 10;
}

.mpquickview-label {
  text-align: center;
  padding: 10px;
  width: 40%;
  font-weight: 600;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(0deg);
  z-index: 20;
}

#mpquickview-popup {
  position: relative;
  background: #FFF;
  padding: 0;
  width: auto;
  max-width: 900px;
  margin: 0 auto;
  max-height: 650px;
  overflow: hidden;
  overflow-y: auto;
  min-height: 400px;
}

#mpquickview-popup .column.main {
  width: 100%;
  background: #ffffff;
}

.cms-index-index #mpquickview-popup .page-title {
  position: relative;
  width: 100%;
  height: 100%;
  padding-bottom: 15px;
}

li .product-item-info {
  position: relative;
}

@media only screen and (max-width: 767px) {
  #mpquickview-popup .column.main {
    display: flex;
    flex-direction: column;
  }

  #mpquickview-popup .product.media {
    order: -1;
  }
}

#test-modal {
  width: 600px;
  max-width: 600px;
  background: #FFFFFF;
}

.minicart-items-wrapper {
  height: auto !important;
}

.fotorama-item.fotorama.fotorama--fullscreen {
  z-index: 9999 !important;
}

#mpquickview-popup::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #F5F5F5;
  border-radius: 5px;
}

#mpquickview-popup::-webkit-scrollbar {
  width: 5px;
  background-color: #F5F5F5;
}

#mpquickview-popup::-webkit-scrollbar-thumb {
  background-color: #AAA;
  border-radius: 5px;
}

/*effect show popup*/
.mfp-zoom-in { /* start state */ /* animate in */ /* animate out */
}

.mfp-zoom-in .mfp-with-anim {
  opacity: 0;
  transition: all 0.2s ease-in-out;
  transform: scale(0.8);
}

.mfp-zoom-in.mfp-bg {
  opacity: 0;
  transition: all 0.3s ease-out;
}

.mfp-zoom-in.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: scale(1);
}

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

.mfp-zoom-in.mfp-removing .mfp-with-anim {
  transform: scale(0.8);
  opacity: 0;
}

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

.mfp-newspaper { /* start state */ /* animate in */ /* animate out */
}

.mfp-newspaper .mfp-with-anim {
  opacity: 0;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.5s;
  transform: scale(0) rotate(500deg);
}

.mfp-newspaper.mfp-bg {
  opacity: 0;
  transition: all 0.5s;
}

.mfp-newspaper.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.mfp-newspaper.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-newspaper.mfp-removing .mfp-with-anim {
  transform: scale(0) rotate(500deg);
  opacity: 0;
}

.mfp-newspaper.mfp-removing.mfp-bg {
  opacity: 0;
}

.mfp-move-horizontal { /* start state */ /* animate in */ /* animate out */
}

.mfp-move-horizontal .mfp-with-anim {
  opacity: 0;
  transition: all 0.3s;
  transform: translateX(-50px);
}

.mfp-move-horizontal.mfp-bg {
  opacity: 0;
  transition: all 0.3s;
}

.mfp-move-horizontal.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: translateX(0);
}

.mfp-move-horizontal.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-move-horizontal.mfp-removing .mfp-with-anim {
  transform: translateX(50px);
  opacity: 0;
}

.mfp-move-horizontal.mfp-removing.mfp-bg {
  opacity: 0;
}

.mfp-move-from-top { /* start state */ /* animate in */ /* animate out */
}

.mfp-move-from-top .mfp-content {
  vertical-align: top;
  margin-top: 50px;
}

.mfp-move-from-top .mfp-with-anim {
  opacity: 0;
  transition: all 0.2s;
  transform: translateY(-100px);
}

.mfp-move-from-top.mfp-bg {
  opacity: 0;
  transition: all 0.2s;
}

.mfp-move-from-top.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: translateY(0);
}

.mfp-move-from-top.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-move-from-top.mfp-removing .mfp-with-anim {
  transform: translateY(-50px);
  opacity: 0;
}

.mfp-move-from-top.mfp-removing.mfp-bg {
  opacity: 0;
}

.mfp-3d-unfold { /* start state */ /* animate in */ /* animate out */
}

.mfp-3d-unfold .mfp-content {
  perspective: 2000px;
}

.mfp-3d-unfold .mfp-with-anim {
  opacity: 0;
  transition: all 0.3s ease-in-out;
  transform-style: preserve-3d;
  transform: rotateY(-60deg);
}

.mfp-3d-unfold.mfp-bg {
  opacity: 0;
  transition: all 0.5s;
}

.mfp-3d-unfold.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: rotateY(0deg);
}

.mfp-3d-unfold.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-3d-unfold.mfp-removing .mfp-with-anim {
  transform: rotateY(60deg);
  opacity: 0;
}

.mfp-3d-unfold.mfp-removing.mfp-bg {
  opacity: 0;
}

.mfp-zoom-out .mfp-with-anim {
  opacity: 0;
  transition: all 0.3s ease-in-out;
  transform: scale(1.3);
}

.mfp-zoom-out.mfp-bg {
  opacity: 0;
  transition: all 0.3s ease-out;
}

.mfp-zoom-out.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: scale(1);
}

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

.mfp-zoom-out.mfp-removing .mfp-with-anim {
  transform: scale(1.3);
  opacity: 0;
}

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


/** fix porto **/
#mpquickview-popup .custom-block.custom-block-1, #mpquickview-popup .custom-block {
  display: none !important;
}

#mpquickview-popup .page-title-wrapper.product {
  display: block !important;
}

#mpquickview-popup #maincontent {
  padding-left: 15px !important;
  padding-right: 15px !important;
}


/**
    AJAX CART POPUP
 */

.mpajaxcart-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
  display: none;
}

#mpajaxcart-popup {
  z-index: 2000;
  position: fixed;
  height: auto;
  max-width: 100%;
  min-width: 800px;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  display: none;
  max-height: 80%;
  overflow: hidden;
  overflow-y: auto;
}

@media screen and (max-width: 560px) {
  #mpajaxcart-popup {
    min-width: 300px;
  }
}

#mpajaxcart-popup-content {
  padding-top: 30px;
  padding-bottom: 40px;

}

#mpajaxcart-popup-content .product-info-price {
  margin-bottom: 0;
}

#mpajaxcart-popup-content .product-add-form {
  padding-top: 0;
}

#mpajaxcart-popup-content .column.main {
  margin-bottom: 25px;
}

#mpajaxcart-popup-content .product.info.detailed {
  display: none;
}

#mpajaxcart-popup-main {
  height: auto;
  position: relative;
  background: #fff;
  margin: 0 auto;
}

.mpajaxcart-actions {
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: 10px;
  z-index: 1000;
}

button.action.primary.continue-shopping {
  font-size: 14px;
  padding: 15px;
  background: #eb5202;
  border: none;
  width: 40%;
  height: 100%;
}

button#product-addtocart-button.mptocart {
  background: #1979c3;
  border: none;
  width: 40%;
  font-size: 14px;
  padding: 15px;
  margin-left: 5%;
  height: 100%;
}

.mp-btnclose {
  background: transparent;
  border: none;
  padding: 0;
  color: #CCC;
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 28px;
  box-shadow: none !important;
  font-family: Arial, Baskerville, monospace;
}

.mpquickview-message {
  text-align: center;
}

.mp-btnclose:hover {
  background: transparent;
  border: none;
}

#mpajaxcart-popup .column.main {
  width: 100% !important;
}

#mpajaxcart-popup .fotorama__nav-wrap {
  display: none !important;
}

#mpajaxcart-popup-content .fotorama__arr {
  display: none !important;
}

.cms-index-index #mpajaxcart-popup .page-title {
  position: relative;
  width: 100%;
  height: 100%;
}

/** POPUP SUCCESS **/
.mpajaxcart-popup-success {
  float: right;
  width: 100%;
  background: #FFF;
  margin-bottom: 25px;
}

.mpajaxcart-success-action {
  padding-bottom: 10px;
  text-align: center;
  width: 100%;
}

button.action.primary.btn-view-cart, button.action.primary.btn-proceed-checkout {
  font-size: 1.4rem;
  padding: 15px;
  background: #eb5202;
  border: none;
  width: 40%;
  height: 100%;
  color: #FFFFFF;
  margin-left: 5%;
}

button.action.primary.btn-proceed-checkout {
  margin-top: 20px;
}

button.btn-view-cart a {
  color: #FFF;
  text-decoration: none;
}

.mp-product-item-photo {
  float: left;
  width: 48%;
  text-align: center;
}

.mp-product-item-photo .product-image-container {
  vertical-align: middle;
}

.mp-product-item-info {
  float: right;
  width: 50%;
}


.mpajaxcart-popup-label {
  font-size: 25px;
  font-weight: 500;
}

.mpajaxcart-control {
  margin-top: 30px;
}

.mpajaxcart-msqty {
  margin-top: 40px;
}

.mp-status {
  position: absolute;
  color: #e02b27;
  font-size: 1.2rem;
}

.mpajaxcart-msqty span, .mpajaxcart-mssubtotal span {
  font-weight: bold;
}

#mpajaxcart-popup::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #F5F5F5;
  border-radius: 5px;
}

#mpajaxcart-popup::-webkit-scrollbar {
  width: 5px;
  background-color: #F5F5F5;
}

#mpajaxcart-popup::-webkit-scrollbar-thumb {
  background-color: #AAA;
  border-radius: 5px;
}

.mptabs-active {
  display: block !important;
}

/** fix porto **/
#mpajaxcart-popup-main .sidebar.sidebar-additional {
  display: none;
}

#mpajaxcart-popup-content .page-title-wrapper.product {
  display: block !important;
}

#mpajaxcart-popup-content .page-title-wrapper.product .page-title span {
  line-height: 1.4;
}

@media only screen and (max-width: 767px) {
  #mpajaxcart-popup-content .column.main {
    display: flex;
    flex-direction: column;
  }

  #mpajaxcart-popup-content .product.media {
    order: -1;
  }
}

.swatch-input.super-attribute-select {
  left: -1000px;
  position: absolute;
  visibility: hidden;
}

.mpquickview-button {
  word-wrap: break-word;
}

span.product-image-wrapper {
    padding-bottom: 125% !important;
}

.product-items.widget-product-grid span.product-image-container {
    width: 240px !important;
}
/** update Ui **/
.mpajaxcart-control {
    display: flex;
}
.mpajaxcart-control span.label {
    margin-right: 10px;
}

input.mpajaxcart-qty {
    text-align: center;
    box-sizing: unset;
    height: 25px;
    width: 28px;
}

input.mpajaxcart-update {
    margin-left:10px;
}

input.mpajaxcart-minus {
    width: 25px;
}

input.mpajaxcart-plus {
    width: 25px;
}
/** fix porto **/
.prev-next-products .product-prev .product-pop.theme-border-color {
  margin-left: -65px;
}

.prev-next-products .product-nav.product-prev .product-pop:before {
  left: 70px !important;
}

.prev-next-products .product-prev, .prev-next-products .product-next {
    cursor: pointer !important;
}

#mpajaxcart-popup .block.related {
    margin: 20px;
}

#mpajaxcart-popup-content .block.related .related-available .product-item-name {
    margin-left: 0;
}

@media all and (min-width: 768px), print {
    #mpajaxcart-popup .block.crosssell {
        width: 100%;
        float: unset;
        margin: 20px;
    }
}

