/* WPTranslate Guru — Language Switcher Styles */

.wptg-language-switcher {
    display: inline-block;
}

/* List layout */
.wptg-lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wptg-lang-item a,
.wptg-lang-item .wptg-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.wptg-lang-item a:hover {
    background: rgba(0,0,0,.07);
}

.wptg-lang-item--active .wptg-lang-current {
    font-weight: 700;
    border-bottom: 2px solid currentColor;
}

/* Flags: SVG image (or emoji fallback) */
.wptg-flag {
    font-size: 1.1em;
    line-height: 1;
}
/* Flag + name; the "Size" setting is applied as an inline font-size */
.wptg-lang-label {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    line-height: 1.2;
}
img.wptg-flag {
    display: inline-block;
    width: 1.33em;
    height: 1em;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    margin: 0;
}

/* Dropdown layout (no JavaScript: <details>) */
.wptg-switcher-dropdown {
    position: relative;
    display: inline-block;
}
.wptg-switcher-dropdown > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.wptg-switcher-dropdown > summary::-webkit-details-marker { display: none; }
.wptg-switcher-dropdown > summary::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .7;
}
.wptg-switcher-dropdown[open] > summary::after { transform: rotate(180deg); }
.wptg-switcher-dropdown > .wptg-lang-list {
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    min-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px;
    background: #fff;
    color: #1d2327;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}
.wptg-switcher-dropdown .wptg-lang-item a { width: 100%; white-space: nowrap; }

/* Native select layout */
.wptg-switcher--select select {
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Languages injected into navigation menus (regular menu items) */
.wptg-lang-menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wptg-lang-menu-item--active > a { font-weight: 700; }
