/* Floating switcher between the main BRICS site and its country / vote / shop
   sub-projects. Deliberately self-contained (fixed position, own colors) so
   it renders consistently on top of every header design in this archive,
   regardless of that header's own layout or CSS. */

.site-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 13px;
}

.site-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: #292929;
    color: #ffffff;
    border: none;
    border-radius: 17px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    white-space: nowrap;
}

.site-switcher__trigger:hover {
    background: #3d3d3d;
}

.site-switcher__label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-switcher__chevron {
    flex: none;
    transition: transform 0.2s ease-in-out;
}

.site-switcher.open .site-switcher__chevron {
    transform: rotate(180deg);
}

.site-switcher__list {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.15s ease-in-out;
}

.site-switcher.open .site-switcher__list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-switcher__item + .site-switcher__item {
    border-top: 1px solid #f0f0f0;
}

.site-switcher__item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    color: #292929;
    text-decoration: none;
    border-radius: 6px;
}

.site-switcher__item a:hover {
    background: #f6f6f6;
}

.site-switcher__item--current a {
    font-weight: 700;
    color: #D43232;
}

.site-switcher__item img {
    flex: none;
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.site-switcher__flag-blank {
    flex: none;
    width: 20px;
    height: 14px;
}

@media (max-width: 640px) {
    .site-switcher {
        top: 8px;
        right: 8px;
    }

    .site-switcher__trigger {
        height: 30px;
        padding: 0 10px;
    }

    .site-switcher__label {
        max-width: 90px;
    }

    .site-switcher__list {
        width: 200px;
    }
}
