.lang-country-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-size: 13px;
}

/* Общий овальный контейнер */
.lang-country-selector-inner {
    display: inline-flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    border: 1px solid #e0e0e0;
    padding: 4px;
    gap: 4px;
}

/* Текущая страна */
.lang-country-selector .current-country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #222;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.15s, box-shadow 0.15s;
}

.lang-country-selector .current-country:hover {
    background: #f3f6ff;
    box-shadow: 0 0 0 2px rgba(76, 120, 255, 0.25);
}

.lang-country-selector .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    flex-shrink: 0;
}

.lang-country-selector .country-code {
    font-weight: 600;
    text-transform: uppercase;
}

.lang-country-selector .country-arrow {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.6;
}

/* Список — овальные элементы, продолжение блока */
.lang-country-selector .country-list {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.lang-country-selector .country-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 999px;
    background: #ffffff;
    transition: background 0.15s, box-shadow 0.15s;
}

/* Яркое выделение при наведении */
.lang-country-selector .country-list a:hover {
    background: #f3f6ff;
    box-shadow: 0 0 0 2px rgba(76, 120, 255, 0.35);
}

/* При наведении на блок — показываем список */
.lang-country-selector:hover .country-list {
    display: flex;
}

.fi-ru {
    background-image: url(flags/ru.svg);
}
.fi-en {
    background-image: url(flags/gb.svg);
}
