.custom-translate-dropdown {
    display: flex;
    align-items: center;
    border: 1.5px solid orange;
    border-radius: 4px;
    /* Changed from 25px to 4px for rectangular shape */
    padding: 4px 10px;
    background-color: white;
    width: fit-content;
    margin-right: 20px;
    /* Optional: Moves it slightly left */
    position: relative;
    z-index: 9999;
}

#google_translate_element select {
    border: none;
    background: none;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    outline: none;
    padding: 4px;
}

.goog-te-gadget {
    font-size: 0;
}

.goog-te-combo {
    font-size: 12px;
    padding: 4px;
    border: none;
    background: none;
}

/* Force Google Translate dropdown to stay near the selector */
.goog-te-menu-frame.skiptranslate {
    position: fixed !important;
    bottom: 60px !important;
    /* Adjust based on your footer height */
    left: auto !important;
    right: 20px !important;
    /* Align right if your widget is right-aligned */
    top: auto !important;
    margin: 0 !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none !important;
}

/* Hide banner that scrolls page to top */
body .goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}


/* Default style for desktop - optional */
.translate-wrapper-mobile {
    display: none;
}

/* Mobile view styling */
@media (max-width: 768px) {
    ul.icon {
        padding-right: 10px;
    }

    .custom-translate-dropdown {
        display: flex;
        align-items: center;
        border: 1.5px solid orange;
        border-radius: 4px;
        padding: 4px 10px;
        background-color: white;
        width: fit-content;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    #google_translate_element select {
        border: none;
        background: none;
        font-size: 10px;
        color: #000;
        cursor: pointer;
        outline: none;
        padding: 4px;
    }

    .goog-te-gadget {
        font-size: 0;
        /* hides 'Powered by' */
    }

    .goog-te-combo {
        font-size: 12px;
        padding: 4px;
        border: none;
        background: none;
    }
}