
/* remove new product proposition below when no item is in cart */
div.wc-block-grid.wp-block-product-new {
    display: none;
}

hr.wp-block-separator.has-alpha-channel-opacity.is-style-dots{
    display: none;
}

.wp-block-heading.has-text-align-center:last-of-type {
    display: none;
}


/*remove item in cart photo underline*/
.wc-block-cart-item__image a{
    border-bottom: none !important;
}


/*button*/
div.wc-block-cart__submit-container{
    display: flex;
    justify-content: center;
}

div.wc-block-cart__submit-container a {
    display: block;
    width: fit-content; /* Fit content size */
    padding: 0.625rem 0.875rem; /* Padding */
    text-decoration: none; /* No underline */
    color: #601a24; /* Updated primary color for text */
    border: 1px solid #601a24; /* Updated primary color border */
    transition: background-color 0.5s, color 0.5s, padding-right 0.5s ; /* Smooth transition for padding-right */
    font-family: "Dosis", sans-serif; /* Font family */
    font-size: 18px; /* Font size */
    position: relative; /* Required for positioning arrow */
  }
  
  div.wc-block-cart__submit-container a:hover {
    background-color: #601a24; /* Change background to new primary color on hover */
    color: #fff; /* Change text color to white on hover */
    padding-right: 2rem; /* Add extra space for arrow */
  
}
  
  div.wc-block-cart__submit-container a::after {
    content: "→"; /* Arrow character */
    color: #fff; /* Arrow color on hover */
    position: absolute; /* Absolute positioning */
    opacity: 0; /* Initially hidden */
    right: 0.5rem; /* Position it within the button */
    top: 50%; /* Center it vertically */
    transform: translate(100%, -50%); /* Start just outside of the button */
    transition: transform 0.5s ease, opacity 0.5s ; /* Smooth transition for the arrow */
}
  
  div.wc-block-cart__submit-container a:hover::after {
    opacity: 1; /* Show arrow on hover */
    transform: translate(0, -50%); /* Move arrow into place */
  }
  
/*products component*/
td.wc-block-cart-item__product > div > div.wc-block-cart-item__quantity > div > input{
    color: #fff;
    background-color: #601a24;
    height: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: lighter;
    width: 30px !important;
    outline: none; /* Removes the focus outline */
   
}
.wc-block-components-quantity-selector {
    border: #601a24 1px solid;
    border-radius: 0px !important; 
    box-sizing: content-box;
    display: flex;
    margin: 0 0 .25em;
    position: relative;
    width: 100px !important;
    outline: none; /* Removes the focus outline */
}

button.wc-block-components-quantity-selector__button.wc-block-components-quantity-selector__button--minus {
    /* Your CSS properties here */
    color: #601a24;
    font-size: 13px;
    outline: none; /* Removes the focus outline */
  }
  button.wc-block-components-quantity-selector__button.wc-block-components-quantity-selector__button--plus {
    /* Your CSS properties here */
    color: #601a24;
    font-size: 13px;
    outline: none; /* Removes the focus outline */
  }
    a.wc-block-components-product-name{
        font-weight: 600;
    }
    .wc-block-components-quantity-selector::after {
        border-radius: 0px;
        border: 0 !important; /* Removes any border */
        opacity: 0 !important; /* Makes the pseudo-element fully transparent */
      
    }
    .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button{
        opacity: 1 !important;
    }

    .wc-block-components-product-metadata__description{
      display: none;
    }

    .wc-block-components-product-name{
      pointer-events:none ;
    }

    .wc-block-cart-item__image{
      pointer-events: none;
    }


/*limit size of image in panier*/

td.wc-block-cart-item__image img{
  max-width: 150px !important;
  max-height: 150px !important;
  object-fit: contain;
}

/* Hide the empty cart icon/title */
.wp-block-woocommerce-empty-cart-block{
  display:none;
}

.new-wp-block-woocommerce-empty-cart-block{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.new-wp-block-woocommerce-empty-cart-block img{
  width: 300px;
  padding: 0.5rem;
}

.panier-vide-text-1{
  margin-top: 1rem;
}
/*
.defaut a{
  margin-top: 1rem;
  color: #601a24;
  border-bottom:  solid #601a24 1px !important;
}*/

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    min-height: 3em;
    width: 100% !important;
}

/* Cacher la demande d'adresse de livraison wocommerce block page panier car ce sera demandé par la page validation de commande originale */
.wp-block-woocommerce-cart-order-summary-shipping-block.wc-block-components-totals-wrapper{display:none;}