.lp-switcher {
    --lp-primary: #50B1A2;
    --lp-bg: #F5F5F5;
    --lp-text: #2E303F;
    --lp-border: #2E303F;
    --lp-radius: 12px;

    position: relative;
    display: inline-flex;
    font-family: "Manrope", "Roboto", sans-serif;
    z-index: 100;
}

.topbar-lang-switcher {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.topbar-lang-switcher .lp-switcher {
    z-index: 300;
}

.topbar-contact-info {
    flex-wrap: wrap;
}

.lp-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--lp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-text);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    box-shadow: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lp-switcher__toggle:hover,
.lp-switcher__toggle[aria-expanded="true"] {
    background: #fff;
    border-color: var(--lp-border);
    box-shadow: 0 2px 10px rgba(46, 48, 63, 0.08);
}

.lp-switcher__icon {
    display: flex;
    color: var(--lp-primary);
    flex-shrink: 0;
}

.lp-switcher__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.lp-switcher__icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.lp-switcher__current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.lp-switcher__emoji {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.lp-switcher__current-text {
    font-weight: 700;
}

.lp-switcher__current-text::before,
.lp-switcher__label::before,
.lp-switcher__flag::before {
    content: attr(data-lp-label);
}

.lp-switcher--display-code .lp-switcher__current-text,
.lp-switcher--display-flag_code .lp-switcher__current-text {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.lp-switcher--display-flag_only .lp-switcher__current {
    gap: 0;
}

.lp-switcher--display-flag_only .lp-switcher__emoji {
    font-size: 20px;
}

/* оригінальний шеврон */
.lp-switcher__arrow {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    margin-left: 2px;
    transition: transform 0.2s;
    flex-shrink: 0;
    opacity: 0.7;
}

.lp-switcher__toggle[aria-expanded="true"] .lp-switcher__arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
    opacity: 1;
}

/*
 * Dropdown як на референсі:
 * ширина по контенту (без порожнечі справа),
 * м’яка тінь, сірий pill на активному.
 */
.lp-switcher__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 6px;
    padding-right: 0 !important;
    list-style: none;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.lp-switcher__list[hidden] {
    display: none;
}

.lp-switcher__list > li {
    display: block;
    margin: 0 !important;
    margin-right: 0 !important;
    padding: 0;
    list-style: none;
    width: auto;
}

.lp-switcher__label {
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.lp-switcher__option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--lp-text);
    font-size: 13px;
    line-height: 1;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.lp-switcher__option:hover {
    background: #f3f4f6;
}

.lp-switcher__option.is-active {
    background: #eceff3;
    color: var(--lp-text);
    font-weight: 700;
}

.lp-switcher__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 4px;
    border-radius: 4px;
    background: var(--lp-text);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.lp-switcher--no-icon .lp-switcher__icon {
    display: none;
}

.lp-switcher__option .lp-switcher__emoji {
    font-size: 16px;
    line-height: 1;
}

.lp-switcher--display-flag_only .lp-switcher__option {
    justify-content: center;
}

.lp-switcher--display-full .lp-switcher__flag {
    display: none;
}

/* Pills */
.lp-switcher--pills .lp-switcher__toggle {
    border-radius: 999px;
    padding: 10px 18px;
}

.lp-switcher--pills .lp-switcher__list {
    border-radius: 16px;
    padding: 8px;
}

.lp-switcher--pills .lp-switcher__option {
    border-radius: 999px;
}

/* Compact */
.lp-switcher--compact .lp-switcher__toggle {
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
}

.lp-switcher--compact .lp-switcher__list {
    padding: 4px;
}

.lp-switcher--compact .lp-switcher__option {
    padding: 7px 10px;
    font-size: 12px;
}

.lp-switcher--compact .lp-switcher__icon svg,
.lp-switcher--compact .lp-switcher__icon img {
    width: 16px;
    height: 16px;
}

/* Mobile: лише кнопка мови по лівому краю */
@media (max-width: 767px) {
    .topbar-contact-info {
        justify-content: flex-start;
    }

    .topbar-lang-switcher {
        margin-right: 0;
    }
}

/* Google Translate: приховати службовий UI */
#lp-google-translate,
.goog-te-banner-frame,
body > .skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-menu-value,
.goog-te-gadget,
.goog-te-combo,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-vH1Gmf-RbRzK,
iframe.skiptranslate,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

body > .skiptranslate {
    height: 0 !important;
}

body {
    top: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

font font {
    background-color: transparent !important;
    box-shadow: none !important;
}
