/**
 * MZK Tłumaczenia - Style Przełącznika Języków i Bezpieczeństwa Układu
 * Wersja: 1.0.0
 * Standard: Listopad 2026
 *
 * Zapewnia nienaruszalność styli strony MZK (100% zachowanie layoutu, gridu i flexboxa)
 * oraz całkowite ukrycie paska Google Translate bez przesunięć body.
 */

/* 1. OCHRONA UKŁADU STRONY: Blokada przesunięć nagłówka przez Google Translate */
body {
    top: 0px !important;
    position: static !important;
}

.skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#google_translate_element {
    display: none !important;
}

/* 2. Usunięcie niechcianego podświetlenia / obramowań tekstu wstawianych przez translatory */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

font[style*="vertical-align: inherit"] {
    vertical-align: inherit !important;
}

/* 3. Estetyczny przełącznik języków MZK (PL | EN | SK | UA) */
.mzk-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #777;
    border-radius: 4px;
    background: #fff;
    padding: 2px 4px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mzk-lang-switcher .lang-pill {
    color: #333;
    text-decoration: none;
    padding: 2px 6px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.mzk-lang-switcher .lang-pill:hover {
    background: #e2e8f0;
    color: #004e92;
}

.mzk-lang-switcher .lang-pill.active-lang {
    background: #004e92 !important;
    color: #fff !important;
    font-weight: bold;
}
