.rf-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* Centered topbar: logo | trust badges | language */
.header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem 1.5rem;
}

.header-content > .logo {
    justify-self: start;
}

.header-content > .trust-badges {
    justify-self: center;
}

.header-content > .rf-lang-switcher {
    justify-self: end;
}

/* Decorative accent inside logo icon must stay empty */
.logo-icon .logo-accent {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    overflow: hidden;
    pointer-events: none;
}

.rf-lang-switcher__btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.rf-lang-switcher__btn:hover {
    color: #0f766e;
    background: #f0fdfa;
}

.rf-lang-switcher__btn.is-active {
    background: #0f766e;
    color: #fff;
}

.fg-header__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.fg-header .rf-lang-switcher {
    order: 3;
    margin-left: 0;
}

@media (max-width: 768px) {
    .header-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .header-content > .logo,
    .header-content > .trust-badges,
    .header-content > .rf-lang-switcher {
        justify-self: center;
    }

    .rf-lang-switcher {
        order: 10;
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.error-container {
    position: relative;
}

.error-container .rf-lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    margin-left: 0;
}
