.vsp-emoji-picker {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
    width: max-content;
}

.vsp-emoji-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    padding: 0;
    border: 1px solid #34343b;
    border-radius: 6px;
    background: #17171b;
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.vsp-emoji-toggle:hover,
.vsp-emoji-toggle:focus {
    background: #202026;
    border-color: #54545e;
    transform: translateY(-1px);
    outline: none;
}

.vsp-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 10030;
    display: grid;
    grid-template-columns: repeat(8, 34px);
    gap: 4px;
    width: max-content;
    max-width: min(304px, calc(100vw - 32px));
    max-height: 220px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #34343b;
    border-radius: 8px;
    background: #111114;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.vsp-emoji-panel[hidden] {
    display: none !important;
}

.vsp-emoji-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.vsp-emoji-option:hover,
.vsp-emoji-option:focus {
    background: #29292f;
    outline: none;
}

@media (max-width: 520px) {
    .vsp-emoji-panel {
        grid-template-columns: repeat(7, 34px);
        max-width: calc(100vw - 28px);
    }
}
