/* Keep Google Translate alive but visually hidden. Do NOT use display:none on the root, or Google may not build the selector. */
#ysa-google-translate-element {
    position: fixed !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0.01 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
.skiptranslate iframe {
    display: none !important;
    visibility: hidden !important;
}

html,
body {
    top: 0 !important;
    margin-top: 0 !important;
}

body > .skiptranslate {
    display: none !important;
}

.ysa-floating-translator {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483647;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: Arial, sans-serif;
}

.ysa-lang-btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #111111;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ysa-lang-btn:hover,
.ysa-lang-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    outline: none;
}

.ysa-lang-btn.is-active {
    border-color: #111111;
    box-shadow: inset 0 0 0 1px #111111;
}

.ysa-flag {
    font-size: 22px;
    line-height: 1;
}

.ysa-label {
    letter-spacing: 0.04em;
}

@media (max-width: 544px) {
    .ysa-floating-translator {
        right: 12px;
        bottom: 12px;
        padding: 7px;
    }

    .ysa-lang-btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }
}
