.rds-iconbox-overlay.active {
    display: block;
}

.rds-iconbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 9999;
}

.rds-iconbox-wrapper {
    --icon-size: 26px;

    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;    
    padding: 0;
    min-width: 330px;
    width: calc(var(--icon-size) * 16);
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.rds-iconbox-wrapper .rds-iconbox-header {
    display: flex;
    background-color: white;
    padding: 0 12px;
    justify-content:space-between ;
    align-items: center;
}

.rds-iconbox-wrapper .rds-dashicons-search {
    display: flex;
    margin: 0 4px;
}

.rds-iconbox-wrapper .rds-icon-search-text{
    margin: 8px 6px;
    width: 100%;
}    

.rds-iconbox-wrapper .rds-iconbox-content {
    border-top: thin solid rgb(195, 196, 199, 0.75);
    padding-top: 4px;
}    

.rds-iconbox-wrapper .rds-dashicons-wrapper{
    height: calc(var(--icon-size)* 16);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow-y: scroll;

    button {
        flex-basis: calc(100% / 8);
        width: 100%;
        aspect-ratio: 1;
        color: #555d66;
        border: none;
        background-color: unset;
        border-radius: 3px;
    }
    
    button:hover, button:focus {
        color: white;
        outline-color: #2271b1;
        cursor: pointer;
    }
    button:focus {
        background-color: #2271b1;
    }           
    button:hover {
        background-color: #488fc9;
    }    
    button::before{
        font-size: var(--icon-size);
        width: calc(var(--icon-size)+4px);
        height: calc(var(--icon-size)+4px);
    }               
}

@media screen and (max-width: 782px) {
    .rds-iconbox-wrapper {
        --icon-size: 20px;
    }
}
