.selected {
    background-color: #0073aa;
    color: #fff;
    border: 1px solid #005177;
}

.parent-element {
    position: relative;
}

.bricks-button i {
    display: none;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
    0% { transform: rotate(0deg); }
}


.filter-button {
    position: relative;
}

.filter-button .close-icon {
    position: absolute;
    top: -5px; /* Move it slightly above the button */
    right: -5px; /* Move it slightly to the right of the button */
    width: 15px; /* Adjust size for better visibility */
    height: 15px;
    background-color: grey;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow for better visibility */
}

.filter-button.selected .close-icon {
    display: block; /* Show when the button is selected */
}