/* ===== Tabella varianti / semplice – stile tipo screenshot ===== */
.iwv-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.iwv-table {
  background: #1b1b1a;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
}

.iwv-thead {
  background: #1b1b1a;
}

/* Sorgente unica */
.iwv-table {
  --iwv-cols: 1.6fr 2.5fr 1.1fr 1.5fr 1.2fr 2.8fr; /* logged-in: Cod.Art | Nome | Prezzo | Disp | Q.tà | Azioni */
  --iwv-gap: 10px;
  min-width: 1120px;
}

.iwv-table.is-guest {
  --iwv-cols: 1.6fr 2.5fr 3fr 2fr;
}

/* Righe header e body prendono dai var() */
.iwv-tr {
  display: grid;
  grid-template-columns: var(--iwv-cols);
  gap: var(--iwv-gap);
}

/* Importante per evitare che il min-content allarghi le celle */
.iwv-tr > .iwv-th,
.iwv-tr > .iwv-td { 
  min-width: 0; 
}

/* Evita differenze di box model tra testa e corpo */
.iwv-thead, .iwv-tbody { 
  padding: 0; 
  margin: 0; 
}
.iwv-thead .iwv-tr, .iwv-tbody .iwv-tr { 
  padding: 8px 16px; 
} /* stessa padding su entrambe */

.iwv-tbody .iwv-tr {
  border-right: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.iwv-th,
.iwv-td {
  padding: 0 7px;
  display: flex;
  align-items: center;
}

.iwv-th {
  font-weight: 700;
}

.iwv-tbody .iwv-tr:nth-child(odd) {
  background: #f7f7f7;
  color: #1b1b1a;
}

.iwv-tbody .iwv-tr:nth-child(even) {
  background: #fff;
  color: #1b1b1a;
}

.iwv-tbody .iwv-td strong {
  color: #1b1b1a;
}

.iwv-col-name{
  font-size: 13px;
  line-height: 16px;
}

.iwv-col-price span{
  font-weight: 600;
}
.iwv-note {
  font-size: 13px;
  opacity: .9;
}

.iwv-col-actions {
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-content: center;
}

.alx-btn.iwv-btn {
  padding: 0 14px;
  line-height: 36px;
  height: 36px;
  font-size: 14px;
  border-radius: 100px;
  font-weight: 400;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.alx-btn.iwv-btn span{
  display: flex;
  align-items: center;
  justify-content: center;
}

.iwv-btn--cart {
  background: #1b1b1a;
  color: #fff;
  border: 1px solid #1b1b1a;
}

.iwv-btn--cart:hover {
  background: #c1b100;
  border: 1px solid #c1b100;
}

.iwv-btn--detail {
  background: transparent;
  color: #1b1b1a;
}

.iwv-btn--detail:hover {
  filter: brightness(0.97);
}

.iwv-btn--request {
  background: #fff;
  color: #1b1b1a;
  border: 1px solid #1b1b1a;
}

.iwv-btn--request:hover {
  background: #f3f4f6;
}

.iwv-btn--wishlist {
  background: #fff;
  color: #1b1b1a;
  border: 1px solid #d0d5dd;
  min-width: 44px;
  padding: 0 10px;
}

.iwv-col-actions .iwv-btn--detail,
.iwv-col-actions .iwv-btn--wishlist {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.iwv-col-actions .iwv-btn--cart,
.iwv-col-actions .iwv-btn--request {
  white-space: nowrap;
}

.iwv-qty-placeholder {
  font-weight: 700;
  color: #667085;
}

.iwv-btn--wishlist:hover {
  background: #fff1f3;
  border-color: #f4c7cf;
  color: #b42318;
}

.iwv-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 30px;
}

.iwv-chip .iwv-chip-circle {
  display: inline-flex;
  width: 15px;
  height: 15px;
  border-radius: 999px;
}

.iwv-chip--ok{
  background-color: rgba(11, 122, 27, 0.12);
  color: rgb(11, 122, 27);
}

.iwv-chip--no{
  background-color: rgba(163, 0, 0, 0.12);
  color: rgb(163, 0, 0);
}

.iwv-chip--ok .iwv-chip-circle{
  background-color: rgb(11, 122, 27);
}

.iwv-chip--no .iwv-chip-circle{
  background-color: rgb(163, 0, 0);
}

/* Quantità */
.iwv-qty {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}

.iwv-qty__minus,
.iwv-qty__plus {
  width: 36px;
  height: 36px;
  border: 0;
  background: #ddd;
  font-size: 18px;
  cursor: pointer;
}

.iwv-qty__input {
  width: 56px;
  height: 36px;
  text-align: center;
  border: 0 !important;
  background: #fff;
  font-weight: 700;
  color: #1b1b1a;
}

.iwv-qty[disabled] .iwv-qty__minus,
.iwv-qty[disabled] .iwv-qty__plus,
.iwv-qty[disabled] .iwv-qty__input {
  opacity: .5;
  pointer-events: none;
}

/* Paginazione */
.iwv-pagination {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.iwv-page {
  padding: 6px 12px;
  border-radius: 999px;
  background: #efefef;
  color: #1b1b1a;
  text-decoration: none;
  font-weight: 700;
}

.iwv-page.is-active {
  background: #1b1b1a;
  color: #fff;
}

/* Modal */
.iwv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  pointer-events: none;
}

.iwv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease;
}

.iwv-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(760px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #1b1b1a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 99999;
}

.iwv-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #1b1b1a;
}

.iwv-modal__title {
  font-weight: 800;
  font-size: 16px;
}

.iwv-modal__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.iwv-modal__body {
  padding: 16px;
  background: #f7f7f7;
  color: #1b1b1a;
}

.iwv-modal__footer {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  background: #1b1b1a;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.iwv-modal.is-open {
  pointer-events: auto;
}

.iwv-modal.is-open .iwv-modal__dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.iwv-modal.is-open .iwv-modal__backdrop {
  opacity: 1;
}

/* Tabella attributi in modal */

.iwv-attrs-table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e7e7e7;
}

.iwv-attrs-table .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 14px;
}

.iwv-attrs-table .row:nth-child(odd) {
  background: #fafafa;
}

.iwv-attrs-table .lbl {
  font-weight: 700;
  color: #444;
  font-size: 13px;
}

.iwv-attrs-table .val {
  color: #1b1b1a;
  font-size: 13px;
}

/* Responsivo */

@media (max-width: 980px) {
  .iwv-table {
    min-width: 1060px;
  }
}

@media (max-width: 680px) {
  .iwv-table {
    min-width: 980px;
  }

  .iwv-btn.et_pb_button {
    padding: 7px 12px;
    font-size: 16px !important;
  }

  .iwv-qty__minus,
  .iwv-qty__plus {
    width: 32px;
    height: 32px;
  }

  .iwv-qty__input {
    width: 48px;
    height: 32px;
  }

}

.iwv-request-product {
  margin: 0 0 10px;
  font-size: 13px;
  color: #444;
}

.iwv-request-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.iwv-request-notes {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}



/* Stato disabled per bottoni */

.iwv-btn[disabled] {
  opacity: .5;
  pointer-events: none;
}

.iwv-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: #222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transition: all .25s ease;
  z-index: 99999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.iwv-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
