/* Algenib Wishlist CSS */

/* Button Base */
.alg-add-to-wishlist {
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 5px;
    color: var(--alg-btn-color, inherit);
}

.alg-add-to-wishlist:hover {
    color: var(--alg-btn-hover-color, #ff4d4d);
}

.alg-add-to-wishlist.active {
    color: var(--alg-btn-active-color, #ff4d4d);
}

/* Icon Styling */
.alg-add-to-wishlist svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

/* Active State (Added) */
.alg-add-to-wishlist.active svg {
    fill: currentColor;
    stroke: currentColor;
}

/* Counter Link */
.alg-wishlist-counter-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

/* Icon wrapper — badge positions relative to this */
.ffla-count-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Doofinder Button Specifics */
.wbw-doofinder-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.wbw-doofinder-btn:hover {
    color: #ff4d4d;
}

.wbw-doofinder-btn.active {
    color: #ff4d4d;
}

.wbw-doofinder-btn.active svg {
    fill: currentColor;
}

.wbw-doofinder-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

/* Counter Badge */
.alg-wishlist-count {
    align-items: center;
    background-color: #ff4d4d;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(50%, -50%);
    width: 18px;
    pointer-events: none;
}

.alg-wishlist-count.hidden {
    display: none;
}