/* ========================================
   AUTO TRANSLATE WP
======================================== */

.atw-translate {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    z-index: 100;
}

/* Trigger */

.atw-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #263445;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.atw-trigger:hover {
    border-color: #b8c5d5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.atw-trigger svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s;
}

.atw-translate.is-open .atw-trigger svg {
    transform: rotate(180deg);
}

.atw-current-flag,
.atw-option-flag {
    font-size: 17px;
    line-height: 1;
}

/* Dropdown */

.atw-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 35, 55, .13);
    z-index: 99999;
}

.atw-dropdown[hidden] {
    display: none;
}

.atw-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #344054;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}

.atw-option:hover {
    background: #f3f6fa;
}

.atw-option.is-active {
    background: #edf4fc;
    color: #084d8e;
    font-weight: 600;
}

.atw-check {
    margin-left: auto;
    color: #0a5cab;
    font-size: 14px;
}

/* Menu integration */

.menu-item-atw {
    display: flex;
    align-items: center;
}

.menu-item-atw > .atw-translate {
    margin: 0 5px;
}

/* Google engine - hidden from visitors */

#atw-google-engine {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hide Google translation banner */

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Mobile */

@media (max-width: 600px) {
    .atw-dropdown {
        right: auto;
        left: 0;
    }

    .menu-item-atw {
        justify-content: flex-start;
    }

    .atw-trigger {
        min-height: 36px;
    }
}


/* ========================================
   HIDE GOOGLE TRANSLATE TOP BANNER
======================================== */

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

/* Remove Google top offset */
html,
body {
    top: 0 !important;
    margin-top: 0 !important;
}

/* Hide Google translation popup */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

/* Hide Google highlighting */
.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}
