.menuItemList {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 4px;
}

.menuItemList__container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    position: relative;
    /* Performance optimization */
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
}

.menuItemList__container::-webkit-scrollbar {
    display: none;
}

.menuItemList__content {
    display: flex;
    gap: 8px;
    padding: 12px 4px;
    margin: 0;
    min-width: min-content;
    list-style: none;
}

.menuItemList__item {
    flex-shrink: 0;
    background: #FFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.menuItemList__item a {
    display: block;
    padding: 8px 20px;
    font-weight: 700;
    color: #000;
}

.menuItemList__item:hover a {
    text-decoration: underline;
}

.menuItemList__item:focus {
    outline: 2px solid #007aff;
    outline-offset: 2px;
    background: rgba(0, 122, 255, 0.1);
}

.menuItemList__item:active {
    transform: translateY(0);
}

/* Menu Item List Fade Overlays */
.menuItemList__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Performance optimization */
    will-change: opacity;
}

.menuItemList__fade--left {
    left: 0;
    background-image: linear-gradient(to right, rgba(237, 237, 234, 1) 55%, rgba(237, 237, 234, 0))
}

.menuItemList__fade--right {
    right: 0;
    background-image: linear-gradient(to left, rgba(237, 237, 234, 1) 55%, rgba(237, 237, 234, 0))
}

.menuItemList__fade--visible {
    opacity: 1;
}

/* Menu Item List Arrow Controls */
.menuItemList__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
    border: 0;
    /* Performance optimization */
    will-change: opacity, visibility;
}

.menuItemList__arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L10 8L6 12' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menuItemList__arrow:hover::before {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%) scale(1.1);
}

.menuItemList__arrow:active::before {
    transform: translate(-50%, -50%) scale(0.95);
}

.menuItemList__arrow svg {
    width: 14px;
    height: 14px;
}

.menuItemList__arrow--visible {
    opacity: 1;
    visibility: visible;
}

.menuItemList__arrow--left {
    left: 0;
    transform: rotate(180deg);
}

.menuItemList__arrow--right {
    right: 0;
}

.menuItemList__arrowIcon {
    width: 12px;
    height: 12px;
    border: 2px solid #007aff;
    border-bottom: none;
    border-right: none;
    transform: rotate(-45deg);
}

.menuItemList__arrow--right .menuItemList__arrowIcon {
    transform: rotate(135deg);
}

/* Mobile optimizations */
@media (max-width: 768px) {

    .menuItemList__item {
        font-size: 14px;
    }

    .menuItemList__fade {
        width: 60px;
    }
}