/* Language Switcher Element Styles */

.pt-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

/* Dropdown toggle */
.pt-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pt-switcher__toggle:hover {
    border-color: #94a3b8;
}

.pt-switcher__arrow {
    transition: transform 0.2s;
}

.pt-switcher__toggle[aria-expanded="true"] .pt-switcher__arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.pt-switcher__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    min-width: 160px;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}

.pt-switcher__dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pt-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    color: #334155;
    text-decoration: none;
    font-size: inherit;
    transition: background-color 0.15s;
}

.pt-switcher__item:hover {
    background: #f1f5f9;
    text-decoration: none;
    color: #1e293b;
}

.pt-switcher__item--active {
    font-weight: 600;
    color: #1e293b;
}

/* Inline links */
.pt-switcher__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-switcher__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: inherit;
    transition: color 0.15s, background-color 0.15s;
}

.pt-switcher__link:hover {
    color: #1e293b;
    background: #f1f5f9;
    text-decoration: none;
}

.pt-switcher__link--active {
    color: #1e293b;
    font-weight: 600;
}

/* Flags only */
.pt-switcher__flags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-switcher__flag-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
}

.pt-switcher__flag-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pt-switcher__flag-link--active {
    opacity: 1;
}

/* Flag emoji wrapper */
.pt-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.pt-flag--rectangle {
    font-size: 22px;
}

/* Flag glyphs. "Twemoji Country Flags" is only DECLARED when the optional
   "Load the bundled flag font" setting is on (see PT_Switcher::init); when it
   is off the family simply doesn't resolve and the platform's own colour-emoji
   font renders exactly as before. */
.pt-flag {
    font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
