#zm-trade-barrage {
    position: fixed;
    right: max(var(--zm-tb-right, 20px), 96px);
    bottom: var(--zm-tb-bottom, 10px);
    z-index: 9998;
    width: 320px;
    pointer-events: none;
}

#zm-trade-barrage .zm-tb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-top: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    border: 0;
    color: #45556c;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition: opacity .45s ease, transform .45s ease, margin .35s ease;
}

#zm-trade-barrage .zm-tb-item.zm-tb-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#zm-trade-barrage .zm-tb-item.zm-tb-hide {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
}

#zm-trade-barrage .zm-tb-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: block;
}

#zm-trade-barrage .zm-tb-text {
    display: block;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#zm-trade-barrage .zm-tb-money {
    color: #ff6a3d;
    font-weight: 700;
}

.dark-theme #zm-trade-barrage .zm-tb-item,
:root.dark #zm-trade-barrage .zm-tb-item,
html[data-theme="dark"] #zm-trade-barrage .zm-tb-item {
    background: transparent;
    border-color: transparent;
    color: var(--main-color, #e5eef7);
    box-shadow: none;
}

@media (max-width: 768px) {
    #zm-trade-barrage {
        display: none;
    }
}
