/* Google Translate Widget Styles */

/* Prevent link clicks from reloading page */
#google_translate_element a {
    pointer-events: none !important;
}

/* Alternative: prevent default link behavior */
#google_translate_element a[href="#"] {
    pointer-events: none !important;
}

/* Ensure widget is visible and properly positioned */
#google_translate_element {
    display: none !important; /* Hidden by default */
    vertical-align: middle;
    margin-right: 10px;
    background: #F3F7F8;
    padding: 5px;
    border-radius: 5px;
}

/* Show widget when ready */
#google_translate_element.ready {
    display: inline-block !important;
}

/* Style the Google Translate widget */
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 14px !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(0,0,0,0.05) !important;
}

/* Remove any default link styling */
.goog-te-gadget a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Ensure dropdown works properly */
.goog-te-menu-frame {
    z-index: 9999 !important;
}

/* Hide Google "G" icon */
.goog-te-gadget-icon {
    display: none !important;
}

/* Hide Google branding text */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget {
    font-family: inherit !important;
    font-size: 14px !important;
}

/* Remove Google Translate attribution */
.goog-te-gadget .goog-te-combo {
    display: none !important;
}

/* Hide the "Google Translate" text */
.goog-te-gadget .goog-te-banner-frame {
    display: none !important;
}

/* Alternative way to hide Google branding */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Hide the Google Translate attribution at bottom */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-frame {
    z-index: 9999 !important;
}

/* Custom language display with flags */
.goog-te-gadget-simple span {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* Flag styles for each language */
.goog-te-gadget-simple .flag-es {
    background-image: url('https://flagcdn.com/w40/es.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 20px !important;
    height: 15px !important;
    display: inline-block !important;
    border-radius: 2px !important;
}

.goog-te-gadget-simple .flag-de {
    background-image: url('https://flagcdn.com/w40/de.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 20px !important;
    height: 15px !important;
    display: inline-block !important;
    border-radius: 2px !important;
}

.goog-te-gadget-simple .flag-fr {
    background-image: url('https://flagcdn.com/w40/fr.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 20px !important;
    height: 15px !important;
    display: inline-block !important;
    border-radius: 2px !important;
}

.goog-te-gadget-simple .flag-it {
    background-image: url('https://flagcdn.com/w40/it.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 20px !important;
    height: 15px !important;
    display: inline-block !important;
    border-radius: 2px !important;
}

.goog-te-gadget-simple .flag-en {
    background-image: url('https://flagcdn.com/w40/gb.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 20px !important;
    height: 15px !important;
    display: inline-block !important;
    border-radius: 2px !important;
} 

