.horizontal-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.horizontal-menu-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    scrollbar-width: none; /* Firefox */
}

.horizontal-menu-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.horizontal-menu-list {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.horizontal-menu-list li {
    display: inline-block;
    flex: 0 0 auto;
}

.horizontal-menu-list a {
    display: block;
    text-decoration: none;
    padding: 10px 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.horizontal-menu-indicator {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Arrow Position: Inside (Floating overlay on top of menu scroll right side) */
.hmenu-arrow-pos-inside .horizontal-menu-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 40%, rgba(255,255,255,1) 100%);
    padding-left: 35px;
    padding-right: 15px;
    z-index: 10;
}

/* Arrow Position: Outside (Pinned right, with a soft transparent gradient mask to its left side) */
.hmenu-arrow-pos-outside .horizontal-menu-indicator {
    position: relative;
    padding-left: 35px; /* Leave space for gradient background overlay */
    padding-right: 10px;
    flex-shrink: 0;
}

/* Linear gradient backdrop for outside indicator to prevent sharp menu cuts */
.hmenu-arrow-pos-outside .horizontal-menu-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure SVG icon sits on top of ::before pseudo element */
.horizontal-menu-indicator svg, 
.horizontal-menu-indicator i {
    position: relative;
    z-index: 2;
}

.horizontal-menu-placeholder {
    padding: 20px;
    background: #f7f7f7;
    border: 1px dashed #ccc;
    text-align: center;
    color: #666;
}
