.wd_addon_item{
    border: 1px solid #CCC;
    border-radius: 0;
    width: 24%;
    min-width: 250px;
    min-height: 100px;
    margin-left: 10px;
    margin-bottom: 5px;
    padding: 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: 15px;
}
.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;
    margin-top: 2px;
}
.wd-product-addons h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.wd-addons-tabs .tabs-nav li {
    margin-left: 10px;
    cursor: pointer;
}

.wd-addons-tabs .tabs-nav li a{
    text-decoration: none;
    color: var(--e-global-color-primary);
    font-size: 16px;
    font-weight: 700;
    display: block;
    padding: 5px 20px;
    padding-right: 24px;
}
.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: var(--e-global-color-primary);
    font-weight: bold;
    background: #F8C638;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    display: none;
}
.wd_addon_item.selected .check_holder {
    display: block;
}
.wd_addon_item.selected{
    border: 1px solid #313335;
}
ul.tabs-nav li {
    background: #FFF;
    position: relative;
}
ul.tabs-nav li.active {
    border-bottom: 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: 6px;
    right: 3px;
    font-size: 12px;
    color: #1A264E;
    background: #F8C638;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    text-align: center;
    line-height: 18px;
    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;
}

/* CART SHORTCODE - STRIP LIKE IMAGE */
.wd-cart-addons-strip{
  margin: 18px 0;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.wd-cart-addons-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}

.wd-cart-addons-title{
  font-weight: 800;
  font-size: 16px;
}

.wd-cart-addons-track{
  display:flex;
  gap: 12px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  direction: rtl;
}

.wd-cart-addons-track::-webkit-scrollbar{
  height: 6px;
}
.wd-cart-addons-track::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.12);
  border-radius: 999px;
}
.wd-cart-addons-track::-webkit-scrollbar-track{
  background: rgba(0,0,0,.04);
  border-radius: 999px;
}

/* Card = vertical tile */
.wd-cart-addon-card{
  scroll-snap-align: start;
  min-width: 170px;
  max-width: 170px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  padding: 10px;
  display:flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* Image box on top */
.wd-cart-addon-img{
  width: 100%;
  height: 110px;
  border-radius: 12px;
  background: #FFF;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.wd-cart-addon-img img {
    height: 110px !important;
}

.wd-cart-addon-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

/* Text area */
.wd-cart-addon-meta{
  flex: 1;
  min-width:0;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.wd-cart-addon-name{
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wd-cart-addon-price{
  font-size: 13px;
  font-weight: 700;
  opacity: .9;
}
.wd-cart-addon-price del {
    display: block;
    color: #0B1E3A;
    opacity: 1;
    font-size: 15px;
    font-weight: 400;
    text-decoration: line-through !important;
}
.wd-cart-addon-price ins {
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
.wd-cart-addon-price{
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 5px;
}

/* CTA */
.wd-cart-addon-btn{
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  background: #0B1E3A;
  color: #fff;
  transition: transform .12s ease, opacity .12s ease;
}

.wd-cart-addon-btn:active{
  transform: scale(.98);
}

.wd-cart-addon-card.is-added{
  border-color: rgba(30,125,77,.35);
}

.wd-cart-addon-card.is-added .wd-cart-addon-btn{
  background: #1E7D4D;
}

.single-product .wd-cart-addon-price .eilat-price {
    font-size: 13px;
    background: #EFEFEF;
    padding: 5px 10px;
    color: #17264E;
    width: 100%;
    margin: 0;
    text-align: center;
}
