.ww-topbar .ww-nav {
    max-width: 1380px;
}

.ww-country-switcher {
    position: relative;
    flex: 0 0 auto;
}

.ww-topbar .ww-actions {
    gap: 8px;
}

.ww-country-switcher,
.ww-country-switcher * {
    box-sizing: border-box;
}

.ww-country-switcher__trigger {
    display: inline-flex;
    min-width: 58px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 7px 4px 5px;
    border: 1px solid #484f58;
    border-radius: 999px;
    background: transparent;
    color: #8b949e;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.ww-country-switcher__trigger:hover,
.ww-country-switcher__trigger[aria-expanded="true"] {
    border-color: rgba(28, 173, 117, 0.5);
    background: rgba(28, 173, 117, 0.1);
    color: #f0f6fc;
}

.ww-country-switcher__trigger > i {
    font-size: 10px;
    transition: rotate 120ms ease;
}

.ww-country-switcher__trigger[aria-expanded="true"] > i {
    rotate: 180deg;
}

.ww-country-switcher__flag,
.ww-country-switcher__option-flag {
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid #484f58;
    background: #21262d;
}

.ww-country-switcher__flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.ww-country-switcher__option-flag {
    width: 32px;
    height: 22px;
    border-radius: 4px;
}

.ww-country-switcher__flag img,
.ww-country-switcher__option-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ww-country-switcher__flag--australia img {
    object-position: left center;
}

.ww-country-switcher__menu {
    position: absolute;
    z-index: 1000001;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    padding: 6px;
    border: 1px solid #30363d;
    border-radius: 10px;
    background: #161b22;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.ww-country-switcher__menu[hidden] {
    display: none;
}

.ww-country-switcher__link {
    display: grid;
    min-height: 48px;
    grid-template-columns: 32px 1fr 16px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #f0f6fc;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.ww-country-switcher__link:hover,
.ww-country-switcher__link:focus-visible {
    background: #21262d;
    color: #fff;
}

.ww-country-switcher :focus-visible {
    outline: 3px solid #47d59d;
    outline-offset: 3px;
}

@media (min-width: 1151px) {
    .ww-topbar .ww-actions {
        display: flex;
    }

    .ww-topbar .ww-burger {
        display: none;
    }
}

@media (max-width: 520px) {
    .ww-topbar .ww-nav {
        gap: 8px;
    }

    .ww-country-switcher__trigger {
        min-width: 54px;
    }

    .ww-country-switcher__menu {
        right: 0;
    }
}
