/* Velaro language selector: local flags, always visible */
.language-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    margin: 0 12px;
    padding: 3px 0;
    position: relative;
    z-index: 50;
}

.language-button {
    width: 30px;
    height: 22px;
    min-width: 30px;
    padding: 1px !important;
    border: 1px solid rgba(15, 37, 65, .22) !important;
    border-radius: 5px;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    opacity: .78;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease, border-color .18s ease;
    line-height: 1;
}

.language-button:hover,
.language-button:focus-visible {
    opacity: 1;
    transform: translateY(-1px) scale(1.05);
    border-color: #0b6de0 !important;
    outline: none;
    box-shadow: 0 3px 10px rgba(11, 109, 224, .24);
}

.language-button.active-language {
    opacity: 1;
    border-color: #0b6de0 !important;
    box-shadow: 0 0 0 2px rgba(11, 109, 224, .20), 0 3px 9px rgba(0, 0, 0, .14);
}

.language-flag {
    display: block !important;
    flex: 0 0 auto;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 3px;
}

@media (max-width: 920px) {
    .language-selector {
        display: flex !important;
        gap: 4px;
        margin: 0 6px;
    }
    .language-button {
        width: 27px;
        min-width: 27px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        display: flex !important;
        width: auto !important;
        max-width: 100%;
        margin: 0 4px;
        gap: 3px;
    }
    .language-button {
        width: 25px;
        min-width: 25px;
        height: 19px;
    }
}


/* Prevent the language selector from being hidden by older site rules */
header .language-selector {
    visibility: visible !important;
    opacity: 1 !important;
}
header .language-button {
    visibility: visible !important;
    pointer-events: auto !important;
}
