.emoji-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.emoji-picker-container {
    display: none;
    position: relative;
    margin-top: 10px !important;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 10px;
    box-sizing: border-box;
}

.emoji-picker-container.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: space-between;
}

.emoji-item {
    cursor: pointer;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.5rem;
    padding: 4px 0;
    transition: all 0.2s ease;
    flex: 0 0 calc(14.28% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.emoji-item:hover {
    background: #fff0ea;
    transform: scale(1.1);
}

/* Скроллбар для сучасного вигляду */
.emoji-picker-container::-webkit-scrollbar {
    width: 6px;
}
.emoji-picker-container::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

