.tag-scroll {
    --btn-size: 48px;
    --gap: 12px;
    --item-height: 44px;
    --item-radius: 8px;

    display: grid;
    grid-template-columns: var(--btn-size) minmax(0, 1fr) var(--btn-size);
    align-items: center;
    gap: var(--gap);
    width: 100%;
}

.tag-scroll__btn {
    width: var(--btn-size);
    height: var(--btn-size);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background:none;
    border:none;
}

.tag-scroll__btn:hover:not(:disabled) {
    color: #fa6207;
}

.tag-scroll__btn:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.tag-scroll__viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
}

.tag-scroll__viewport::-webkit-scrollbar {
    display: none;
}

.tag-scroll__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.tag-scroll__track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    min-width: 100%;
}

.tag-scroll__item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--item-height);
    padding: 0 28px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--item-radius);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.tag-scroll__item:hover {
    border-color: #fa6207;
}

@media (max-width: 767px) {
    .tag-scroll {
        --btn-size: 40px;
        --gap: 8px;
        --item-height: 40px;
    }

    .tag-scroll__track {
        gap: 12px;
    }

    .tag-scroll__item {
        padding: 0 18px;
        font-size: 16px;
    }
}
