/* Site Switcher — kontekst ActiveSite w topbarze panelu */

.fi-site-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-end: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.06));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    min-width: 0;
    flex: 0 1 auto;
    max-width: min(100%, 22rem);
}

.fi-site-switcher__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.fi-site-switcher__label {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgb(180, 83, 9);
    white-space: nowrap;
}

.fi-site-switcher__select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.35rem 2rem 0.35rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(253, 186, 116);
    background-color: rgb(255, 255, 255);
    color: rgb(15, 23, 42);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}

.fi-site-switcher__select:focus {
    outline: 2px solid rgba(245, 158, 11, 0.55);
    outline-offset: 1px;
    border-color: rgb(245, 158, 11);
}

.fi-site-switcher__name {
    display: block;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-site-switcher__domain {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgb(100, 116, 139);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .fi-site-switcher {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(15, 23, 42, 0.35));
    box-shadow: none;
}

.dark .fi-site-switcher__label {
    color: rgb(253, 224, 71);
}

.dark .fi-site-switcher__domain {
    color: rgb(148, 163, 184);
}

.dark .fi-site-switcher__select {
    border-color: rgba(251, 191, 36, 0.45);
    background-color: rgb(15, 23, 42);
    color: rgb(248, 250, 252);
}

.dark .fi-site-switcher__name {
    color: rgb(248, 250, 252);
}

@media (max-width: 767px) {
    .fi-site-switcher {
        max-width: none;
        margin-inline-end: 0;
        padding: 0.25rem 0.5rem;
        gap: 0.375rem;
        width: 100%;
    }

    .fi-site-switcher__form {
        gap: 0.375rem;
        width: 100%;
    }

    .fi-site-switcher__label {
        font-size: 0.8125rem;
    }

    .fi-site-switcher__select {
        font-size: 0.8125rem;
        padding: 0.3rem 1.75rem 0.3rem 0.5rem;
    }

    .fi-site-switcher__name {
        max-width: none;
    }
}

@media (min-width: 768px) {
    .fi-site-switcher__select {
        min-width: 10rem;
        max-width: 16rem;
    }
}
