.fcs-upsell-box {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.fcs-upsell-box.is-empty {
  display: none;
}

.fcs-upsell-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.fcs-upsell-head strong {
  font-size: 16px;
  color: #111;
}

.fcs-upsell-head span {
  font-size: 13px;
  color: #777;
}

/* Upsell a righe, non a colonne */
.fcs-upsell-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fcs-upsell-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}

.fcs-upsell-img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.fcs-upsell-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fcs-upsell-info {
  min-width: 0;
}

.fcs-upsell-name {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.fcs-upsell-price {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #111;
}

.fcs-upsell-add {
  min-width: 110px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #d4af37;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}

.fcs-upsell-add:hover {
  background: #c9a14a;
}

.fcs-upsell-add.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* Modale: compatta ma sempre a righe */
#blockcart-modal .fcs-upsell-box {
  margin: 0;
  box-shadow: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

#blockcart-modal .fcs-upsell-head {
  margin-bottom: 10px;
}

#blockcart-modal .fcs-upsell-head span {
  display: none;
}

#blockcart-modal .fcs-upsell-card {
  grid-template-columns: 54px 1fr auto;
  gap: 8px;
  padding: 8px;
}

#blockcart-modal .fcs-upsell-img {
  width: 54px;
  height: 54px;
}

#blockcart-modal .fcs-upsell-name {
  font-size: 12px;
}

#blockcart-modal .fcs-upsell-price {
  font-size: 13px;
}

#blockcart-modal .fcs-upsell-add {
  min-width: 86px;
  padding: 8px 10px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .fcs-upsell-head {
    display: block;
  }

  .fcs-upsell-head span {
    display: block;
    margin-top: 4px;
  }

  .fcs-upsell-card {
    grid-template-columns: 64px 1fr;
  }

  .fcs-upsell-img {
    width: 64px;
    height: 64px;
  }

  .fcs-upsell-add {
    grid-column: 1 / -1;
    width: 100%;
  }

  #blockcart-modal .fcs-upsell-card {
    grid-template-columns: 48px 1fr;
  }

  #blockcart-modal .fcs-upsell-img {
    width: 48px;
    height: 48px;
  }

  #blockcart-modal .fcs-upsell-add {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* CTA prossima soglia Capsule e Cialde */
.fcs-threshold-cta {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(201, 161, 74, .35);
  border-radius: 12px;
  background: #fffaf0;
}

.fcs-threshold-cta-text {
  margin-bottom: 10px;
}

.fcs-threshold-cta-text strong {
  display: block;
  font-size: 14px;
  color: #111;
}

.fcs-threshold-cta-text span {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  color: #333;
}

.fcs-threshold-product {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
}

.fcs-threshold-img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.fcs-threshold-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fcs-threshold-info {
  min-width: 0;
}

.fcs-threshold-name {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.fcs-threshold-qty {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

.fcs-threshold-add {
  min-width: 110px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}

.fcs-threshold-add:hover {
  background: #c9a14a;
}

.fcs-threshold-add.is-loading {
  opacity: .6;
  pointer-events: none;
}

#blockcart-modal .fcs-threshold-cta {
  margin-top: 10px;
}

#blockcart-modal .fcs-threshold-product {
  grid-template-columns: 48px 1fr auto;
}

#blockcart-modal .fcs-threshold-img {
  width: 48px;
  height: 48px;
}

#blockcart-modal .fcs-threshold-name {
  font-size: 12px;
}

#blockcart-modal .fcs-threshold-add {
  min-width: 82px;
  padding: 8px 9px;
  font-size: 12px;
}

.free-shipping-bar-compact .fcs-threshold-cta {
  padding: 10px;
}

.free-shipping-bar-compact .fcs-threshold-product {
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
}

.free-shipping-bar-compact .fcs-threshold-img {
  width: 44px;
  height: 44px;
}

.free-shipping-bar-compact .fcs-threshold-cta-text strong,
.free-shipping-bar-compact .fcs-threshold-name {
  font-size: 12px;
}

.free-shipping-bar-compact .fcs-threshold-qty,
.free-shipping-bar-compact .fcs-threshold-cta-text span {
  font-size: 11px;
}

.free-shipping-bar-compact .fcs-threshold-add {
  min-width: 74px;
  padding: 7px 8px;
  font-size: 11px;
}

@media (max-width: 767px) {
  .fcs-threshold-product,
  #blockcart-modal .fcs-threshold-product,
  .free-shipping-bar-compact .fcs-threshold-product {
    grid-template-columns: 48px 1fr;
  }

  .fcs-threshold-add,
  #blockcart-modal .fcs-threshold-add,
  .free-shipping-bar-compact .fcs-threshold-add {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Cart row lock for upsell products already added to cart */
.fcs-cart-upsell-locked [data-fcs-disabled-link="1"] {
  pointer-events: none !important;
  cursor: default !important;
  color: inherit !important;
  text-decoration: none !important;
}

.fcs-cart-upsell-locked .fcs-hidden-qty,
.fcs-cart-upsell-locked input.js-cart-line-product-quantity,
.fcs-cart-upsell-locked input[name="product-quantity-spin"],
.fcs-cart-upsell-locked .bootstrap-touchspin {
  display: none !important;
}


/* =========================================================
   CART SHIPPING BAR - COLLASSABILE
========================================================= */

body#cart .free-shipping-bar-cart-compact,
.cart-grid .free-shipping-bar-cart-compact {
  margin: 16px 0;
}

body#cart .free-shipping-bar-cart-compact .fcs-alert,
.cart-grid .free-shipping-bar-cart-compact .fcs-alert {
  display: none;
}

body#cart .fcs-cart-details,
.cart-grid .fcs-cart-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

body#cart .fcs-cart-details summary,
.cart-grid .fcs-cart-details summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

body#cart .fcs-cart-details summary::-webkit-details-marker,
.cart-grid .fcs-cart-details summary::-webkit-details-marker {
  display: none;
}

body#cart .fcs-cart-details summary::after,
.cart-grid .fcs-cart-details summary::after {
  content: '+';
  float: right;
}

body#cart .fcs-cart-details[open] summary::after,
.cart-grid .fcs-cart-details[open] summary::after {
  content: '−';
}

body#cart .fcs-cart-details .fcs-row,
.cart-grid .fcs-cart-details .fcs-row {
  margin-top: 12px;
}

@media (max-width: 767px) {
  body#cart .free-shipping-bar-cart-compact,
  .cart-grid .free-shipping-bar-cart-compact {
    padding: 14px;
    border-radius: 12px;
  }
}

.fcs-upsell-page {
  display: none !important;
}

.fcs-upsell-page.is-active {
  display: grid !important;
}

.fcs-upsell-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  margin: 16px auto 0;
  padding: 11px 18px;

  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;

  cursor: pointer;
  transition: all .2s ease;
}

.fcs-upsell-more:hover {
  background: #c9a14a;
  border-color: #c9a14a;
  color: #111;
  transform: translateY(-1px);
}

.fcs-upsell-more:active {
  transform: translateY(0);
}

.fcs-upsell-more::after {
  content: "→";
  margin-left: 8px;
  font-size: 15px;
  line-height: 1;
}