.wallex-reactions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    direction: rtl;         
    justify-content: flex-start;
}

.wallex-reaction-item {
    direction: ltr;             
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;       
    background-color: #f4f4f4;
    font-size: 16px;
    line-height: 1;
    position: relative;      
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.wallex-reaction-item:hover {
    background-color: #ececec;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}

.wallex-reaction-item.wallex-reaction-active {
    background-color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 4px 10px rgba(0,0,0,0.08);
}

.wallex-reaction-emoji {
    font-size: 20px;
}
.wallex-reaction-count {
    font-size: 16px;
}

@media (max-width: 768px) {
    .wallex-reactions-wrapper {
        justify-content: center;
        gap: 10px;
    }

    .wallex-reaction-item {
        padding: 8px 16px;
        font-size: 14px;
    }

    .wallex-reaction-emoji {
        font-size: 18px;
    }
}

.wallex-reaction-item.wallex-reaction-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    border-radius: inherit;
    pointer-events: none;
}

.wallex-reaction-item.wallex-reaction-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: rgba(0,0,0,0.55);
    animation: wallex-spin .6s linear infinite;
    pointer-events: none;
}

@keyframes wallex-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
