/* Make the cart icon container a positioning context */
#cart_icon {
    position: relative;
    margin-left: 10px;
    margin-top: 2px;
    font-size: 25px;
}

/* Or target the anchor tag if that's the container */
#cart_icon > a.profile-setting-box {
    position: relative;
}

.desktop-margin-padding{
    margin: 8px !important;
    padding: 5px 0 0 0 !important;
    font-size: 20px;
}

/* Position the badge in top-right corner */
#cart_icon .notify-badge, .in-line-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 0;
    display: flex;
    width: 15px;
    height: 15px;
    font-size: 10px !important;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 10;      /* Ensure it appears above other elements */
}

.mobile-version{
    display: none;
}

@media (min-width: 769px){
    .cache-badge{
        height: 15px;
        top: 0;
    }
}

@media screen and (max-width: 768px) {
    .navbar-right{
        flex-direction: column;
        align-items:flex-start;
    }
    .fa-shopping-cart {
        font-size: 20px;
        margin-right: 5vw;
        margin-top: 0;
    }

    .notify-badge {
        top: -5px !important;
        right: 10px !important;
    }

    .side-menu{
        top: 0 !important;
        left: 70px;
    }

    .desktop-version{
        display: none !important;
    }

    .mobile-version{
        display: unset !important;
    }

    .in-line-badge{
        position: unset;
        color: white;
        background-color: #4d8ecb;
        padding: 0 8px;
        border-radius: 50px;
        margin-left: 5px;
        display: unset;
    }

    .desktop-margin-padding{
        margin: 0 !important;
        font-size: 15px;
    }
}

.padding-10-right{
    padding-right: 10px;
}