/* 1. Hide Scroll Viewport AI actions */
ai-actions {
    display: none !important;
}

/* 2. Position the widget below the header on the right */
#google_translate_element {
    position: absolute !important;
    top: 115px !important;
    right: 20px !important;
    z-index: 1001 !important;
    display: block !important;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#google_translate_element:hover {
    opacity: 1;
}

/* 3. Style the dropdown box and add a Custom Globe Icon */
#google_translate_element select {
    background-color: #ffffff !important;
    color: #ed1b2f !important; /* McGill Red */
    border: 1.5px solid #ed1b2f !important;
    border-radius: 20px !important; /* Rounded pill shape */
    padding: 6px 10px 6px 30px !important; /* Space on left for icon */
    font-weight: bold !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ed1b2f' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM2.04 4.326c.325 1.329 2.532 2.54 3.717 3.004.214.083.42.152.617.204a.27.27 0 0 1 .158.39c-.11.21-.216.441-.303.677-.014.037-.054.047-.078.02a4.391 4.391 0 0 1-.56-.788c-.033-.058-.118-.017-.093.045a4.8 4.8 0 0 0 .583.896c.012.016.012.038 0 .054l-.5.75a.27.27 0 0 1-.4.08l-1.294-.863a1.125 1.125 0 0 0-1.08-.135L1.313 11.25a7.01 7.01 0 0 1-1.035-3.518c0-1.341.375-2.59 1.026-3.652a.27.27 0 0 1 .374-.083l.362.229z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 8px center !important;
}

/* 4. Clean up UI: Hide Google branding and the top banner frame */
.goog-logo-link, 
.goog-te-gadget span, 
.goog-te-banner-frame, 
#goog-gt-tt, 
.goog-te-balloon-frame {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

body {
    top: 0 !important; /* Stops the page from shifting down */
}