.gloty-language-switcher-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    user-select: none;
}

/* Trigger / Closed State */
.gloty-switcher-trigger {
    display: flex;
    align-items: center;
    padding: 4px 8px 4px 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    line-height: normal;
    cursor: pointer;
    min-width: 60px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gloty-switcher-trigger:hover {
    border-color: #999;
}

.gloty-language-switcher-container.is-open .gloty-switcher-trigger {
    border-color: #3582c4;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Icons */
.gloty-globe-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #666;
    pointer-events: none;
}

.gloty-globe-icon svg {
    width: 14px;
    height: 14px;
}

/* Custom Arrow */
.gloty-switcher-trigger::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s;
}

.gloty-language-switcher-container.is-open .gloty-switcher-trigger::after {
    transform: rotate(180deg);
}

/* Dropdown / Open State */
.gloty-switcher-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background: #fff;
    border: 1px solid #3582c4;
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
}

.gloty-language-switcher-container.is-open .gloty-switcher-dropdown {
    display: block;
}

.gloty-switcher-dropdown li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
    white-space: nowrap;
}

.gloty-switcher-dropdown li a:hover {
    background-color: #f0f7ff;
}

.gloty-switcher-dropdown li.is-active a {
    background-color: #eef4fb;
    font-weight: 600;
    color: #3582c4;
}