/* Google Translate Styling */
#google_translate_element {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    color: #333333 !important;
    transition: all 0.3s ease;
}

.goog-te-gadget-simple:hover {
    border-color: #E31E24 !important;
    /* Brand Red */
    background-color: #fff !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #333333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    border-left: none !important;
    color: #333333 !important;
    font-weight: 600 !important;
}

/* Hide the Google icon */
.goog-te-gadget-icon {
    display: none !important;
}

/* Hide the Google "Powered by" text if it appears separately (it usually is inside gadget-simple but sometimes outside) */
.goog-te-gadget {
    color: transparent !important;
}

/* Google Translate Dropdown Menu - Vertical Alignment */
.goog-te-menu-frame {
    z-index: 99999999 !important;
    position: fixed !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    top: 105px !important;
    /* Position clearly below the 100px header */
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;

    /* Layout constraints */
    width: 250px !important;
    max-height: 500px !important;
    height: 350px !important;
    /* Fixed height to force scrolling */
    overflow-y: scroll !important;
    /* Always show scrollbar */
    overflow-x: hidden !important;
}

/* Ensure the iframe body matches */
iframe.goog-te-menu-frame {
    width: 250px !important;
    height: 350px !important;
}

/* If the menu renders as a div (common in some modes) */
.goog-te-menu2 {
    background-color: #ffffff !important;
    width: 100% !important;
}

/* Force Vertical List Layout inside the menu */
.goog-te-menu2 table,
.goog-te-menu2 tbody,
.goog-te-menu2 tr,
.goog-te-menu2 td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

.goog-te-menu2-item div {
    padding: 10px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.goog-te-menu2-item:last-child div {
    border-bottom: none !important;
}

/* Force the table inside to be readable */
.goog-te-menu2-item {
    background-color: #ffffff !important;
}

.goog-te-menu2-item div,
.goog-te-menu2-item span,
.goog-te-menu2-item table,
.goog-te-menu2-item tr,
.goog-te-menu2-item td {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
}

.goog-te-menu2-item:hover {
    background-color: #fce8e8 !important;
    /* Light Brand Red */
}

.goog-te-menu2-item-selected {
    background-color: #fce8e8 !important;
}

/* Ensure the iframe body is white if accessible */
iframe.goog-te-menu-frame {
    background-color: #ffffff !important;
}

/* Hide the top banner frame */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}