.menutabs-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;

    @media (max-width: 768px) {
        margin: 1rem auto;
        max-width: 92%;
    }
}

.menutabs-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: $menutabs-color-primary;
    text-align: center;
}

.menutabs-list {
    display: inline-flex;
    justify-content: center;
    border-bottom: none;
    flex-wrap: nowrap;
    background: $menutabs-color-background;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 5px;

    &::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    @media (max-width: 768px) {
        flex-wrap: nowrap;
        width: 100%;
    }

    @media (max-width: 600px) {
        flex-wrap: nowrap;
    }

    @media (max-width: 480px) {
        flex-wrap: nowrap;
    }

    .menutab-item {
        margin: 0;
        padding: 1.25rem 1.5rem;
        min-width: 184px;
        background: transparent;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        border: none;
        text-decoration: none;
        color: $menutabs-color-primary;
        width: 100%;

        @media (max-width: 768px) {
            padding: 1.25rem 1.5rem;
            min-width: 150px;
        }

        @media (max-width: 600px) {
            padding: 10px;
            min-width: auto;
        }

        @media (max-width: 480px) {
            justify-content: flex-start;
            padding: 10px;
            min-width: auto;
        }

        &:hover,
        &:focus {
            text-decoration: none;
            color: inherit;
        }

        &.active {
            background: $menutabs-color-primary;

            &:hover {
                box-shadow: none;
            }

            .tab-icon {
                img {
                    filter: brightness(0) invert(1);
                }
            }

            .tab-title {
                color: $menutabs-color-white;
            }
        }

        .tab-icon {
            width: 37px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                max-width: 100%;
                max-height: 100%;
                object-fit: contain;
            }
        }

        .tab-title {
            font-size: 14px;
            font-weight: 700;
            text-align: center;
            color: $menutabs-color-primary;
            line-height: 16px;

            @media (max-width: 600px) {
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                max-width: 102px
            }
           
        }
    }
}
