.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    /* Allow buttons to wrap when necessary */
    gap: 10px;
    /* Space between buttons */
}

.reaction-buttons .emoji-btn {
    background-color: transparent;
    border: 2px solid transparent;
    /* Default: no border */
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: 6px;
    color: white;
    /* Default color */
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto; /* ****** changed from flex-grow:1 to fixed width */
    max-width: none; /* ****** removed max-width constraint */
    min-width: 0; /* ****** removed unnecessary min-width */
    border: none;
    outline: none;
    white-space: nowrap; /* ****** prevents emoji and number from wrapping */
}

.reaction-buttons .emoji-btn:hover {
    background-color: #f1f1f1;
    border-color: #ddd;
}

.reaction-buttons .emoji-btn.active {
    background-color: #8a3d8f;
    /* Purple background */
    color: white;
    /* White text */
    border-color: #8a3d8f;
    /* Purple border */
}

.reaction-buttons .emoji-btn.inactive {
    border-color: transparent;
    /* Inactive buttons have no border */
}

.reaction-buttons .emoji-btn:focus {
    outline: none;
    box-shadow: none;
}

.count-badge {
    background-color: #8a3d8f;
    /* Purple background */
    color: white;
    /* White text */
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.8em;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
}

