#pointaa-language-switch {
    position: fixed; top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: auto;
    /* Legacy wide tables can enlarge the layout viewport on mobile. Keep the
       switch anchored to the device viewport, without clipping page content. */
    left: calc(min(100vw, 100%) - (16px + env(safe-area-inset-right)));
    transform: translateX(-100%);
    z-index: 2147483000; display: flex; align-items: center;
    box-sizing: border-box; padding: 0; margin: 0; border: 0;
    background: transparent; color: #172554;
    width: 32px; height: 32px;
    font: 14px/1.4 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
#pointaa-language-switch button {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    appearance: none; box-sizing: border-box; height: 32px; width: 32px; min-height: 32px; min-width: 32px;
    padding: 0; margin: 0; border: 1px solid #cbd5e1; border-radius: 6px;
    background: #fff; color: #172554; font: inherit; font-weight: 600;
    cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: 0 2px 8px #00000018;
}
/* Extend the pointer target to 44px without enlarging the visible button. */
#pointaa-language-switch button::after { content: ""; position: absolute; inset: -7px; }
#pointaa-language-switch .pointaa-translation-icon { font-size: 18px; line-height: 1; letter-spacing: -2px; white-space: nowrap; pointer-events: none; }
#pointaa-language-switch button:hover { background: #eff6ff; }
#pointaa-language-switch button:focus-visible { outline: 3px solid #e18c00; outline-offset: 2px; }
/* Leave room for the switch below the product page floating action. */
body.pointaa-language-enabled .pointaa-product-publish-link { bottom: calc(72px + env(safe-area-inset-bottom)); }
@media print { #pointaa-language-switch { display: none; } }
