/* ==============================
   PAGINA PRODOTTO
============================== */

body.ac-qty-presets-active .product-quantity {
  display: block !important;
}

body.ac-qty-presets-active .ac-qty-presets {
  display: block !important;
  width: 100%;
  margin: 0 0 15px;
}

body.ac-qty-presets-active .product-quantity .qty {
  display: none !important;
}

body.ac-qty-presets-active .product-quantity .add {
  display: block !important;
  width: 100% !important;
  margin-top: 18px !important;
}

body.ac-qty-presets-active .product-quantity .add .add-to-cart,
body.ac-qty-presets-active .product-quantity .add button[data-button-action="add-to-cart"] {
  display: inline-block !important;
  background: #B59410;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  transition: all 0.2s ease;
}

body.ac-qty-presets-active .product-quantity .add .add-to-cart:hover,
body.ac-qty-presets-active .product-quantity .add button[data-button-action="add-to-cart"]:hover {
  background: #B5860D;
  color: #fff;
}

body.ac-qty-presets-active span.control-label {
  display: none !important;
}

body.ac-qty-presets-active .product-prices {
  display: none !important;
}

.ac-qty-presets-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 18px;
  color: #000;
}

.ac-qty-presets-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ac-qty-presets-table th,
.ac-qty-presets-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.ac-qty-presets-table th {
  background: #f9f9f9;
  font-weight: 700;
  color: #000;
  text-align: left;
}

.ac-qty-presets-table td {
  background: #fff;
  color: #000;
  font-size: 15px;
}

.ac-qty-presets-table tr:last-child td {
  border-bottom: none;
}

.ac-qty-presets-table tr:hover td {
  background: #f9f9f9;
}

.ac-qty-presets-table label {
  cursor: pointer;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
}

.ac-qty-presets-table input[type="radio"] {
  accent-color: #B59410;
  transform: scale(1.15);
}

.ac-qty-presets-table tr:has(input[type="radio"]:checked) td {
  background: rgba(181, 148, 16, 0.08);
  font-weight: 700;
}

.ac-qty-presets-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.ac-free-shipping-note {
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #B59410;
}

/* ==============================
   LOOP PRODOTTI / MINIATURE
============================== */

.product-miniature .quick-view,
.product-miniature .highlighted-informations {
  display: none !important;
}

.product-miniature .thumbnail-container {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.product-miniature .thumbnail-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.product-miniature .thumbnail-top {
  background: #fff;
}

.product-miniature .product-thumbnail {
  display: block;
  padding: 0px;
}

.product-miniature .product-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.product-miniature .product-description {
  padding: 16px;
  text-align: center;
}

.product-miniature .product-title {
  min-height: 46px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.product-miniature .product-title a {
  color: #000;
  text-decoration: none;
}

.product-miniature .product-price-and-shipping {
  display: block !important;
  margin: 8px 0 14px;
  font-weight: 700;
  color: #B59410;
}

.product-miniature.ac-mini-has-presets .product-price-and-shipping {
  display: none !important;
}

.ac-loop-add-to-cart-form {
  margin-top: 12px;
}

.ac-loop-has-presets .ac-loop-add-to-cart {
  display: none !important;
}

.ac-mini-qty-presets {
  width: 100%;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}

.ac-mini-qty-head,
.ac-mini-qty-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.ac-mini-qty-head {
  padding: 9px 12px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.ac-mini-qty-option {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-top: 1px solid #eee;
  background: #fff;
  color: #000;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ac-mini-qty-option span {
  font-size: 13px;
  font-weight: 600;
}

.ac-mini-qty-option strong {
  color: #B59410;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ac-mini-qty-option:hover {
  background: #f9f9f9;
}

.ac-mini-qty-option:hover span {
  color: #B59410;
}

.ac-mini-qty-option.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.ac-loop-add-to-cart {
  width: 100%;
  background: #B59410;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ac-loop-add-to-cart:hover {
  background: #B5860D;
  color: #fff;
}

/* ==============================
   BADGE SOGLIE DINAMICHE
============================== */

.ac-qty-main-label {
  display: inline-flex;
  align-items: center;
}

.ac-threshold-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f6f6f6;
  border: 1px solid rgba(181, 148, 16, 0.25);
  color: #B59410;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ac-threshold-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  flex: 0 0 auto;
}

.ac-mini-qty-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.ac-threshold-badge-mini {
  margin-left: 0;
  padding: 3px 7px;
  font-size: 11px;
}

.ac-threshold-badge-mini img {
  width: 14px;
  height: 14px;
}

@media (max-width: 575px) {
  .ac-qty-presets-table label {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ac-threshold-badge {
    margin-left: 0;
  }
}

span.ac-mini-qty-badge {
    /* text-align: center; */
    font-size: 10px;
}

/* ==============================
   OPZIONI NON DISPONIBILI
============================== */

.ac-qty-presets-table tr.ac-preset-disabled td {
  background: #f5f5f5 !important;
  color: #999;
}

.ac-qty-presets-table tr.ac-preset-disabled label {
  cursor: not-allowed;
}

.ac-qty-presets-table tr.ac-preset-disabled input[type="radio"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.ac-qty-presets-table tr.ac-preset-disabled .ac-qty-main-label,
.ac-qty-presets-table tr.ac-preset-disabled td:last-child {
  opacity: 0.6;
}

.ac-stock-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eee;
  border: 1px solid #ddd;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ac-mini-qty-option:disabled,
.ac-mini-qty-option-disabled {
  cursor: not-allowed !important;
  opacity: 0.48;
  background: #f5f5f5 !important;
}

.ac-mini-qty-option:disabled:hover,
.ac-mini-qty-option-disabled:hover {
  background: #f5f5f5 !important;
  transform: none !important;
}

.ac-mini-qty-option:disabled span,
.ac-mini-qty-option-disabled span,
.ac-mini-qty-option:disabled strong,
.ac-mini-qty-option-disabled strong {
  color: #888 !important;
}

.ac-stock-badge-mini {
  margin-left: 0;
  padding: 3px 7px;
  font-size: 10px;
}

/* AC Quantity Presets Override */

span.ac-mini-qty-badge {
    /* text-align: center; */
    font-size: 12px !important;
}

.ac-threshold-badge {
  background: #f6f6f6 !important;
}

.ac-mini-qty-label {
    flex-direction: row !important;
}

@media (max-width: 767px) {

  .ac-mini-qty-label {
    flex-direction: column !important;
  }

}

.ac-threshold-badge-mini img {
    width: 16px;
    height: 16px;
}