.wpr-nav-menu-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 15px 0 20px 0;
    padding: 15px 20px;
}

.wpr-nav-menu-toolbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wpr-nav-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #135e96;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.wpr-nav-menu-link__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.wpr-nav-menu-link__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpr-nav-menu-link__label {
    display: inline-flex;
    align-items: center;
}

.wpr-nav-menu-link.is-active {
    color: #0a4b78;
    text-decoration: underline;
}

.wpr-nav-menu-link:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.wpr-nav-menu-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wpr-nav-menu-toolbar__actions:empty {
    display: none;
}

.wpr-nav-menu-toolbar__select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.wpr-nav-menu-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
}

.wpr-nav-menu-dropdown__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid #ccd0d4;
    background: #fff;
    padding: 6px 12px;
    border-radius: 3px;
}

.wpr-nav-menu-dropdown__label:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.wpr-nav-menu-dropdown.is-open .wpr-nav-menu-dropdown__label {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.wpr-nav-menu-dropdown__label::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 8px;
}

.wpr-nav-menu-dropdown__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
}

.wpr-nav-menu-dropdown__option {
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.wpr-nav-menu-dropdown__option:hover,
.wpr-nav-menu-dropdown__option:focus {
    background: #f0f6fc;
    outline: none;
}

.wpr-nav-menu-dropdown__option.is-selected {
    background: #2271b1;
    color: #fff;
}

@media (min-width: 782px) {
    .wpr-nav-menu-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

}

.wpr-nav-menu-language-field {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.wpr-nav-menu-language-field .wpr-nav-menu-language-control {
    width: 100%;
}

@media (min-width: 600px) {
    .wpr-nav-menu-language-enabled {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 12px;
    }

    .wpr-nav-menu-language-enabled #menu-name {
        flex: 1 1 260px;
    }

    .wpr-nav-menu-language-field {
        margin-top: 0;
        flex: 0 0 auto;
    }

    .wpr-nav-menu-language-field .wpr-nav-menu-language-control {
        min-width: 200px;
    }
}

.wpr-nav-menu-debug {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    padding: 12px 16px;
}

.wpr-nav-menu-debug__title {
    display: flex;
    font-weight: 600;
    font-size: 13px;
}

.wpr-nav-menu-debug__row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.wpr-nav-menu-debug__item {
    display: flex;
    align-items: center;
    font-size: 12px;
}
