.gt-container {
    position: relative;
    display: inline-block;
    min-height: 32px;
}

.gt-select {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.gt-custom {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #020202 !important;
    font-size: 0.8rem;
    letter-spacing: 0.032vw;
    text-align: left;
    padding: 6px 36px 6px 14px;
    background-color: #fff;
    border: 1px solid var(--base-color-primary-dark) !important;
    border-radius: 16px;
    min-width: 180px;
    min-height: 32px;
    line-height: 1;
    cursor: pointer;
    visibility: visible !important;
}

.gt-custom::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-35%);
    border-color: var(--base-color-primary-dark) transparent transparent transparent;
    border-style: solid;
    border-width: 6px 5px 0 5px;
}

.gt-flag {
    width: 20px;
    height: 14px;
    background-size: 20px 14px;
    background-repeat: no-repeat;
    background-position: center;
    flex: 0 0 20px;
}

.gt-custom-label {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1;
    color: inherit;
    white-space: nowrap;
}

.gt-empty .gt-flag {
    background-image: none !important;
    display: none;
}

.gt-list {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    display: none;
    z-index: 9999;
    text-align: start;
}

.gt-list.is-open {
    display: block;
}

.gt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #222;
    font-size: 0.8rem;
}

.gt-item:hover {
    background: #f3f3f3;
}

.gt-reset {
    margin-top: 6px;
    padding: 8px 10px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
}

.gt-reset:hover {
    color: #222;
    background: #fafafa;
}

.gt-container--desktop .gt-custom {
    color: var(--base-color-primary-dark) !important;
}

.gt-container--mobile .gt-custom {
    background-color: transparent;
}

#google_translate_element2,
#google_translate_element1 {
    height: auto !important;
    line-height: normal !important;
}

.gt-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 22, 111, 0.2);
}

.gt-select option {
    color: #000;
}


/* Buttons retain the reference appearance and support keyboard navigation. */
.gt-custom, .gt-item, .gt-reset { font-family: inherit; }
.gt-item, .gt-reset { width: 100%; text-align: left; background: transparent; border: 0; line-height: 1.4; }
.gt-reset { border-top: 1px solid #eee; }
.gt-custom:focus-visible, .gt-item:focus-visible, .gt-reset:focus-visible { outline: 2px solid var(--base-color-primary-dark, #29166f); outline-offset: 2px; }
.gt-item[aria-selected="true"] { background: #f3f3f3; }
#google_translate_element2 i { margin-right: 20px; top: 5px !important; position: relative !important; }
[data-theme="dark"] .gt-custom { color: #f1f5f9 !important; background-color: #1e293b; border-color: #64748b !important; }
[data-theme="dark"] .gt-custom::after { border-top-color: #f1f5f9; }
[data-theme="dark"] .gt-list { background: #1e293b; border-color: #64748b; }
[data-theme="dark"] .gt-item, [data-theme="dark"] .gt-reset { color: #f1f5f9; }
[data-theme="dark"] .gt-item:hover, [data-theme="dark"] .gt-item[aria-selected="true"], [data-theme="dark"] .gt-reset:hover { background: #334155; }
