.wcfat-switcher {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    color: var(--wcfat-text, #111827);
    font: 500 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.col-full-nav .wcfat-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.wcfat-switcher,
.wcfat-switcher *,
.wcfat-switcher *::before,
.wcfat-switcher *::after {
    box-sizing: border-box;
}

.wcfat-switcher--floating {
    position: fixed;
    z-index: 999999;
}

.wcfat-switcher__trigger {
    min-width: 48px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid var(--wcfat-border, #d1d5db);
    border-radius: var(--wcfat-radius, 14px);
    background: var(--wcfat-bg, #ffffff);
    color: var(--wcfat-text, #111827);
    box-shadow: var(--wcfat-shadow, 0 16px 44px rgba(15, 23, 42, 0.18));
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.wcfat-switcher--floating .wcfat-switcher__trigger {
    background: var(--wcfat-accent, #0f172a);
    border-color: var(--wcfat-accent, #0f172a);
    color: #ffffff;
}

.wcfat-switcher__trigger:hover,
.wcfat-switcher__trigger:focus-visible {
    border-color: var(--wcfat-accent, #0f172a);
    outline: none;
    transform: translateY(-1px);
}

.wcfat-switcher.is-open .wcfat-switcher__trigger {
    border-color: var(--wcfat-accent, #0f172a);
}

.wcfat-switcher__current,
.wcfat-switcher__choice-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.wcfat-switcher__current {
    max-width: min(56vw, 220px);
}

.wcfat-switcher__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    margin-top: -3px;
    opacity: .72;
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.wcfat-switcher.is-open .wcfat-switcher__chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.wcfat-switcher__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 2;
    width: max-content;
    min-width: 240px;
    max-width: min(92vw, 380px);
    padding: var(--wcfat-pad, 12px);
    background: var(--wcfat-bg, #ffffff);
    border: 1px solid var(--wcfat-border, #d1d5db);
    border-radius: var(--wcfat-radius, 14px);
    box-shadow: var(--wcfat-shadow, 0 16px 44px rgba(15, 23, 42, 0.18));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-4px) scale(.98);
    transform-origin: left top;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.col-full-nav .wcfat-switcher__panel {
    top: calc(100% - 22px);
}
.wcfat-switcher.is-open .wcfat-switcher__panel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wcfat-switcher--pos-bottom_right .wcfat-switcher__panel {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    left: auto;
    transform-origin: right bottom;
}

.wcfat-switcher--pos-bottom_left .wcfat-switcher__panel {
    top: auto;
    bottom: calc(100% + 10px);
    left: 0;
    transform-origin: left bottom;
}

.wcfat-switcher--pos-top_right .wcfat-switcher__panel {
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform-origin: right top;
}

.wcfat-switcher--pos-top_left .wcfat-switcher__panel {
    top: calc(100% + 10px);
    left: 0;
    transform-origin: left top;
}

.wcfat-switcher__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wcfat-switcher__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--wcfat-muted, #6b7280);
}

.wcfat-switcher__search,
.wcfat-switcher__button {
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.wcfat-switcher__search {
    width: 100%;
    min-height: 40px;
    margin-bottom: 10px;
    padding: 9px 11px;
    border: 1px solid var(--wcfat-border, #d1d5db);
    border-radius: calc(var(--wcfat-radius, 14px) - 4px);
    background: rgba(255, 255, 255, .45);
    color: inherit;
}

.wcfat-switcher__search:focus {
    border-color: var(--wcfat-accent, #0f172a);
    outline: none;
}

.wcfat-switcher__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--wcfat-gap, 10px);
    max-height: min(46vh, 320px);
    margin: 0;
    padding: 0;
    overflow: auto;
    margin-top: 10px;
    margin-right: -8px;
}
.wcfat-switcher__list::-webkit-scrollbar {
    width: 8px;
}
.wcfat-switcher__list::-webkit-scrollbar-thumb {
    background: var(--wcfat-scrollbar, rgba(0, 0, 0, 0.1));
    border-radius: 4px;
}


.wcfat-switcher--list .wcfat-switcher__list,
.wcfat-switcher--dropdown .wcfat-switcher__list {
    display: grid;
    grid-template-columns: 1fr;
}

.wcfat-switcher--dropdown .wcfat-switcher__panel {
    min-width: 220px;
}

.wcfat-switcher__button {
    min-height: 40px;
    width: 100%;
    border: 1px solid var(--wcfat-border, #d1d5db);
    border-radius: calc(var(--wcfat-radius, 14px) - 4px);
    background: transparent;
    color: inherit;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.wcfat-switcher--pills .wcfat-switcher__button {
    width: auto;
}

.wcfat-switcher--list .wcfat-switcher__button,
.wcfat-switcher--dropdown .wcfat-switcher__button {
    justify-content: space-between;
}

.wcfat-switcher__button:hover,
.wcfat-switcher__button:focus-visible {
    border-color: var(--wcfat-accent, #0f172a);
    outline: none;
    transform: translateY(-1px);
}

.wcfat-switcher__button.is-active {
    background: var(--wcfat-accent, #0f172a);
    border-color: var(--wcfat-accent, #0f172a);
    color: #ffffff;
}

.wcfat-switcher__button.is-active::after {
    content: "";
    width: 7px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    margin-left: 4px;
    transform: rotate(45deg);
}

.wcfat-switcher--pills .wcfat-switcher__button.is-active::after {
    display: none;
}

.wcfat-switcher__flag {
    font-size: 16px;
    line-height: 1;
}

.wcfat-switcher__label,
.wcfat-switcher__code {
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcfat-switcher__label {
    white-space: nowrap;
}

.wcfat-switcher__code {
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: .8;
}

.goog-tooltip,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

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

body {
    top: 0 !important;
}

@media (max-width: 767px) {
    .wcfat-switcher--floating {
        top: auto !important;
        bottom: 16px !important;
    }

    .wcfat-switcher--pos-bottom_right,
    .wcfat-switcher--pos-top_right {
        right: 16px !important;
        left: auto !important;
    }

    .wcfat-switcher--pos-bottom_left,
    .wcfat-switcher--pos-top_left {
        right: auto !important;
        left: 16px !important;
    }

    .wcfat-switcher__panel,
    .wcfat-switcher--pos-top_right .wcfat-switcher__panel,
    .wcfat-switcher--pos-top_left .wcfat-switcher__panel {
        top: auto;
        bottom: calc(100% + 8px);
        width: min(84vw, 340px);
        min-width: min(84vw, 340px);
        max-width: min(84vw, 340px);
    }

    .wcfat-switcher--shortcode .wcfat-switcher__panel {
        right: auto;
        left: 0;
    }

    .wcfat-switcher--pills .wcfat-switcher__button {
        flex: 1 1 calc(50% - var(--wcfat-gap, 10px));
    }
}
