.wd_addon_item{
    border: 1px solid #CCC;
    border-radius: 15px;
    width: 31%;
    min-width: 250px;
    min-height: 125px;
    margin-left: 10px;
    margin-bottom: 5px;
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFF;
    flex: 0 0 auto;
}
.product_image_holder {
    width: 25%;
    margin-left: 14px;
}
.product_image_holder img {
    max-height: 70px;
}
img.cat_item_img {
    max-height: 85px;
}
.product_inf {
    width: 78%;
}
.wd_custom_addons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: auto;
    padding-bottom: 5px;
    border-radius: 0 !important;
    row-gap: 5px;
}
p.product-title, p.product-price {
    font-size: 15px;
    line-height: 16px;
    margin-bottom: 0;
    color: #000;
    max-height: 65px;
    overflow: hidden;
}
p.product-price{
    font-weight: 600;
    margin-top: 10px;
}
span.reg_price {
    font-size: 14px;
    color: #777;
}
p.wd_caculate {
    text-align: right;
}
.wd_caculators {
    display: flex;
    flex-direction: row;
    column-gap: 15px;
    margin-bottom: 20px;
}
.woocommerce div.product.elementor form.cart.variations_form .woocommerce-variation-add-to-cart,.woocommerce div.product.elementor form.cart:not(.grouped_form):not(.variations_form) {
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: block !important;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}
.wd-addons-tabs .tabs-nav {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.wd-product-addons h2 {
    font-size: 16px;
    font-weight: 700;
}
.wd-addons-tabs .tabs-nav li {
    margin-left: 10px;
    cursor: pointer;
}

.wd-addons-tabs .tabs-nav li a{
    text-decoration: none;
    color: #313335;
    font-size: 15px;
    font-weight: 700;
}
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
.wd_addon_item{
    position: relative;
}
.wd_addon_item .check_holder {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #FFF;
    font-weight: bold;
    background: #313335;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    display: none;
}
.wd_addon_item.selected .check_holder {
    display: block;
}
.wd_addon_item.selected{
    border: 1px solid #313335;
}
ul.tabs-nav li {
    padding: 5px 20px;
    padding-right: 24px;
    background: #FFF;
    border: 1px solid #CCC;
    position: relative;
    border-radius: 25px;
}
ul.tabs-nav li.active {
    border: 1px solid var(--e-global-color-primary);
}
.wd-addons-tabs .tabs-nav li.active a {
    color: var(--e-global-color-primary);
}
.wd_custom_addons::-webkit-scrollbar {
    height: 12px;
    border-radius: 10px;
}

.wd_custom_addons::-webkit-scrollbar-track {
    background: #EAEAEA;
    border-radius: 10px;
}

.wd_custom_addons::-webkit-scrollbar-thumb {
    background-color: #313335;
    border-radius: 10px;
    border: 3px solid #EAEAEA;
}

ul.tabs-nav li .tab-selection-count {
    position: absolute;
    top: 7px;
    right: 3px;
    font-size: 12px;
    color: #222222;
    background: #98D855;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    text-align: center;
    line-height: 18px;
    border-radius: 9px;
    pointer-events: none;
    font-weight: 700;
    display: none;
}
ul.tabs-nav li.has-selection .tab-selection-count {
    display: block;
}

/* Custom scrollbar styling for Firefox */
.wd_custom_addons {
    scrollbar-color: #313335 #EAEAEA;
    scrollbar-width: thin;
    scrollbar-width: 12px; /* Ensure it's the same size as WebKit */
    border-radius: 10px;
}
span#wd_extra_sub_totals, span#wd_extra_totals {
    font-weight: 700;
    color: #313335;
}
@media(max-width:786px){
    /* Ensure the parent ul element has a flex layout and allows horizontal scroll */
    .tabs-nav {
        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
        scrollbar-width: thin;
        flex-direction: row;
        gap: 5px;
    }

    /* Style for the scrollbar */
    .tabs-nav::-webkit-scrollbar {
        height: 8px;
    }

    .tabs-nav::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 10px;
    }

    .tabs-nav::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }

    .tabs-nav li {
        flex: 0 0 auto; 
        width: auto; 
        padding: 0 10px; 
        white-space: nowrap; 
    }
    .wd-addons-tabs .tabs-nav li {
        margin-right: 0;
        cursor: pointer;
        margin-left: 5px;
    }
    .wd_custom_addons{
        gap: 10px;
    }
    .wd_addon_item {
        width: 100%;
        min-width: auto;
        min-height: 88px;
        margin-left: 0;
        margin-bottom: 0;
        padding: 10px 10px;
        display: flex;
        background: #FFF;
        flex: 0 0 auto;
        align-items: center;
        flex-direction: row;
    }
p.product-title{
        font-size: 13px;
        font-weight: 600;
        line-height: 18px;
        /* max-height: fit-content; */
        max-height: 35px;
    }
.product_image_holder{
    width: 50%;
    margin-left: 0;
}
.product_inf {
    width: 100%;
}
.wd_custom_addons {
    max-height: 335px;
    overflow: auto;
}

}
p.special_price {
    font-size: 13px;
    font-weight: 600;
    color: #CD372C;
    margin-bottom: 5px;
}