.pack-offer-icon {
    width: 36px;
    height: 36px;
    line-height: 35px;
    font-weight: 600;
    font-size: 30px;
    color: #fff;
    background-color: var(--green-2);
    border-radius: 50%;
    text-align: center;
    flex: 0 0 36px;
    margin: 0 30px;
    box-shadow: 0px 0px 8px rgb(0 0 0 / 20%);
}

.pack-item-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: #fff;
    padding: 1rem 2rem 1rem 4rem;
}

#packs-accordion .pack-panel:not(:first-child) {
    margin-top: 20px;
}

.pack-item-wrapper .pack-product-name {
    max-width: 300px;
    height: 60px;
    line-height: 20px;
    overflow: hidden;
    font-size: 13px;
}

.pack-item-wrapper .pack-product-price {
    color: #db0a0a;
    font-weight: 700;
    padding: 5px 0;
}

.pack-item-wrapper .pack-product-price small {
    color: #333;
    font-weight: 400;
}

.thumbnail-wrapper img {
    max-width: 100px;
}

.pack-product-old-price {
    text-decoration: line-through;
    color: #636363;
    font-size: 13px;
    margin-top: 5px;
}

@media (max-width: 991px) {
    #packs-accordion .pack-item-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-color: #0561d2 #0561d2;
    }

    /* Pentru Chrome, Safari, Edge */
    .pack-item-wrapper::-webkit-scrollbar {
        height: 20px;
        background: #0561d2;
    }
    .pack-item-wrapper::-webkit-scrollbar-thumb {
        background: #0561d2;
        border-radius: 5px;
    }

    #packs-accordion .pack-item-wrapper .pack-item {
        padding-bottom: 20px;
        min-width: 150px;
    }

    #packs-accordion .pack-item-wrapper .result-pack {
        min-width: 240px;
    }

    .pack-offer-icon {
        margin: 0 15px;
    }
}
#packs-accordion .product__add-to-cart__container {
    width: 200px;
    margin: 0px auto;
}

.pack-item {
    width: 200px;
}

.pack-ribbon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-2);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    border-radius: 5px 0 0 5px;
    z-index: 5;
    pointer-events: none;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    letter-spacing: 0.5px;
    box-shadow: 4px 0px 8px rgb(0 0 0 / 17%);
    text-align: center;
    padding: 0;
}

#viewMoreBtn,
#viewLessBtn {
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 0.8rem;
}

.thumbnail-wrapper {
    display: inline-flex;
    margin: 0 auto;
    align-items: center;
}

.thumbnail-wrapper .qty-pack {
    font-size: 1.4rem;
}

.result-pack {
    border-left: 1px dashed #0c8e21fc;
    padding-left: 30px;
    width: 240px;
}
#view-more-packs{
    display:none;
}

#vpp-all-packs-modal {
    background-color: rgba(0, 0, 0, 0.5);
}

#vpp-all-packs-modal.modal.show {
    display: block !important;
}


.modal-backdrop {
    background-color: #000 !important;
}
.modal-backdrop.show {
    opacity: 0.5 !important;
}


#vpp-all-packs-modal .modal-dialog {
    position: relative;
    z-index: 1;
}

/* ============================================================
   Modal scroll chaining fix by <Sz>
   ============================================================
*/

#vpp-all-packs-modal .modal-body,
#vpp-all-packs-modal .modal-dialog-scrollable .modal-content {
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
}


body:has(#vpp-all-packs-modal.show) {
    overflow: hidden !important;
}
@media (max-width: 767px) {
    
    #packs-accordion .pack-item-wrapper .result-pack,
    #packs-accordion-modal .pack-item-wrapper .result-pack {
        order: -2;
        border-left: none;
        border-right: 1px dashed #0c8e21fc;
        padding-left: 0;
        padding-right: 30px;
    }

    #packs-accordion .pack-item-wrapper .pack-offer-icon:has(+ .result-pack),
    #packs-accordion-modal .pack-item-wrapper .pack-offer-icon:has(+ .result-pack) {
        order: -1;
    }
}