﻿.favorite-icon {
    width: 34px;
    height: 41px;
    margin-left: 15px;
    background-image: url('//media.emailer-images.com/image/upload/v1740593382/FAVORITE-ICON_mdhrih.svg');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    transition: background-image 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .favorite-icon:hover {
        background-image: url('//media.emailer-images.com/image/upload/v1740593515/FAVORITE-ICON-hover_kwwfps.svg');
    }

    .favorite-icon.selected {
        background-image: url('//media.emailer-images.com/image/upload/v1739542434/Asset_15_mugy1v.svg');
    }

.favorite-icon-slide {
    width: 21px;
    height: 24px;
    margin-left: 15px;
    background-image: url('//media.emailer-images.com/image/upload/v1740593382/FAVORITE-ICON_mdhrih.svg');
    background-size: cover;
    display: inline-block;
    transition: background-image 0.3s ease;
    cursor: pointer;
    position: absolute;
    right:10px;
    top:10px;
}

    .favorite-icon-slide:hover {
        background-image: url('//media.emailer-images.com/image/upload/v1740593515/FAVORITE-ICON-hover_kwwfps.svg');
    }

    .favorite-icon-slide.selected {
        background-image: url('//media.emailer-images.com/image/upload/v1739542434/Asset_15_mugy1v.svg');
    }

.tooltip-fav {
    position: relative;
    bottom: 0;
    left: 110%;
    background-color: #fff;
    color: #111;
    box-shadow: 2px 2px 2px 2px #888888;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 2px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.display-flex-fav-p {
    display: flex;
    flex-direction: column;
}

.popup-img {
    width: 350px;
}

.favorite-icon:hover .tooltip-fav {
    opacity: 1;
    visibility: visible;
}

/* Floating notification styles */
.favorite-notification {
    position: fixed;
    bottom: 50px;
    left: 40%;
    background: #fff;
    color: #111;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1000;
}

    .favorite-notification.show {
        opacity: 1;
        visibility: visible;
    }

    .favorite-notification img {
        width: 24px;
        height: 28px;
    }

    .favorite-notification a {
        text-decoration: underline;
        color: #007bff;
        font-weight: bold;
    }

/* Remove Confirmation Popup */
.remove-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #00000057;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: none;
    text-align: center;
    z-index: 9999;
}

.favourite-removalpopup {
    position: absolute;
    width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remove-popup.show {
    display: block;
}

.remove-popup .popup-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.remove-popup .close-btn {
    cursor: pointer;
    font-size: 30px;
    border: none;
    background: none;
    line-height: 20px;
}

.remove-popup img {
    width: 100%;
    height: 100%;
    margin-top: 10px;
    max-height: 100px;
}

.remove-popup p {
    font-size: 18px;
    font-weight: 500;
    margin: 15px 0;
    line-height: 20px;
    color: #000;
}

.pad-5 {
    padding: 5px;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

    .popup-buttons button {
        border: none;
        padding: 8px 16px;
        cursor: pointer;
        border-radius: 4px;
        font-size: 14px;
        margin: 5px;
        min-width: 150px;
    }

.keep-btn {
    color: #000;
    background: #fff;
    border: 1px solid #bbb !important;
}

.remove-btn {
    background: #d9534f;
    color: white;
}

@media (max-width: 786px) {

    .favorite-icon {
        width: 30px;
        height: 35px;
        margin-left: 15px;
        background-image: url('//media.emailer-images.com/image/upload/v1740593382/FAVORITE-ICON_mdhrih.svg');
        background-size: cover;
        display: inline-block;
        transition: background-image 0.3s ease;
        cursor: pointer;
        position: absolute;
    }

    .favorite-icon-slide {
        width: 21px;
        height: 24px;
        top: 7px;
        right: 7px;
        margin-left: 15px;
        background-image: url('//media.emailer-images.com/image/upload/v1740593382/FAVORITE-ICON_mdhrih.svg');
        background-size: cover;
        display: inline-block;
        transition: background-image 0.3s ease;
        cursor: pointer;
        position: absolute;
    }

    .fav-text-box {
        padding: 8px;
    }


    .remove-popup p {
        font-size: 16px;
        margin: 15px 0;
        line-height: 20px;
        color: #111;
        font-weight: 600;
        width: 100%;
        background-color: #fff;
    }

    .brand-box-img {
        padding-left: 5px;
    }

    .popup-img {
        width: 160px;
        margin: auto;
    }

    .display-flex-fav-p {
        display: block;
    }

    .favorite-notification {
        left: 18%;
        bottom: 80px;
    }

    .tooltip-fav {
        display: none;
    }

    .no-fav {
        display: none;
    }
}
