.elementor-stepper-widget
{
    width: 1140px;
    margin: auto;
    margin-top: 50px;
    position: relative;
}


.stepwizard-row.setup-panel {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    width: 700px;
    margin: auto;
}
.stepwizard-step {
    z-index: 2;
    max-width: 78px;
    text-align: center;
}
.stepwizard-step-img {
    width: 82px;
    height: 82px;
    padding: 2px;
    background-color: #fff;
    border: 2px solid #FD9802 ;
    border-radius: 50px;
    position: relative;

}
.stepwizard-row::after
{
    position: absolute;
    top: 40px;
    height: 1px;
    width: inherit;
    --tw-bg-opacity: 1;
    background-color: #FD9802;
    content: "";
}

.stepwizard-step.active .stepwizard-step-img
{
    background-color: #FD9802;
}
.stepwizard-step-img svg{
width: 47px;
height:47px;
position: absolute;
left: 16px;
top: 16px;
}


.stepwizard-step-img  svg path {
    fill:  #FD9802;
}

.elementor-stepper-widget .step
{
    display: none;
}

.elementor-stepper-widget .step.active
{
    display: block;
}


.stepwizard-step.step-1.active .stepwizard-step-img  svg path , .stepwizard-step.step-2.active .stepwizard-step-img  svg path {
    fill:  #fff;
}

.stepper-navigation {
    /* background-color: #FFF7F0; */
    display: flex;
    margin: 30px 0;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.stepper-navigation button.stepper-prev , .stepper-navigation button.stepper-next {
    border-radius: 7px;
    padding: 15px 70px;
}
.elementor-stepper-widget .step-title
{
    font-family: Milk And Honey;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    color: #F57145;
}


.elementor-stepper-widget .step-subtitle
{
    font-family: Milk And Honey;
    font-size: 46px ;
    font-weight: 400 ;
    line-height: 72px ;
    text-align: center ;
    color: #F57145;
}


.elementor-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.elementor-product-card {
    border: 1px solid #eee;
    padding: 5px;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

.elementor-product-card img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    border-radius: 5px;
}


li.selected .elementor-product-card {
   border-color: #F57145;
}

.elementor-product-card .product-card-title {
    font-size: 1.2em;
    margin: 10px 0;
}

.elementor-product-card  .product-info {
    text-align: start;
}

.elementor-product-card  .product-info .woocommerce-loop-product__title{
    font-size: 14px;
    margin: 0;
}

.elementor-product-card  .product-info .woocommerce-Price-amount.amount{
    font-size: 12px;
    margin: 0;
}

.elementor-product-card .product-card-price {
    font-size: 1.1em;
    color: #000;
    margin-bottom: 15px;
}

.elementor-product-card .color-options {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.elementor-product-card .color-options input[type="radio"] {
    display: none;
}

.elementor-product-card .color-options label {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    display: block;
}

.elementor-product-card .color-options input[type="radio"]:checked + label {
    border: 2px solid #000;
}


.color-options input[type="radio"] {
    display: none;
}

.color-options label {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ddd;
}

.color-options input[type="radio"]:checked + label {
    border: 2px solid #000;
}
.product-card-title
{
    font-family: Sofia Sans;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;

}


/* second step */
.step-2-content
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}
.step-2-col-1
{
    flex: 2;
}
.step-2-col-2
{
    flex: 1;
    /* opacity of background is 0.16 */
    border-radius: 10px;
    position: relative;
    width: 100%;
    background-color:#FFF7E1;

    
}

.step-2-col-2::before {
    content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
     background-image: url('../img/bg-cart.png');
      opacity: 0.16; /* Opacity for the red overlay */
      z-index: 1;
    background-size: cover;
    background-position: center;

}

.step-2-col-2 .content {
    position: relative;
    z-index: 2; /* Ensures content is above the overlay */
    padding: 10px;
    text-align: center;
  }

.step-2-col-2 .title-cart
{
    color: #FD9802;
    font-family: Milk And Honey;
    font-size: 36px;
    font-weight: 400;
    line-height: 42px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0px;

}


.step-2-col-2 .total-cart
{
    font-family: Sofia Sans;
    font-size: 24px;
    font-weight: 700;
    line-height: 42px;
    text-align: center;
    color: #494949;
}


.step-2-col-2  .progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 25px;
    overflow: hidden;
}

.step-2-col-2 .progress-bar {
    height: 15px;
    background-color: #FD9802;
    text-align: center;
    line-height: 30px;
    color: white;
    border-radius: 25px 0 0 25px;
    opacity: 1;
    z-index: 2;
}

.free-shipping {
    display: flex;
    gap: 20px;
    margin: 9px 0px;
}

.free-shipping-img {
    background: white;
    width: 56px;
    height: 56px;
    border-radius: 50px;
    padding: 11px;
}

span.free-shipping-label {
    height: inherit;
    padding: 16px 0px;
}


/* modal first step */

.custom-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.custom-modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
}

.custom-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#custom-modal-form , #custom-modal-form-card {
    display: flex;
    flex-direction: column;
}

#custom-modal-form input , 
#custom-modal-form-card input {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    border: #4B4B4B 1px solid;
}


 .cart-first-product , .cart-second-product{
    max-width: 220px;
    margin: auto;
    
}

.temp-cart-products {
    display: inline-table;
    padding-left: 0px !important;
    text-align: center;
}

li.cart-second-product {
    display: inline-block;
    width: 150px;
}

.temp-cart-products {
    width: -webkit-fill-available;
}

.temp-cart-products li {
    display: inline-block;
    width: 150px;
    margin: 0 1%;
    position: relative;
    background: white;
    border-radius: 10px;
    z-index: 11;
}


span.custom-modal-close {
    position: absolute;
    height: 28px;
    width: 28px;
    left: auto;
    right: -10px;
    bottom: auto;
    top: -10px;
    padding: 2px 7px 10px 7px;
    color: #4B4B4B;
    font-family: Times New Roman;
    font-weight: 100;
    font-size: 26px;
    line-height: 26px;
    border: 1px none #E3E3E3;
    border-radius: 42px;
    box-shadow: 0px 0px 0px 0px rgba(2, 2, 2, 0.23);
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.23);
    background-color: #f9f9f9ea;


}

.custom-modal-content {
position: relative;
border-radius:15px;
width:400px
}


#temp-cart-display .divider , #temp-cart-display-last .divider {
    background-color: #fd9802;
    margin: 3px 30px;
}

.woocommerce-js ul.products li.product .price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0;
}


.step-2-col-1 .product-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.quantitybox2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #FEDD8E;
    padding: 0px 5px;
    border-radius: 5px;
    z-index: 99;
}

.quantitybox2 .quantity2{
   flex: auto;
}

.quantitybox2 .quantity2 .quantity input.qty {
    width: 100%;
    padding: 0px;
    border-radius: 5px;
    border: 0px solid #ddd;
    text-align: center;
    min-height: 10px;
    height: 20px;
    background: transparent;

}

.value-button2.decrease, .value-button2.increase {
    display: inline-block;
    width: 30px;
    margin: 0px;
    cursor: pointer;
    text-align: center;
    line-height: 20px;
    font-size: 20px;
    color: #000;
    border-radius: 5px;
}


.value-button2.delete {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 3px 3px 0px 3px;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    z-index: 99;
}



/* Add a pseudo-element to create the orange background with opacity */
.step-products li {
    position: relative;
}

.step-products li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 165, 0, 0.6); /* Orange background with opacity */
    z-index: 5; /* Place it below the content */
    opacity: 0; /* Start with no visibility */
    transition: opacity 0.3s ease; /* Smooth transition */
    border-radius: 10px;
}

/* Show the background on hover */
.step-products li:hover::before {
    opacity: 1; /* Make the background visible */
}

/* Position the button in the center and hide it initially */



.step-products li .product-action{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Place it above the background */
}

.step-products li .add-to-temp-cart {
    background-color: #ff6600;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.step-products li  .details-product {
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}
/* Show the button on hover */
.step-products li:hover .product-action {
    display: flex; /* Show the button when hovering */
}

/* Ensure the image and content are on top of the background */
.step-products li .product-info {
    position: relative;
    z-index: 10; /* Keep them above the background */
}


a.details-product.quick-view-btn-stepper.inside.mst-wcqvfepb-hover:hover span{
    color: #f57145;
    text-decoration: underline;
}


.step-1-element-product .product-thumbnail
{
    position: relative;
}


.step-products li a.details-product.quick-view-btn-stepper.inside.mst-wcqvfepb-hover {

    /* position: absolute;
    top: 40%; */
    /* left: 44%; */

}
.step-2-col-1 .step-products li a.details-product.quick-view-btn-stepper.inside.mst-wcqvfepb-hover {

    position: absolute;
    top: 20%;
    left: 3%;

}
 


.step-header .progress-circle {
    width: 70px;
    height: 70px;
    position: relative;
  }
  .step-header .progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }
  .step-header  circle {
    fill: none;
    stroke-width: 4;
    stroke: #FCD396;
  }
  .step-header #progress-bar {
    stroke: #FD9802;
    stroke-dasharray: 190;
    stroke-dashoffset: 190;
    transition: stroke-dashoffset 0.3s;
  }
  .step-header #progress-text {
    position: absolute;
    top: 51%;
    left: 48%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #FD9802;
  }

  .step-header .progress-circle{
    display: none;
  }

  .product-info {
    padding: 0px 15px;
}

h5.step-1-error , h5.step-2-error  {
    color: #f57145;
    font-size: 18px;
    margin-top: 5px;
    display: none;
    margin: auto;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 30px;
}

h5.step-3-error {
    color: #f57145;
    font-size: 18px;
    margin-top: 5px;
    margin: auto;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 30px;
}

.custom-text-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* filter */
.filter-bar.step-2-filter-bar
{
    margin: 20px 0;
    background-color: #FFF7E1;
    padding: 15px;
}
div#filter-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    gap: 15px;
}

div#filter-bar .filter-bar-item.dropdown {
    position: relative;
    display: inline-block;
  }
  
  div#filter-bar .filter-bar-item .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
  }
  
  div#filter-bar .filter-bar-item.dropdown:hover .dropdown-content {
    display: block;
    z-index: 20;
  }

    /* Basic styling */
    .dropdown {
        margin: 20px;
        width: 200px;
    }

    .dropdown-title {
        padding: 10px;
        background-color: #007bff;
        color: #fff;
        cursor: pointer;
        border-radius: 5px;
    }

    .dropdown-content {
        display: none; /* Hide by default */
        padding: 10px;
        background-color: #f1f1f1;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-top: 5px;
        z-index: 20;
        
    }

    /* Optional: Add some animation */
    .dropdown-content.show {
        display: block;
    }


    .popover-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #f9f9f9;
        padding: 10px;
        box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
        border-radius: 4px;
        z-index: 1000;
    }
    
    .popover-container {
        position: relative;
        display: inline-block;
    }
    
    /* Optional: Add an arrow pointing to the button */
    .popover-content::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent #f9f9f9 transparent;
    }

    button.popover-btn {
        border: 1px solid #D8CEC6;
        border-radius: 10px;
        width: 200px;
        background: white;
        color: #242424;
        text-align: start;
    }

    .popover-content li {
        list-style: none;
    }
    
    .popover-content {
        width: max-content;
    }

    .price-range {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    input#price-min , input#price-max {
        width: 70px;
        border-radius: 5px;
        border: 1px solid #242424;
    }

    /* Hide the default checkbox */
.custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Styling for the custom checkbox */
.custom-checkbox .checkmark {
    display: inline-block;
    width: 20px;  /* Set your desired size */
    height: 20px;
    background-color: #ffffff;  /* Orange color */
    border-radius: 4px;         /* Optional: rounded corners */
    position: relative;
    cursor: pointer;
    border: 1px solid #FF9800;
}

/* Add the checkmark when the checkbox is checked */
.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 8px;
    height: 16px;
    border: solid #FF9800;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

span.woocommerce-Price-amount.amount {
    color: black;
}

.step-2-col-1 {
    max-height: 850px;
    overflow-y: scroll;
}
span.expend-cart , span.expend-cart-last {
    display: none;
    padding: 5px 15px;
    cursor: pointer;
}

ul#second-step-cart-products {
    margin: 0px;
}


.elementor-stepper-widget span.customization-text {
    position: absolute;
    bottom: 2px;
    left : 2px;
    background: #fff7e1;
    padding:3px;
    font-size:12px;
    border-radius:5px;
}

.elementor-stepper-widget .product-thumbnail {
    position: relative;
}

  /* for mobile */

    @media (max-width: 768px) {
        .step-header .progress-circle{
            display: block;
          }
        .step-header {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-start;
        }
        .stepwizard-row.setup-panel {
            display: none   ;
        }
        .elementor-product-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 2px;
        }

        .step-2-content {
            display: flex;
            flex-direction: column-reverse;
            justify-content: space-between;
            gap: 10px;
        }

        /* li.ast-article-single.desktop-align-left.tablet-align-left.mobile-align-left.product.type-product {
            max-width: fit-content;
        } */
        .elementor-stepper-widget
        {
            width: 100%;
            margin: auto;
            margin-top: 50px;
            position: relative;
        }

        .elementor-stepper-widget .step-title
        {
            font-size: 20px;
            line-height: 26px;
        }

        .elementor-stepper-widget .step-subtitle
        {
            font-size: 28px;
            line-height: 34px;
        }

        .woocommerce-js ul.products li.product, .woocommerce-page ul.products li.product {
            text-align: left;
            margin-bottom: 0.5em;
        }

        .stepper-navigation button.stepper-prev , .stepper-navigation button.stepper-next {
            border-radius: 7px;
            padding: 15px 50px;
        }

        .step-2-col-1 {
            max-height: 450px;
            overflow-y: scroll;
            max-width: 100%;
            overflow-x: hidden;
        }


    
        .woocommerce-js ul.products li.product, .woocommerce-page ul.products li.product {
            text-align: left;
            margin-bottom: 0.2em !important;
        }


        .header-cart {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }
        
        
        .step-2-col-2 .title-cart {
            color: #494949;
            font-family: Milk And Honey;
            font-size: 20px;
            font-weight: 400;
            line-height: 20px;
            margin-top: 10px;
            flex: 1;
            text-align: start;
        }
        
        .step-2-col-2 .total-cart {
            font-family: Sofia Sans;
            font-size: 20px;
            font-weight: 700;
            line-height: 35px;
            text-align: center;
            color: #494949;
        }
        

        span.expend-cart , span.expend-cart-last {
            display: block;
            padding: 5px 15px;
            cursor: pointer;
        }

        .rotate {
            transform: rotate(180deg);
        }

        #temp-cart-display, #temp-cart-display-last {
            display: none;
        }
        

        #temp-cart-display-last li.cart-second-product , #temp-cart-display li.cart-second-product {
            max-width: none;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            width: -webkit-fill-available;
        }
        
        #temp-cart-display-last .elementor-product-card , #temp-cart-display .elementor-product-card {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            width: -webkit-fill-available;
            height: 93px;
        }
        
        
        
        #temp-cart-display-last img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail  , #temp-cart-display  img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
            max-height: 81px;
            max-width: 100px;
        }
        
        
        #temp-cart-display-last  span.acoplw-badge-icon.acoplw-bsone.acoplwLeftAlign.acoplwPosTop , #temp-cart-display  span.acoplw-badge-icon.acoplw-bsone.acoplwLeftAlign.acoplwPosTop {
        display:none;
        }
        
        #temp-cart-display-last li.cart-second-product.product.type-product , #temp-cart-display li.cart-second-product.product.type-product{
        margin : 5px
        }
        
        #temp-cart-display-last .product-info , #temp-cart-display .product-info {
            flex: 1;
        }


        span.acoplw-badge-icon.acoplw-bsone.acoplwLeftAlign.acoplwPosTop.acoplw-custom-badge-2703 {
            padding: 0px;
        }
        
        span.acoplw-blockText {
            font-size: 12px;
        }
        
        span.acoplw-badge-icon.acoplw-bsone.acoplwLeftAlign.acoplwPosTop.acoplw-custom-badge-2703 {
            max-width: 100px;
        }
        
        img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
        max-width:160px
        }
        
        .filter-bar-item.popover-container {
            flex: 1;
        }
        
        button.popover-btn {
            max-width: 160px;
        }

        .temp-cart-products img.woocommerce-placeholder.wp-post-image {
            max-width: 82px;
        }
        
        .temp-cart-products {
            margin: 0px;
        }
        
      
        
    }

/* second version  */

.elementor-stepper-widget p.woocommerce-loop-product__nb_inside {
    font-size: 14px;
    min-height: 14px;
    height: 14px;
    margin-bottom: 10px;
    text-align: center;

}

.elementor-stepper-widget .product-info {
    text-align: center;
}

.elementor-stepper-widget h2.woocommerce-loop-product__title {
    text-align: center;
}

.elementor-stepper-widget span.price {
    text-align: center;
}

/* Container for the toast messages */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Style for each toast */
.toast {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.5s forwards, fadeOut 0.5s 6s forwards;
}

/* Toast success variant */
.toast.success {
    background-color: #4caf50;
}

/* Toast error variant */
.toast.error {
    background-color: #f44336;
}

/* Toast warning variant */
.toast.warning {
    background-color: #ff9800;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

label[for="custom_text"]
{
    font-size: 16px;
    font-weight: 600;
}
/* ===================================
   Masquer les contrôles à l'étape 3
   =================================== */

/* Masquer les boutons +/- et poubelle dans #temp-cart-display-last (étape 3) */
#temp-cart-display-last .quantitybox2,
#temp-cart-display-last .value-button2.delete {
    display: none !important;
}

/* Optionnel : Centrer le contenu des cartes produits à l'étape 3 */
#temp-cart-display-last .elementor-product-card {
    justify-content: flex-start;
}

/* Optionnel : Ajuster l'espacement si besoin */
#temp-cart-display-last .product-info {
    margin-right: 0;
}
