.user_tab:hover .user_details {
    visibility: visible;
    opacity: 1;
    top: 80%;
}

.user_tab .user_details {
    right: -14px;
}

.user_tab {
    position: relative;
}

.user_tab .user_details {
    position: absolute;
    z-index: 11;
    background-color: #fff;
    width: 150px;
    right: 0px;
    visibility: hidden;
    opacity: 0;
    padding: 12px;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
    transition: ease all 0.3s;
    top: calc(100% - 30px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.user_tab .user_details:after {
    content: '';
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #fff;
    position: absolute;
    top: -12px;
    right: 32px;
    width: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cart_details {
    max-height: 400px;
    /* Set the maximum height */
    overflow-y: auto;
    /* Enable vertical scrollbar when needed */
    padding-right: 10px;
    /* Optional: give room for scrollbar */
    width: 326px !important;
}

.cart_list {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.select_cart {
    flex: 1;
}

.select_img {
    display: flex;
    align-items: center;
}

.select_img img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.close_btn {
    cursor: pointer;
}

.sub_total,
.cart_btn {
    background: #fff;
    padding: 10px;
    /*position: sticky;*/
    bottom: 0;
    z-index: 1;
}

.user_info {
    position: absolute;
    z-index: 11;
    background-color: #fff;
    width: 100px;
    right: 0px;
    visibility: hidden;
    opacity: 0;
    padding: 12px 20px;
    transition: all 0.5s;
    transition: ease all 0.3s;
    top: calc(100% - 30px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.login-container:hover .user_info {
    visibility: visible !important;
    opacity: 1 !important;
    transition: ease all 0.3s;
    transition: all 0.5s;
    top: 84%;
    left: 7%;
}

.user_info a {
    padding: 0px 0px !important;
}
.product_details{
    overflow: auto;
    height: 500px;
}
.toast{
    opacity: 1 !important;
}
