
/* 1. Hide "Use with AI" */
ai-actions {
    display: none !important;
}


/* 2. Position Google Translate above "On this Page" */
#google_translate_element {
    position: absolute !important;
    top: 70px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 1001 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    opacity: 0.95;
}


/* 3. Keep Google Translate horizontal */
#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
    color: transparent !important;
    white-space: nowrap !important;
}

#google_translate_element .goog-te-gadget-simple {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;

    width: auto !important;
    height: 34px !important;
    min-height: 34px !important;

    background: #ffffff !important;
    border: 1.5px solid #ed1b2f !important;
    border-radius: 20px !important;

    padding: 0 12px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

/* 4. Keep text and arrow on one line */
#google_translate_element .goog-te-gadget-simple span {
    display: inline !important;
    color: #ed1b2f !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* 5. Hide Google icon for a cleaner look */
#google_translate_element .goog-te-gadget-icon {
    display: none !important;
}

/* 6. Remove unwanted spacing */
#google_translate_element .goog-te-gadget-simple img {
    display: inline-block !important;
    vertical-align: middle !important;
}

#google_translate_element .goog-te-gadget-simple a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* 7. Prevent page shifting */
body {
    top: 0 !important;
}

/* 8. Hover effect */
#google_translate_element:hover {
    opacity: 1;
}
