/**
* 2019 Anvanto
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author Anvanto (anvantoco@gmail.com)
*  @copyright  2019 anvanto.com

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

#products .product-description, .featured-products .product-description, .product-accessories .product-description, .product-miniature .product-description {
/* 	height: auto !important; */
}

/* .thumbnail-container {

	margin-bottom: 250px !important;
} */
/* Contenitore generale */
.an_productattributes {
  margin-top: 8px;
}


/* Blocco prezzo/info */
.an-pa-pricebox {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eaeaea;
}

.an-pa-pricebox .priceee {
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.an-pa-pricebox .priceee span:first-child {
  font-weight: 700;
  font-size: 18px;
  color: #222;
}

.an-pa-pricebox .priceee span:last-child {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: #777;
  font-weight: 400;
}

.an-pa-pricebox .ttvproduct-iva {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.an-pa-pricebox .prz-cons {
  margin-top: 6px;
  height: auto !important;
  min-height: 24px;
  font-size: 12px;
  color: #666;
  line-height: 1.35;
}

/* Varianti/select */
.js-an_productattributes-standart {
  margin-bottom: 10px;
}

.js-an_productattributes-standart .product-variants {
  margin: 0;
}

.js-an_productattributes-standart .product-variants-item {
  margin: 0;
}

.js-an_productattributes-standart select.form-control-select {
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  display: block;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  padding: 6px 10px;
  font-size: 14px;
}

/* Riga qty + azioni */
.an_productattributes-qty-add {
  display: flex;
  align-items: stretch;
  gap: 8px;
  float: none !important; /* corregge il style inline errato float=left */
  margin-top: 8px;
}

/* Quantità */
.an_productattributes-qty-container {
  flex: 0 0 68px;
}

.an_productattributes-qty {
  width: 100%;
  height: 42px;
  text-align: center;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 4px;
  font-weight: 600;
}

/* Colonna bottoni */
.an_productattributes-add {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.an_productattributes-qty-container{
  display:flex;
  align-items:center;
  gap:4px;
}

.an-qty-btn{
  width:28px;
  height:42px;
  border:1px solid #dcdcdc;
  background:#fff;
  border-radius:8px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.an_productattributes-qty{
  width:56px;
  text-align:center;
}
/* Pulsante aggiungi */
.an_productattributes-add .js-an_productattributes-add-to-cart[type="submit"] {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #97ba45;
  background: #a8c554;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
  box-shadow: 0 2px 6px rgba(118,177,83,.25);
}

.an_productattributes-add .js-an_productattributes-add-to-cart[type="submit"]:hover {
  background: #97ba45;
  border-color: #8bac3e;
}

/* Pulsante elimina */
#remove_cart_871,
.an_productattributes-add .btn[onclick^="deleteproduct"] {
  width: 100%;
  height: 38px;
  border-radius: 8px !important;
  background: #fff !important;
  border: 1px solid #f0b7b7 !important;
  color: #d93025 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: .2s ease;
  box-shadow: none !important;
}

#remove_cart_871:hover,
.an_productattributes-add .btn[onclick^="deleteproduct"]:hover {
  background: #fff5f5 !important;
  border-color: #e79a9a !important;
}

/* Icone */
.an_productattributes-add .material-icons {
  font-size: 22px;
  line-height: 1;
}

/* Responsive piccole cards */
@media (max-width: 480px) {
  .an_productattributesForm {
    padding: 10px;
  }

  .an_productattributes-qty-container {
    flex-basis: 58px;
  }

  .an_productattributes-qty,
  .an_productattributes-add .js-an_productattributes-add-to-cart[type="submit"] {
    height: 40px;
  }
}
span.an_productattributes-select-price {
	font-weight: bold;
}
li.an_productattributes-select-sold-out {
  cursor: not-allowed !important;
}
span.an_productattributes-select-sold-out {
  color: #fff;
  background-color: #ffc427;
     padding: 2px 5px;
    margin: 0 5px;
}
span.an_productattributes-select-regular_price {
   text-decoration: line-through;
}
span.an_productattributes-select-sale {
    color: #fff;
    background-color: #e53d60;
     padding: 2px 5px;
    margin: 0 5px;
}




.an_productattributes {

  padding-right: 5px;
}
.an_productattributes select,
.an_productattributes .product-variants>.product-variants-item select {
  font-size: 14px;
  font-weight: normal;
  width: 100%;
  box-shadow: none;
}
.an_productattributes-select {
	margin-bottom: 10px;
}
.an_productattributes .control-label {
    display: block;
    padding-bottom: 3px;
}

.an_productattributes .product-variants>.product-variants-item {
    margin: 7px 0;
    width: 70%;
}




ul.an_productattributes-group {
	  display: table;
  margin: 0 auto;
}
.an_productattributes .product-variants>.product-variants-item ul li {
  margin: 0px 5px;
}

.an_productattributes .color,
.custom-checkbox input[type=checkbox]+span.color {
  margin: 0;
}

.an_productattributes-qty-container {
  padding-right: 5px;
  flex: 60px 0 0;
  justify-content: center ;
}
.an_productattributes-qty {
  padding: 10px;
  height: 44px;

}
.an_productattributes-qty-add .an_productattributes-add {
  flex: 1 1;
  margin: 0;
  justify-content: center ;

}
.an_productattributes-qty-add {
  display: flex;
  flex-direction: column;
}
.an_productattributes-qty-add .btn-primary {
  margin: 0;
  width: 100%;
  padding: 5px 0px 5px 0px;
  height: 2.75rem;
  line-height: inherit;
}

.an_productattributes-product-selectbox {
  background: #f1f1f1;
  color: #7a7a7a;
  border: 1px solid rgba(0,0,0,.25);
  padding: 0;
  position: relative;
}

.an_productattributes-product-selectbox li:hover {
  background-color: #f5f5f5;
}
.an_productattributes-product-selectbox li {
  cursor: pointer;
  font-size: 11px;
  padding: 5px 15px;
}


.an_productattributes-dropdown-toggler {
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  height: 34px;
  line-height: 24px;
  margin: 0;
  padding: 5px 25px 5px 15px;
  text-align: left;
  width: 100%;
  overflow: hidden;
  font-weight: normal;
}
.js-an_productattributes-filter-option {
  display: flex;
  overflow: hidden;
}
.an_productattributes-dropdown-menu {
  display: none;
  bottom: 100%;
  position: absolute;
  background: #fff;
  outline: 1px solid rgba(0,0,0,.25);
  left: 0;
  width: 100%;
  z-index: 1;
  font-weight: normal;
  text-align: left;
}
.an_productattributes-dropdown-menu ul {
	margin: 0;
}
.an_productattributes-dropdown.open .an_productattributes-dropdown-menu {
  display: block;
}

.an_productattributes-dropdown .an_productattributes-dropdown-toggler:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #000 transparent transparent transparent;
}

.an_productattributes-dropdown.open .an_productattributes-dropdown-toggler:after {
  border-color: transparent transparent #000 transparent;
  top: 8px;
}
