.wp-google-transalate-menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wp-google-transalate-menu-item .wp-google-transalate-current {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    line-height: inherit;
}

.wp-google-transalate-current:hover,
.wp-google-transalate-current:focus {
    opacity: .85;
    outline: none;
}

.wp-google-transalate-chevron {
    font-size: .75em;
    line-height: 1;
}

.wp-google-transalate-popup {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 210px;
    background: #080808;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    border-radius: 12px;
    padding: 8px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.wp-google-transalate-menu-item.is-open .wp-google-transalate-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wp-google-transalate-popup::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #080808;
    border-left: 1px solid rgba(255,255,255,.14);
    border-top: 1px solid rgba(255,255,255,.14);
    transform: rotate(45deg);
}

.wp-google-transalate-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 11px 12px;
    border-radius: 9px;
    font: inherit;
}

.wp-google-transalate-option:hover,
.wp-google-transalate-option:focus,
.wp-google-transalate-option.is-active {
    background: rgba(255,255,255,.12);
    outline: none;
}

.wp-google-transalate-flag {
    min-width: 28px;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wp-google-transalate-name {
    font-size: 14px;
    line-height: 1.25;
}

#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-banner-frame,
.skiptranslate iframe {
    display: none !important;
}

body {
    top: 0 !important;
}

body.translated-rtl {
    direction: rtl;
}

@media (max-width: 768px) {
    .wp-google-transalate-popup {
        right: auto;
        left: 0;
    }
    .wp-google-transalate-popup::before {
        right: auto;
        left: 18px;
    }
}
