/**
 * Language Switcher — Standalone Styles
 *
 * Extracted from tips.css so the [language_switcher] shortcode can be
 * used on any post type without pulling in all tips styles.
 */

.tip-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.tip-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.25rem;
    border: 2px solid var(--wp--preset--color--primary, #DB3D08);
    border-radius: 999px;
    background: transparent;
    color: var(--wp--preset--color--primary, #DB3D08);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
}
.tip-lang-toggle:hover,
.tip-lang-toggle[aria-expanded="true"] {
    background: rgba(219, 61, 8, 0.06);
}
.tip-lang-toggle__label {
    display: inline;
}
@media screen and (max-width: 899px) {
    .tip-lang-toggle {
        padding: 0;
        width: 68px;
    }
    .tip-lang-toggle__label {
        display: none;
    }
}
.tip-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 80px;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1000;
}
.tip-lang-switcher.is-open .tip-lang-dropdown {
    display: block;
}
.tip-lang-dropdown li a {
    display: block;
    padding: 0.45rem 1.2rem;
    color: var(--wp--preset--color--primary, #DB3D08);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.tip-lang-dropdown li a:hover {
    background: rgba(219, 61, 8, 0.06);
}
.tip-lang-dropdown li.is-active a {
    color: #333;
    cursor: default;
}
