.sb-hashtag-menu {
    position: relative;
    padding: 10px 0 5px 0;
}

.sb-hashtag-menu,
.sb-hashtag-menu * {
    box-sizing: border-box;
}

.sb-letters-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px; /* adjust to taste */
}


.sb-letters {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 5px;
    flex: 1;
    margin-right: 55px;
    
    -ms-overflow-style: none;
    scrollbar-width: none;    
}


.sb-letters::-webkit-scrollbar {
    display: none;
}


.sb-hashtag-menu .letter-btn {
    position: relative;
    flex: 0 0 auto;

    height: auto;

    padding: 14px 10px;

    border: 1px solid #ccc;
    border-radius: 5px;

    cursor: pointer;
    user-select: none;

    background-color: #f0f0f0;
    color: black;

    transition:
        background .2s,
        color .2s;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 48px;
}


.sb-hashtag-menu .letter-btn.active {
    background-color: #c10050;
    color: #fff;
    border-color: #92003d;
}


.sb-hashtag-menu .letter-btn[data-letter="TRENDING"] {
    background: #C10050;
    color: #fff;
    font-weight: bold;
    border: 0;
}


.sb-hashtag-menu .letter-btn[data-letter="TRENDING"]:hover {
    background: #C10050;
}


.sb-clear-tags {
    position: absolute;
    background-color: #0f0f0f;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

.sb-clear-tags img {
    width: 24px;
    height: 24px;

    filter: invert(1);
}

/* Tag groups */
.sb-tag-groups {
    width: 100%;
}


.sb-hashtag-menu .tag-container {
    display: flex;
    flex-wrap: nowrap;

    overflow-x: scroll;
    overflow-y: hidden;

    gap: 8px;

    max-height: 0;
    margin: 0;

    scrollbar-width: none;
    scrollbar-gutter: stable;

    transform: scaleY(0);
    transform-origin: top;

    transition: transform .25s ease;
}


.sb-hashtag-menu .tag-container::-webkit-scrollbar {
    display: none;
}


.sb-hashtag-menu .tag-container.open {
    max-height: 60px;

    margin-top: 0;
    margin-bottom: 10px;

    padding-left: 10px;

    transform: scaleY(1);
}


.sb-hashtag-menu .tag {
    color: white;

    flex: 0 0 auto;

    padding: 6px 10px;

    border: 0px solid rgba(255,255,255,.1);
    border-radius: 6px;

    font-size: 0.75em;
    cursor: pointer;
    user-select: none;

    white-space: nowrap;

    background-color: #373737;
}


.sb-hashtag-menu .tag.active {
    background-color: #550023;
    color: white;
    border: 0;
}


.sb-hashtag-menu .trending-wrap {
    overflow-x: auto;
    white-space: nowrap;

    scrollbar-width: none;

    display: flex;
    gap: 20px;
}


.sb-hashtag-menu .trending-wrap::-webkit-scrollbar {
    display: none;
}


@media (max-width:480px) {

    .sb-hashtag-menu .tag {
        padding: 9px 12px;
        font-size: 17px;
    }


    .sb-hashtag-menu .letter-btn {
        padding: 10px 12px;
        font-size: 18px;
    }


    .sb-clear-tags {
        width: 38px;
        height: 38px;
    }


    .sb-clear-tags img {
        width: 20px;
        height: 20px;
    }

}