/* Language Switcher */
.gt_switcher_wrapper {
    display: inline-block;
}

.gt_switcher {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    z-index: 99999;
}

.gt_selected {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    user-select: none;
    transition: background 0.2s;
}

.gt_selected:hover {
    background: #e5e5e5;
}

.gt_arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    transition: transform 0.3s;
}

.gt_arrow.gt_open {
    transform: rotate(180deg);
}

.gt_options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 180px;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999999;
}

.gt_options.gt_open {
    display: block;
}

.gt_option {
    display: block;
    padding: 10px 16px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.gt_option:last-child {
    border-bottom: none;
}

.gt_option:hover {
    background: #2563eb;
    color: #fff;
}

.gt_option.gt_current {
    display: none;
}

/* Floating widget */
.gt_floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
}

.gt_floating .gt_selected {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.gt_floating .gt_selected:hover {
    background: #1d4ed8;
}

.gt_floating .gt_arrow {
    display: none;
}

.gt_floating .gt_options {
    bottom: 100%;
    top: auto;
    left: auto;
    right: 0;
    margin-bottom: 8px;
    margin-top: 0;
}

/* Flags */
.gt_flag {
    display: inline-flex;
    align-items: center;
    width: 22px;
    height: 16px;
    flex-shrink: 0;
}

.gt_flag svg {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.gt_selected .gt_flag {
    display: none;
}

.gt_selected .gt_flag:first-child {
    display: inline-flex;
}

.gt_floating .gt_selected .gt_flag:first-child {
    display: none;
}

.gt_floating .gt_selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.gt_floating .gt_selected .gt_flag {
    display: inline-flex !important;
    width: 24px;
    height: 18px;
}

.gt_floating .gt_selected .gt_lang-code {
    font-size: 11px;
}
.gt_status {
    font-size: 13px;
    color: #666;
    display: inline-block;
    margin-left: 8px;
}

.gt_status.gt_error {
    color: #dc3545;
}

/* Spinner */
.gt_spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: gt_spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes gt_spin {
    to { transform: rotate(360deg); }
}
