.mc-language-flags {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    margin-left: 14px;
    margin-right: 14px;
    position: relative;
    z-index: 25;
}

.mc-flag-button {
    appearance: none;
    -webkit-appearance: none;
    width: 35px;
    height: 27px;
    padding: 2px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 5px;
    background: rgba(10,20,52,.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    line-height: 1;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.mc-flag-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.62);
    background: rgba(255,255,255,.10);
}

.mc-flag-button.is-active {
    border-color: #d12227;
    box-shadow: 0 0 0 1px #d12227;
}

.mc-flag-svg {
    display: block;
    width: 28px;
    height: 18px;
    border-radius: 2px;
}

.mc-language-flags-fallback {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 999999;
    padding: 5px;
    margin: 0;
    border-radius: 8px;
    background: rgba(17,23,47,.88);
    box-shadow: 0 10px 28px rgba(8,14,42,.22);
}

@media (max-width: 1180px) {
    .mc-language-flags {
        margin-left: 8px;
        margin-right: 8px;
        gap: 5px;
    }

    .mc-flag-button {
        width: 32px;
        height: 25px;
    }

    .mc-flag-svg {
        width: 25px;
        height: 16px;
    }
}

@media (max-width: 980px) {
    .mc-language-flags {
        margin-left: auto;
        margin-right: 9px;
    }
}

@media (max-width: 767px) {
    .mc-language-flags {
        gap: 4px;
        margin-right: 7px;
    }

    .mc-flag-button {
        width: 30px;
        height: 24px;
    }

    .mc-flag-svg {
        width: 23px;
        height: 15px;
    }
}
