/**
 * MedGtranslatePro - Flags Only Design CSS
 * @author Mediacom87
 */

.medgtranslatepro-flags-only {
    padding: 10px;
}

.gtranslate-flags-only-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gtranslate-flag-only {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 18px;
    border-radius: 4px;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    padding: 5px 4px;
    justify-content: flex-start;
}

.gtranslate-flag-only:hover {
    transform: scale(1.15);

}

.gtranslate-flag-only.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.gtranslate-flag-only .gtranslate-flag {
    width: 100%;
    height: 100%;
}

/* Flag icons sizing */
.gtranslate-flag-only .gtranslate-flag.fi {
    font-size: 1.5em;
    line-height: 1;
}

/* Placeholder for languages without flags */
.gtranslate-flag-only .gtranslate-flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e9ecef;
    font-size: 14px;
}

.gtranslate-flag-only.gtranslate-no-flag {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .gtranslate-flags-only-container {
        justify-content: center;
    }
}


.gtranslate-flag-source-wrapper {
    position: relative;
    display: inline-block;
}

.gtranslate-flag-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
}

.gtranslate-flag-active {
    width: 24px;
    height: 18px;
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
}

.gtranslate-lang-code-active {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.gtranslate-chevron {
    font-size: 10px;
    color: #666;
    line-height: 1;
}

.gtranslate-flag-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
}

.gtranslate-flag-only {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: 18px;
    border-radius: 4px;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    padding: 2px 4px;
}

.gtranslate-flag-only.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.gtranslate-flag-only .gtranslate-flag {
    width: 24px;
    height: 18px;
    flex-shrink: 0;
}

.gtranslate-flag-only .gtranslate-flag.fi {
    font-size: 1.2em;
    line-height: 1;
}

.gtranslate-flag-only .gtranslate-flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    background: #e9ecef;
    font-size: 14px;
}

.gtranslate-flag-only.gtranslate-no-flag {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.gtranslate-lang-code {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.gtranslate-flag-only:focus,
.gtranslate-flag-only:focus-visible,
.gtranslate-flag-trigger:focus,
.gtranslate-flag-trigger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.goog-te-banner-frame,
body > .skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

#google_translate_element {
    display: none !important;
}

.goog-te-gadget {
    display: none !important;
}