.javo-translation-google-element {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.javo-translation-host {
    --javo-translation-bg: #ffffff;
    --javo-translation-border: #dbe3ee;
    --javo-translation-text: #1e293b;
    --javo-translation-muted: #64748b;
    --javo-translation-accent: #0ea5e9;
    --javo-translation-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
    color: var(--javo-translation-text);
    font-family: inherit;
    z-index: 99990;
}

.javo-translation-host *,
.javo-translation-host *::before,
.javo-translation-host *::after {
    box-sizing: border-box;
}

.javo-translation-mode-floating {
    position: fixed;
}

.javo-translation-mode-floating[data-position="bottom-right"] {
    right: 18px;
    bottom: 18px;
}

.javo-translation-mode-floating[data-position="bottom-left"] {
    left: 18px;
    bottom: 18px;
}

.javo-translation-mode-floating[data-position="top-right"] {
    right: 18px;
    top: 82px;
}

.javo-translation-mode-floating[data-position="top-left"] {
    left: 18px;
    top: 82px;
}

.javo-translation-mode-top_bar {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 16px;
}

.javo-translation-mode-footer_inline {
    display: flex;
    justify-content: center;
    padding: 18px 16px;
}

.javo-translation-mode-header_inline {
    position: relative;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.javo-translation-host[data-animation="fade"] {
    animation: javo-translation-fade-in 180ms ease both;
}

.javo-translation-host[data-animation="slide"] {
    animation: javo-translation-slide-in 220ms ease both;
}

.javo-translation-select-label {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--javo-translation-border);
    border-radius: 8px;
    background: var(--javo-translation-bg);
    box-shadow: var(--javo-translation-shadow);
    overflow: hidden;
}

.javo-translation-select-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-height: 42px;
    color: var(--javo-translation-accent);
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}

.javo-translation-select {
    min-width: 168px;
    min-height: 42px;
    border: 0;
    background: #ffffff;
    color: var(--javo-translation-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 0 34px 0 12px;
    outline: none;
}

.javo-translation-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: min(92vw, 640px);
    padding: 8px;
    border: 1px solid var(--javo-translation-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--javo-translation-shadow);
}

.javo-translation-button,
.javo-translation-popover-item,
.javo-translation-globe-button {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--javo-translation-text);
    cursor: pointer;
    font: inherit;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.javo-translation-button,
.javo-translation-popover-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.javo-translation-button:hover,
.javo-translation-popover-item:hover,
.javo-translation-globe-button:hover,
.javo-translation-button[data-active="1"],
.javo-translation-popover-item[data-active="1"] {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.javo-translation-globe {
    position: relative;
    z-index: 100;
}

.javo-translation-globe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--javo-translation-accent);
    box-shadow: var(--javo-translation-shadow);
}

.javo-translation-globe-button .ti {
    font-size: 20px;
}

.javo-translation-flag,
.javo-translation-current-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45em;
    min-width: 1.45em;
    font-size: 1.1em;
    line-height: 1;
}

.javo-translation-popover {
    position: absolute;
    z-index: 110;
    right: 0;
    bottom: calc(100% + 8px);
    display: grid;
    width: 220px;
    max-height: 320px;
    overflow: auto;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--javo-translation-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--javo-translation-shadow);
}

.javo-translation-mode-floating[data-position="top-right"] .javo-translation-popover,
.javo-translation-mode-floating[data-position="top-left"] .javo-translation-popover {
    top: calc(100% + 8px);
    bottom: auto;
}

.javo-translation-mode-floating[data-position="bottom-left"] .javo-translation-popover,
.javo-translation-mode-floating[data-position="top-left"] .javo-translation-popover {
    left: 0;
    right: auto;
}

.javo-translation-popover[hidden] {
    display: none;
}

.javo-translation-mode-top_bar .javo-translation-select-label,
.javo-translation-mode-top_bar .javo-translation-button-group,
.javo-translation-mode-footer_inline .javo-translation-select-label,
.javo-translation-mode-footer_inline .javo-translation-button-group,
.javo-translation-mode-header_inline .javo-translation-select-label,
.javo-translation-mode-header_inline .javo-translation-button-group,
.javo-translation-mode-header_inline .javo-translation-globe-button {
    box-shadow: none;
}

body.javo-translation-hide-google-toolbar .goog-te-banner-frame,
body.javo-translation-hide-google-toolbar iframe.goog-te-banner-frame,
body.javo-translation-hide-google-toolbar iframe.skiptranslate,
body.javo-translation-hide-google-toolbar .skiptranslate > iframe,
body.javo-translation-hide-google-toolbar .VIpgJd-ZVi9od-ORHb-OEVmcd,
body.javo-translation-hide-google-toolbar .javo-translation-toolbar-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.javo-translation-hide-google-toolbar #goog-gt-tt,
body.javo-translation-hide-google-toolbar #goog-gt-vt,
body.javo-translation-hide-google-toolbar .goog-tooltip,
body.javo-translation-hide-google-toolbar .goog-tooltip:hover,
body.javo-translation-hide-google-toolbar .goog-te-balloon-frame,
body.javo-translation-hide-google-toolbar iframe.goog-te-balloon-frame,
body.javo-translation-hide-google-toolbar .VIpgJd-yAWNEb-L7lbkb,
body.javo-translation-hide-google-toolbar .VIpgJd-yAWNEb-hvhgNd,
body.javo-translation-hide-google-toolbar .VIpgJd-yAWNEb-N7Eqid,
body.javo-translation-hide-google-toolbar .VIpgJd-ZVi9od-aZ2wEe,
body.javo-translation-hide-google-toolbar .VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
body.javo-translation-hide-google-toolbar .VIpgJd-ZVi9od-aZ2wEe-OiiCO,
body.javo-translation-hide-google-toolbar [class*="VIpgJd-ZVi9od-aZ2wEe"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.javo-translation-hide-google-toolbar .goog-text-highlight,
body.javo-translation-hide-google-toolbar .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    outline: 0 !important;
}

.javo-translation-mode-header_inline .javo-translation-globe-button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
}

.javo-translation-mode-header_inline .javo-translation-globe-button .ti {
    font-size: 18px;
}

.javo-translation-mode-header_inline,
.javo-translation-mode-header_inline .javo-translation-globe-button,
.javo-translation-mode-header_inline .javo-translation-current-flag {
    color: inherit;
}

.javo-translation-mode-header_inline .javo-translation-current-flag {
    font-size: 18px;
}

.javo-translation-mode-header_inline .javo-translation-popover {
    top: calc(100% + 10px);
    bottom: auto;
    right: 0;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget > span {
    display: none !important;
}

@keyframes javo-translation-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes javo-translation-slide-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .javo-translation-mode-floating[data-position="bottom-right"],
    .javo-translation-mode-floating[data-position="bottom-left"] {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .javo-translation-mode-floating[data-position="top-right"],
    .javo-translation-mode-floating[data-position="top-left"] {
        right: 12px;
        left: 12px;
        top: 64px;
    }

    .javo-translation-select-label,
    .javo-translation-select {
        width: 100%;
    }

    .javo-translation-button-group {
        width: 100%;
    }

    .javo-translation-popover {
        left: 0;
        right: 0;
        width: min(100%, 320px);
    }
}
