.brand-switcher {
    position: relative;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); 
    z-index: 1;
    overflow: hidden; 
}

.brand-switcher .brand-switcher__item {
    position: relative;
    color: #fff;
    padding: 7px 14px;
    line-height: 1;
    border-radius: 8px; 
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
    margin: 0 0px; 
    transition: color 0.3s ease, margin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-switcher .brand-switcher__item.is-highlighted {
    margin: 0 8px;
    padding: 7px 18px;
    color: #0a0a0a;
}

.brand-switcher .brand-switcher__item.is-active:not(.is-highlighted) {
    color: #fff;
}

.brand-switcher__highlight {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--e-global-color-primary);
    border-radius: 8px;
    transition: none; 
    z-index: -1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.brand-switcher__highlight::before {
    content: '';
    position: absolute;
    inset: -6px; 
    background-color: var(--e-global-color-primary);
    filter: blur(20px); 
    opacity: 0.45;
    border-radius: inherit;
    z-index: -1;
}

/* =========================================
   ВЕРТИКАЛЬНА ВЕРСІЯ (ДЛЯ ФУТЕРА)
========================================= */
.brand-switcher.brand-switcher--vertical {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
	background: transparent;
}

.brand-switcher.brand-switcher--vertical .brand-switcher__item {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    justify-content: flex-start;
}

/* Вертикальне розсування сусідів (вгору-вниз) замість горизонтального */
.brand-switcher.brand-switcher--vertical .brand-switcher__item.is-highlighted {
    margin: 8px 0; 
    padding: 10px 14px; /* Робимо кнопку трохи вищою при наведенні */
}


/* =========================================
   МОБІЛЬНИЙ DROPDOWN (ТІЛЬКИ ДЛЯ ГОРИЗОНТАЛЬНОГО)
========================================= */
@media (max-width: 1124px) {
    .brand-switcher:not(.brand-switcher--vertical) {
        flex-direction: column;
        align-items: stretch;
        padding: 7px;
        min-width: 130px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .brand-switcher:not(.brand-switcher--vertical)::after {
        content: '';
        position: absolute;
        right: 16px;
        top: 14px;
        width: 8px;
        height: 8px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        pointer-events: none;
        z-index: 5;
    }

    .brand-switcher.is-open:not(.brand-switcher--vertical)::after {
        transform: rotate(-135deg);
        top: 18px;
    }

    .brand-switcher:not(.brand-switcher--vertical) .brand-switcher__item {
        display: none;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        text-align: left;
        order: 2;
    }

    .brand-switcher:not(.brand-switcher--vertical) .brand-switcher__item.is-active {
        display: block;
        order: 1; 
        margin: 0;
        padding: 7px 14px;
        background: transparent;
        box-shadow: none;
        color: var(--e-global-color-text);
    }

    .brand-switcher.is-open:not(.brand-switcher--vertical) .brand-switcher__item {
        display: block;
    }

    .brand-switcher.is-open:not(.brand-switcher--vertical) .brand-switcher__item:not(.is-active):active,
    .brand-switcher.is-open:not(.brand-switcher--vertical) .brand-switcher__item:not(.is-active):hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .brand-switcher:not(.brand-switcher--vertical) .brand-switcher__highlight {
        display: none !important;
    }
}