
#tablecombz-wrapper, #tablecombz-tab {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar
}
.tablecombz-table {
    border-width: 1px;
    margin-bottom: 1rem;
}

.tablecombz-table tr {

}

.tablecombz-table td, .tablecombz-table th {
    text-align: center;
    vertical-align: middle !important;
    padding: 8px !important;
}

.tablecombz-table tr th {
    text-align: center !important;
}
td.tablecombz-img {

}

td.tablecombz-img img {
    cursor: pointer;
}

td.tablecombz-reference {

}

td.tablecombz-name {

}

td.tablecombz-descr {

}

td.tablecombz-price {
    white-space: nowrap;
}

td.tablecombz-price .price-lowered {
    color: #DA0F00;
}

td.tablecombz-price .price {
    font-size: 14px;
    font-weight: bold;
}

td.tablecombz-weight {
    white-space: nowrap;
}

td.tablecombz-avail {

}

td.tablecombz-avail img {

}

td.tablecombz-quantity {

}
td.tablecombz-add-to-cart {

}

.tablecombz-quantity-wanted .qty {
    vertical-align: top;
}

.tablecombz-quantity-wanted .qty .sum-label {
    font-size: 10px;
    font-weight: bold;
    text-align: left;
    display: block;
    float: left;
    height: 40px;
}

.tablecombz-quantity-wanted .quantity-input-buttons {
    float: left;
}
td.tablecombz-attr {

}

td.tablecombz-attr-color {

}

td.tablecombz-attr-color a {
    margin: auto;
}

a.attr-color-picker {
    display: block;
    cursor: pointer;
    background-repeat: round;
    background-size: contain;
}
td.tablecombz-extra-location {

}

td.tablecombz-extra-ecotax {

}
h4.tablecombz-filter {
    margin-bottom: 10px;
    margin-top: 10px;
}

li.tablecombz-filter-li, li.tablecombz-filter-li-first {
    list-style: none outside none;
    height: 22px;
    margin-bottom: 10px;
}

li.tablecombz-filter-li-first {
    margin-bottom: 5px;
    font-weight: bold;
}

.tablecombz-filter-select {
    margin-right: 10px;
    margin-left: 0;
    margin-bottom: 15px;
    border: 1px solid #cdcdcd;
}

input.tablecombz-sel-column {
    float: left;
}

div.tablecombz-caption {
    float: left;
    margin-left: 3px;
}
.tablecombz-filter-li .radio {
    bottom: 0;
    float: left;
    min-height: 13px;
    top: 4px;
    position: relative;
    margin-left: 5px;
}

a.tablecombz-filter-a {
    float: left !important;
    cursor: default !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 20px !important;
    height: 20px !important;
}
div.avail_descr {
    padding-top: 10px;
}
.tablecombz-notice-block {
    margin: 0.5em 0;
    text-align: right;
}

.tablecombz-attention-msg {
    display: inherit;
    color: #DA0F00;
    font-weight: bold;
}

tr.tablecombz-no-products {

}
.tablecombz-ui-tooltip {
    border: solid #AAAAAA 1px !important;
    background: #FFFFCC !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 16px !important;
    max-width: 180px !important;
    padding: 8px !important;
    position: absolute;
}
.batch_buy {
    display: block;
}

.batch_buy button {
    float: right;
}

.block-tablecombz-scroll {
    margin-bottom: 15px;
}

.tablecombz-table .min-qty-label {
    font-size: 10px;
    font-weight: bold;
    text-align: left;
    padding-bottom: 1px;
}

.tablecombz-table .total {
    font-size: 20px;
    font-weight: bold;
    text-align: right;
}

.tablecombz-table .total .note {
    font-size: initial;
    font-weight: initial;
    font-style: italic;
    margin-top: 5px;
}

.tablecombz-table th.tablecombz-discount {
    border-bottom: 1px solid #fff466;
    padding: 0;
}

.tablecombz-table th.tablecombz-discount, .tablecombz-table td.tablecombz-discount {
    white-space: nowrap;
}

.tablecombz-table th .discount-qty {

}

.tablecombz-table th .discount-amount {
    background-color: #fff466;
    color: #000;
    padding: 1px 4px;
    font-style: italic;
    font-size: smaller;

    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    -ms-border-radius: 3px;
}

.tablecombz-table td.tablecombz-discount {
    white-space: nowrap;
    width: 1px;
}
.tablecombz-table-quantity-discounts {
    display: table;
    width: 100%;
    margin: 0!important;
    padding: 0!important;
}

.tablecombz-table-quantity-discounts .header {
    text-align: center;
    border-bottom: 1px solid #d6d4d4!important;
}

.tablecombz-table-quantity-discounts .row {
    display: table-row;
    margin: 0!important;
    padding: 0!important;
}

.tablecombz-table-quantity-discounts .cell {
    display: table-cell;
    font-weight: normal;
    font-size: 13px;
    margin: 0!important;
    padding: 0!important;
}

.tablecombz-table-quantity-discounts .row:before, .tablecombz-table-quantity-discounts .row:after, .tablecombz-table-quantity-discounts .cell:before, .tablecombz-table-quantity-discounts .cell:after {
    margin: 0!important;
    padding: 0!important;
    content: none!important;
    display: none!important;
}
.tablecombz-discount-any-quantity {
    background-color: #fff466;
}

/* ============================
   TableCombz - Ajouts visuels personnalisés (version finale)
   → Ne remplace pas le CSS de base du module
============================ */

/* Style général du tableau produit */
#tablecombz-wrapper {
  width: 100%;
  margin-top: 20px;
}

.tablecombz-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e5e5;
  font-size: 14px;
}

.tablecombz-table th {
  background: #f8f8f8;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
}

.tablecombz-table td {
  text-align: center;
  vertical-align: middle;
  padding: 8px;
  border: 1px solid #eee;
}

/* Images et nom couleur */
.tablecombz-table td img {
  display: block;
  margin: 0 auto 5px;
  max-width: 80px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.tablecombz-table td div {
  font-size: 13px;
  color: #333;
}

/* Inputs quantité */
.input-quantity-wanted {
  width: 60px !important;
  height: 30px;
  line-height: 28px;
  text-align: center;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.input-quantity-wanted:focus {
  border-color: #0099cc;
  box-shadow: 0 0 4px rgba(0, 153, 204, 0.3);
  outline: none;
}

/* Prix unitaire */
.unit-price {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Bouton ajouter au panier */
.bulk-add-to-cart {
  background-color: #0099cc;
  border: none;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.1s ease;
  color: #fff;
}

.bulk-add-to-cart:hover {
  background-color: #007fa8;
  transform: scale(1.05);
}

.bulk-add-to-cart i {
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

/* Ligne total */
.total-row td.total {
  background: #f8f8f8;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: right;
  padding: 10px;
  border-top: 2px solid #ccc;
}

/* Toast notifications */
.tablecombz-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: toast-in 0.3s forwards, toast-out 0.3s 2.5s forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(20px); }
}

/* Responsive */
@media (max-width: 768px) {
  .tablecombz-table th,
  .tablecombz-table td {
    font-size: 12px;
    padding: 5px;
  }
  .input-quantity-wanted {
    width: 45px !important;
    height: 28px;
  }
  .unit-price {
    font-size: 11px;
  }
  .bulk-add-to-cart i {
    font-size: 13px;
  }
  .total-row td.total {
    font-size: 14px;
  }
}

/* Bloc filtre */
.tablecombz-filter {
  margin-bottom: 40px;
}

.tablecombz-filter h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Liste : une seule ligne, pas de scroll */
.tablecombz-filter-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;   /* tout sur une ligne */
  gap: 20px;           /* espace entre chaque pastille+nom */
}

/* On annule les vieux styles du module */
li.tablecombz-filter-li,
li.tablecombz-filter-li-first {
  height: auto;
  margin-bottom: 0;
}

a.tablecombz-filter-a {
  float: none !important;
  width: auto !important;
  height: auto !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;  /* pastille alignée avec le texte */
}

/* Pastille */
.tablecombz-filter-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 6px;
}

/* Nom de la couleur */
.tablecombz-filter-label {
  font-size: 14px;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

