/*
 * Custom Wishlist Styles for Homepage
 */

/* Wishlist button wrapper */
.bgn-wishlist-btn .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.bgn-wishlist-btn .yith-wcwl-add-to-wishlist-button--anchor {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 9999px !important;
    background-color: white !important;
    color: black !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.bgn-wishlist-btn .yith-wcwl-add-to-wishlist-button--anchor:hover {
    transform: scale(1.1);
}

/* Styling for the heart icon itself */
.bgn-wishlist-btn .yith-wcwl-icon {
    width: 12px;
    height: 12px;
    line-height: 1;
}

/* When product is in wishlist (added) */
.bgn-wishlist-btn .yith-wcwl-add-to-wishlist-button--anchor.yith-wcwl-wishlistaddedbrowse,
.bgn-wishlist-btn .yith-wcwl-add-to-wishlist-button--anchor.yith-wcwl-wishlistexistsbrowse {
    background-color: black !important;
    color: white !important;
}

/* Hide the "Browse Wishlist" text and any other text */
.bgn-wishlist-btn .feedback,
.bgn-wishlist-btn .yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

/* Wishlist Toast Notification */
#bgn-wishlist-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937; /* bg-gray-800 */
    color: white;
    padding: 12px 24px;
    border-radius: 9999px; /* rounded-full */
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
}

#bgn-wishlist-toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

/* Wishlist Login Modal Styles */
#bgn-wishlist-login-modal.show {
    opacity: 1;
    pointer-events: auto;
}

#bgn-wishlist-login-modal.show [data-bgn-modal-panel] {
    transform: scale(1);
}
