/* ==========================================================
   Estilos de tu selector (los que ya tenías)
   ========================================================== */
.simple-translate-selector {
    background: transparent;
    border-radius: 4px;
    width: 50px;
    position: relative;
    display: inline-block;
}

.st-trigger {
    display: flex;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
    gap: 4px;
}

.st-trigger:hover {
    background-color: #f8f9fa;
}

.st-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    margin-top: 2px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.simple-translate-selector.open .st-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.st-arrow {
    width: 10px;
    height: 10px;
    color: #666;
    margin-left: auto;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.simple-translate-selector.open .st-arrow {
    transform: rotate(180deg);
}

.st-arrow svg {
    width: 100%;
    height: 100%;
}

.st-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.st-option:last-child {
    border-bottom: none;
}

.st-option:hover {
    background-color: #f8f9fa;
}

.st-option.selected {
    background-color: #eee;
}

.st-flag {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
    object-fit: cover;
}

.st-code {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.st-check {
    margin-left: auto;
    width: 12px;
    height: 12px;
    visibility: hidden;
    color: green;
}

.st-option.selected .st-check {
    visibility: visible;
}

.st-check svg {
    display: block;
}


/* ==========================================================
   REGLAS CRÍTICAS PARA OCULTAR LA BARRA DE GOOGLE
   ========================================================== */

/* 1. Anula el desplazamiento 'top: 40px' que Google añade al body */
body {
    top: 0px !important; 
}

/* 2. Oculta el contenedor principal de la barra de Google (skiptranslate) */
.skiptranslate {
    display: none !important;
}

/* 3. Oculta la parte del 'powered by Google' si aparece en el footer/div oculto */
.goog-te-gadget {
    display: none !important;
}

/* 4. Asegura que los elementos de font dentro del translate no tengan un color de fondo */
font font {
    background-color: transparent !important;
    box-shadow: none !important;
    position: initial !important;
}