
/* Layout général */
.wc-flex-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.wc-flex-left {
  width: 70%;
  float: left;
}
.wc-flex-right {
  width: 25%;
  float: right;
  font-size: 13px;
}
@media (max-width: 768px) {
  .wc-flex-wrap {
    flex-direction: column;
  }
  .wc-flex-wrap > div {
    width: 100% !important;
    float: none !important;
  }
}

/* DIV */

/*div#content-area, div#left-area, div.entry-content {height:100%;}     */

div#module-stf    {
      overflow: visible;
     height: 100%;
     min-height:2500px;
     clear: both;
    padding: 20px 0;
}
div#produit-stf {float:left; width:70%; height:auto;}

#produit-stf img {
    max-width: 75px;
    max-height: 75px;
}
        
div#panier-stf  {
    float:right; 
    width:25%; 
    height:auto;
    position: sticky;
    top: 50px;
    z-index: 100;
    background: white;
    padding-top: 10px;
    }

div#prodTable_length {display:none; visibility:hidden;}

p#cart-total-line {
     padding: 20px;
     }


    
#btn-panier-stf {
    display: flex; 
    gap: 10px; 
    justify-content: flex-end; 
    margin-bottom: 10px; 
    }

/* Boutons */
button.add-to-cart {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
button.remove-from-cart {
  background: #ddd;
  color: black;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
button#clear-cart {
  background: #ec1212;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
} 

button#go-to-cart   {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;   
  }
/* Totaux */
.cart-total {
  text-align: right;
  font-weight: bold;
  margin-top: 15px;
}


/* Réduction de la taille de police pour le tableau panier */
#cart-preview table {
    font-size: 14px;
}

/* Style du bouton "Supprimer" remplacé par une croix rouge */
#cart-preview .remove-from-cart {
    background-color: white;
    color: red;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
}

#cart-preview .remove-from-cart::after {
    content: '✖';
    font-size: 16px;
}


#clear-cart,
#go-to-cart {
    height: 40px !important;
    line-height: 40px;
}


/* Rendre le bloc du panier sticky */
div#panier-stf {
    position: sticky;
    top: 50px;
    z-index: 100;
    background: white;
    padding-top: 10px;
}
