/* Google Translate Widget Styling */
#google_translate_element {
    display: inline-block;
}

/* Hide Google Translate banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Style the Google Translate dropdown */
.goog-te-gadget {
    font-family: inherit !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid var(--rz-border-color, #dee2e6) !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.goog-te-gadget-simple:hover {
    border-color: var(--rz-primary, #0d6efd) !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-menu-value {
    color: var(--rz-text-color, #212529) !important;
}

.goog-te-menu-value span {
    color: var(--rz-text-color, #212529) !important;
}

/* Custom translate button styling */
.translate-button-container {
    display: inline-block;
    position: relative;
}

.translate-icon-button {
    background: none;
    border: 1px solid var(--rz-border-color, #dee2e6);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--rz-text-color, #212529);
    font-size: 16px;
    transition: all 0.2s;
}

.translate-icon-button:hover {
    border-color: var(--rz-primary, #0d6efd);
    background-color: var(--rz-primary-lighter, rgba(13, 110, 253, 0.1));
}

.translate-icon-button i {
    margin-right: 4px;
}
