/**
 * RL Wishlist CSS - PS9 compatible
 * @author Roilab
 */

.rlwishlist_top .link_wishlist {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customer_wishlist {
    padding: 0;
    background-color: var(--background);
}
.customer_wishlist h1 {
    margin-bottom: 32px;
}
.customer_wishlist h1 svg,
.customer_wishlist h1 i {
    margin-right: 8px;
}
.wishlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.wishlist_product {
    width: 25%;
    position: relative;
}
.wishlist_product .delete_wishlist,
.rlwishlist-container .wishlist_cart .delete_wishlist {
    position: absolute;
    top: 8px;
    right: 22px;
    z-index: 99;
    width: 36px;
    height: 36px;
    background-color: #FFF;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px #0000004a;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wishlist_product .delete_wishlist svg,
.rlwishlist-container .wishlist_cart .delete_wishlist svg{
    width: 14px;
}
.wishlist_product .product-miniature {
    margin: 0 0.8125rem;
}
.miniature_wishlist_custom .rlwishlist_hearth {
    display: none;
}
@media (max-width: 991px) {
    .wishlist_product {
        width: 50%;
    }
}
@media (max-width: 767px) {
    .wishlist_product {
        width: 100%;
    }
    .wishlist {
        margin-left: 0;
        margin-right: 0;
        background-color: var(--background);
    }
}

.rlwishlist_hearth .fav_list {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 97;
    width: 36px;
    height: 36px;
    background-color: #FFF;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 2px 2px 4px 0 rgb(0 0 0 / 20%);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.rlwishlist_hearth .fav_list svg path {
    fill: var(--color_font);
}
.rlwishlist_hearth .fav_list.active svg path,
.rlwishlist_hearth .fav_list:hover svg path {
    fill: #C81D25;
}
.rlwishlist_hearth .fav_list.hidden {
    display: none;
}
.rlwishlist_product {
    margin-top: 8px;
}
.rlwishlist_product .custom-checkbox label {
    margin-bottom: 0;
}

.product-description .rlwishlist_hearth {
    position: absolute;
    top: 0;
    right: 0;
}

/* Modal overlay for vanilla JS modal */
#WishlistModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.5);
}
#WishlistModal .modal-dialog {
    position: relative;
    margin: 10% auto;
    max-width: 500px;
}
#WishlistModal .modal-content {
    background-color: #fff;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}
#WishlistModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}
#WishlistModal .modal-body {
    padding: 15px;
}
#WishlistModal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
