.add-to-wishlist-before_image .yith-wcwl-add-to-wishlist {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
}


/* Wishlist Tab */
/* Wishlist bar styling */
/* Wishlist bar styling */
.wishlist-bar {
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 370px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    transition: opacity 0.3 ease; /* Smooth transition for hiding */
}

.wishlist-toggle {
    background-color: #40A9FF;
    text-align: center;
    padding: 5px;
}

.wishlist-toggle button {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #000;
}
.wishlist-toggle button#toggle-button:hover {
    background-color: transparent;
    color: #000;
}
.wishlist-content {
    display: none;
    padding: 10px;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    padding: 10px 15px;
    margin: 0 auto;
    border-bottom: 1px solid #ccc;
}

.wishlist-header .close-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    padding: 0;
    color: #000;
}

.wishlist-items .wishlist-content-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-height: 475px;
    overflow-y: auto;
}

.wishlist-item img {
    width: 100%;
    border-radius: 8px;
}


/* Wishlist bar expanded state */
.wishlist-bar.expanded .wishlist-content {
    display: block;
    padding: 0;
}

.wishlist-item .p-image {
    display: block;
    max-width: 146px;
    background-color: #f4f4f4;
    overflow: hidden;
    max-height: 146px;
}
.wishlist-item .p-image img {
    width: 146px;
    background-color: #f4f4f4;
    overflow: hidden;
    height: 146px;
}
.wishlist-item {
    position: relative;
    text-align: center;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.wishlist-item  button.remove_product {
    border: 0;
    position: absolute;
    bottom: 2px;
    right: 10px;
    padding: 0px;
    display: flex;
    width: 24px;
    height: 24px;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* width */
.wishlist-items::-webkit-scrollbar {
  width: 8px;
}

/* Track */
.wishlist-items::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #ccc; 
  border-radius: 10px;
  background: #ededed; 
}
 
/* Handle */
.wishlist-items::-webkit-scrollbar-thumb {
  background: #0B95E5; 
  border-radius: 10px;
}

/* Handle on hover */
.wishlist-items::-webkit-scrollbar-thumb:hover {
  background: #0b95e58c; 
}

@media (max-width: 480px) {
    .wishlist-bar {
        width: 320px;
        right: 10px;
    }
    .wishlist-items {
        gap: 15px;
    }
    .wishlist-item .p-image {
        max-width: 135px;
        max-height: 135px;
    }
    .wishlist-item .p-image img {
        width: 132px;
        overflow: hidden;
        height: 132px;
    }
    .wishlist-item button.remove_product {
        bottom: 5px;
        right: 5px;
    }
}

.wishlist-items .whislist-page-view{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Temporarily hide yith wishlist page table coulumns and its rows */
table.shop_table.wishlist_table.wishlist_view.traditional td:nth-child(5), 
table.shop_table.wishlist_table.wishlist_view.traditional th:nth-child(5),
table.shop_table.wishlist_table.wishlist_view.traditional td:nth-child(6), 
table.shop_table.wishlist_table.wishlist_view.traditional th:nth-child(6) {
    display: none;
}

.wishlist-items.empty-wishlist{
    margin: 20px 0px;
}

.wishlist-items{
    margin: 20px;
}