.tpo-online {
    --tpo-online-green: #25c76f;
    --tpo-online-blue: #1769d2;
    --tpo-online-navy: #102a56;
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: #fff;
    font-family: inherit;
    line-height: 1.2;
}

.tpo-online *,
.tpo-online *::before,
.tpo-online *::after {
    box-sizing: border-box;
}

.tpo-online__details {
    position: relative;
}

.tpo-online__trigger {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.tpo-online__trigger::-webkit-details-marker {
    display: none;
}

.tpo-online__trigger:hover,
.tpo-online__trigger:focus-visible,
.tpo-online__details[open] > .tpo-online__trigger {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.tpo-online__trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 2px;
}

.tpo-online__trigger--static {
    cursor: default;
}

.tpo-online__dot {
    width: 9px;
    height: 9px;
    margin-right: 8px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--tpo-online-green);
    box-shadow: 0 0 0 4px rgba(37, 199, 111, .15);
}

.tpo-online--empty .tpo-online__dot {
    background: #a9b2c1;
    box-shadow: 0 0 0 4px rgba(169, 178, 193, .13);
}

.tpo-online__label-short {
    display: none;
}

.tpo-online__chevron {
    width: 14px;
    height: 14px;
    margin-left: 7px;
    flex: 0 0 14px;
    transition: transform .18s ease;
}

.tpo-online__details[open] .tpo-online__chevron {
    transform: rotate(180deg);
}

.tpo-online__panel {
    position: absolute;
    z-index: 10050;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #fff;
    color: #263954;
    box-shadow: 0 18px 48px rgba(16, 42, 86, .22);
}

.tpo-online__panel::before {
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #dbe4f0;
    border-left: 1px solid #dbe4f0;
    background: #f5f9ff;
    content: "";
    transform: rotate(45deg);
}

.tpo-online__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px 15px;
    background: linear-gradient(135deg, #f5f9ff 0%, #edf5ff 100%);
    border-bottom: 1px solid #e1e9f4;
}

.tpo-online__panel-head strong {
    display: block;
    margin: 0 0 4px;
    color: var(--tpo-online-navy);
    font-size: 17px;
    font-weight: 900;
}

.tpo-online__panel-head small {
    display: block;
    color: #75849a;
    font-size: 12px;
    font-weight: 500;
}

.tpo-online__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border-radius: 12px;
    background: var(--tpo-online-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.tpo-online__users {
    max-height: 310px;
    margin: 0;
    padding: 8px 10px;
    overflow-y: auto;
    list-style: none;
}

.tpo-online__user {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin: 0;
    padding: 9px 8px 9px 28px;
    border-radius: 10px;
}

.tpo-online__user + .tpo-online__user {
    border-top: 1px solid #edf1f6;
    border-radius: 0;
}

.tpo-online__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 2px solid #e8eef7;
    border-radius: 50%;
    object-fit: cover;
}

.tpo-online__avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f2ff;
    color: var(--tpo-online-blue);
    font-size: 14px;
    font-weight: 900;
}

.tpo-online__user-main {
    display: block;
    min-width: 0;
}

.tpo-online__user-main strong,
.tpo-online__user-main a {
    display: block;
    overflow: hidden;
    color: #243954;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpo-online__user-main a:hover,
.tpo-online__user-main a:focus {
    color: #e52536;
}

.tpo-online__user-main small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #7e8da2;
    font-size: 11px;
}

.tpo-online__user-main small span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tpo-online-green);
}

.tpo-online__more {
    padding: 11px 18px 13px;
    border-top: 1px solid #e7edf5;
    background: #fafcff;
    color: #6b7b91;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

#sp-top2 .sp-module.tpo-online-module {
    display: inline-flex;
    align-items: center;
    margin: 0 10px 0 0;
}

#sp-top1,
#sp-top1 > .sp-column {
    display: flex;
    align-items: center;
    min-height: 52px;
}

#sp-top1 .sp-module.tpo-online-module {
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: auto;
    margin: 0 !important;
    padding: 0;
}

#sp-top1 .sp-module.tpo-online-module .sp-module-content,
#sp-top1 .sp-module.tpo-online-module .tpo-online {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

@media (max-width: 767.98px) {
    .tpo-online__label {
        display: none;
    }

    .tpo-online__label-short {
        display: inline;
    }

    .tpo-online__trigger {
        min-height: 36px;
        padding: 6px 9px;
        font-size: 13px;
    }

    .tpo-online__panel {
        position: fixed;
        top: 62px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 82px);
    }

    .tpo-online__panel::before {
        display: none;
    }

    .tpo-online__users {
        max-height: calc(100vh - 195px);
    }
}
