/* ORX Reactions v1.2 */
.orx-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 8px;
    padding: 14px 0 6px;
    border-top: 1px solid #e0e0e0;
    font-family: inherit;
}

/* ── Main button ──────────────────────────────────── */
.orx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: background .15s, transform .1s;
    user-select: none;
    font-family: inherit;
    line-height: 1;
}
.orx-btn:hover  { background: #f0f2f5; }
.orx-btn:active { transform: scale(.97); }

.orx-btn.orx-like  { background: #E8F0FE; color: #1877F2; border-color: #a8c4f5; }
.orx-btn.orx-love  { background: #FDE8EE; color: #E0265A; border-color: #f4a0ba; }
.orx-btn.orx-haha,
.orx-btn.orx-wow,
.orx-btn.orx-sad   { background: #FEF9E0; color: #C97C0D; border-color: #f5d680; }
.orx-btn.orx-angry { background: #FDECEC; color: #D9321E; border-color: #f5aaaa; }

.orx-icon  { font-size: 17px; line-height: 1; }
.orx-label { font-size: 12px; }

/* ── Emoji picker popup ───────────────────────────── */
.orx-picker {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 5px 8px;
    display: -webkit-flex;
    display: flex;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    -webkit-transform: scale(.85) translateY(5px);
    transform: scale(.85) translateY(5px);
    -webkit-transform-origin: bottom left;
    transform-origin: bottom left;
    -webkit-transition: opacity .15s, -webkit-transform .15s;
    transition: opacity .15s, transform .15s;
    z-index: 9999;
    box-shadow: 0 3px 14px rgba(0,0,0,.13);
    white-space: nowrap;
}
.orx-picker.open {
    opacity: 1;
    pointer-events: all;
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
}

/* ── Individual emoji buttons ─────────────────────── */
.orx-opt {
    font-size: 25px;
    cursor: pointer;
    padding: 5px;
    border: none;
    background: transparent;
    border-radius: 6px;
    position: relative;
    -webkit-transition: -webkit-transform .12s;
    transition: transform .12s;
    display: -webkit-inline-flex;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.orx-opt:hover { -webkit-transform: scale(1.38) translateY(-4px); transform: scale(1.38) translateY(-4px); }

.orx-tip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    background: #222;
    color: #fff;
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity .1s;
    transition: opacity .1s;
    font-family: inherit;
}
.orx-opt:hover .orx-tip { opacity: 1; }

/* ── Reaction count badges ────────────────────────── */
.orx-badges {
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.orx-badge {
    display: -webkit-inline-flex;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    font-family: inherit;
}
