.zfg-reactions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    border: 0;
    background: transparent;
}

.zfg-reaction {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.zfg-reaction:hover {
    transform: scale(1.25);
}

.zfg-reaction:focus-visible {
    border-radius: 50%;
    outline: 2px solid #2271b1;
    outline-offset: 4px;
}

.zfg-reaction:disabled {
    cursor: progress;
    opacity: 0.7;
}

.zfg-reaction-icon,
.zfg-emoji-image {
    display: block;
    width: 48px;
    height: 48px;
}

.zfg-reaction-badge {
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 2;
    min-width: 30px;
    height: 20px;
    padding: 0 8px;
    border-radius: 3px;
    background-color: #ff0015;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
}

.zfg-reaction-badge:after {
    position: absolute;
    bottom: -4px;
    left: 50%;
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid #ff0015;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
    transform: translateX(-50%);
}

.zfg-reaction-badge.is-empty {
    display: none;
}

.zfg-reaction.is-active {
    transform: scale(1.2);
}

.zfg-reaction.is-active .zfg-emoji-image {
    filter: drop-shadow(0 0 0.35rem rgba(255, 0, 21, 0.35));
    transform: translateY(-1px);
}

.zfg-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
    .zfg-reaction {
        transition: none;
    }

    .zfg-reaction:hover,
    .zfg-reaction.is-active .zfg-emoji-image {
        transform: none;
    }
}
