/*
 * BRT Wishlist — Standalone CSS
 * Identical to the bricks-theme plugin's Wishlist.css.
 * Customise via CSS variables or override these rules in your theme.
 */

.brtheme-wishlist-button {
    cursor: pointer;
}

/* Loading spinner */
.brtheme-wishlist-button.loading {
    position: relative;
}

@keyframes brt-wishlist-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.brtheme-wishlist-button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: brt-wishlist-spin 0.8s linear infinite;
    z-index: 2;
}

/* Icon visibility toggling */
.brtheme-wishlist-button.added .brtheme-wishlist-icon.default-icon {
    display: none;
}

.brtheme-wishlist-button:not(.added) .brtheme-wishlist-icon.active-icon {
    display: none;
}
