
.custom-smiley-picker {
    width: 100%;
    margin: 5px 0;
    box-sizing: border-box;
}

.smiley-toggle {
    background: #3A3C2F;
    color: #FFFFFF;
    border: 1px solid #BBBB97;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
}

.smiley-panel {
    background: #FFFFFF;
    border: 1px solid #BBBB97;
    border-radius: 5px;
    padding: 8px;
    margin-top: 5px;
}

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

.smiley-search {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    margin-bottom: 8px;
    border: 1px solid #BBBB97;
    border-radius: 4px;
}

.smiley-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill, minmax(38px, 1fr)
    );
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-color: #3A3C2F #BBBB97;
}

.smiley-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px;
    min-height: 38px;
    cursor: pointer;
}

.smiley-item:hover {
    background: #BBBB97;
    border-color: #3A3C2F;
}

.smiley-item img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.chat-custom-smiley {
    max-width: 80px;
    max-height: 60px;
    vertical-align: middle;
}
