/* Wrapper previews sotto il nome prodotto */
.moab-previews {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
}

/* Link preview */
.moab-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

/* Anteprime leggermente più piccole */
.moab-preview--label,
.moab-preview--bottle {
  width: 130px; /* più piccolo rispetto ai 160px precedenti */
}

.moab-preview--thumb {
  width: 60px; /* thumbnail carrello, più piccolo di 72px */
}

.moab-preview__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nasconde la "key" (didascalia) nella tabella item data di Woo
   senza toccare il valore. */
.woocommerce .wc-item-meta .wc-item-meta-label {
  display: none !important;
}

/* Lightbox */
.moab-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.moab-lightbox.is-open {
  display: block;
}

.moab-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.moab-lightbox__dialog {
  position: relative;
  width: min(92vw, 980px);
  margin: 6vh auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.moab-lightbox__toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.moab-lightbox__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.06);
  cursor: pointer;
}

.moab-lightbox__img-wrap {
  padding: 14px;
}

.moab-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
}

/* CART: nasconde colonna thumbnail (immagine prodotto a sinistra) */
.woocommerce-cart table.shop_table.cart td.product-thumbnail,
.woocommerce-cart table.shop_table.cart th.product-thumbnail {
  display: none !important;
}

/* riallinea padding prima colonna rimasta */
.woocommerce-cart table.shop_table.cart td.product-name {
  padding-left: 0 !important;
}


/* CART: stile bottone per "re-edit" */
.woocommerce-cart .product-name a i,
.woocommerce-cart .product-name a[href*="fpd"],
.woocommerce-cart .product-name a[href*="re-edit"],
.woocommerce-cart .product-name a[href*="edit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1;
  margin-top: 6px;
}

.woocommerce-cart .product-name a i:hover,
.woocommerce-cart .product-name a[href*="fpd"]:hover,
.woocommerce-cart .product-name a[href*="re-edit"]:hover,
.woocommerce-cart .product-name a[href*="edit"]:hover {
  background: rgba(0,0,0,.04);
}

.woocommerce-cart .product-name a i:focus,
.woocommerce-cart .product-name a[href*="fpd"]:focus,
.woocommerce-cart .product-name a[href*="re-edit"]:focus,
.woocommerce-cart .product-name a[href*="edit"]:focus {
  outline: 2px solid rgba(0,0,0,.25);
  outline-offset: 2px;
}


/* Nasconde la label del meta anche in markup alternativi */
.woocommerce-cart .product-name .variation dt,
.woocommerce-cart .product-name .wc-item-meta-label {
  display: none !important;
}


.woocommerce-cart-form .item-variation-name, .mini_cart_item .item-variation-name{
display: none;
}

.moab-preview.moab-preview--label img, .moab-preview.moab-preview--bottle img{
  height: 100px;;
  width: auto;
}




/* Lightbox: layout che consente scroll interno */
.moab-lightbox.is-open {
  display: block;
}

.moab-lightbox__dialog {
  position: relative;
  width: min(92vw, 980px);
  margin: 4vh auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;

  /* fondamentale: limita l'altezza del dialog */
  max-height: 92vh;

  /* layout verticale: toolbar fissa + contenuto scrollabile */
  display: flex;
  flex-direction: column;
}

/* Toolbar resta visibile */
.moab-lightbox__toolbar {
  flex: 0 0 auto;
}

/* Contenuto scrollabile */
.moab-lightbox__img-wrap {
  flex: 1 1 auto;
  overflow: auto;              /* <-- abilita scroll */
  -webkit-overflow-scrolling: touch;
  padding: 14px;
}

/* Immagine: non forzare sempre 100% in altezza, solo larghezza */
.moab-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Migliora click fuori e chiusura */
.moab-lightbox__backdrop {
  cursor: zoom-out;
}
