/* ====== FLOATING LANGUAGE TRANSLATOR WIDGET ====== */

/* Default - Desktop */
.gtranslate_wrapper {
    position: fixed;
    bottom: 5px;
    left: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 50px;
    width: auto;
    max-width: 250px;
    display: flex;
    align-items: center;        /* Vertically centers content */
    justify-content: center;    /* Horizontally centers content */
    text-align: center;
    line-height: normal;        /* Prevents line height pushing text up */
}

/* Tablet - Medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .gtranslate_wrapper {
        bottom: 15px;
        left: 15px;
        padding: 7px 11px;
        min-width: 50px;
        width: auto;
        max-width: 220px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: normal;
    }
}

/* Mobile - Small screens */
@media (max-width: 768px) {
    .gtranslate_wrapper {
        position: fixed;
        bottom: 15px;
        left: 10px;
        padding: 10px 14px;
        min-width: 120px;
        width: auto;
        max-width: 200px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        background: rgba(255, 255, 255, 0.98);
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: normal;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .gtranslate_wrapper {
        bottom: 12px;
        left: 8px;
        padding: 9px 12px;
        min-width: 110px;
        width: auto;
        max-width: 180px;
        border-radius: 8px;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: normal;
    }
}

/* Landscape phone mode */
@media (max-width: 768px) and (orientation: landscape) {
    .gtranslate_wrapper {
        bottom: 8px;
        left: 10px;
        top: auto;
        padding: 8px 12px;
        min-width: 110px;
        width: auto;
        max-width: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: normal;
    }
}

/* Target the inner widget elements directly */
.gtranslate_wrapper > * {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix any default margins GTranslate applies internally */
.gtranslate_wrapper a,
.gtranslate_wrapper span,
.gtranslate_wrapper div,
.gtranslate_wrapper select {
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: normal !important;
}