.woohsb-taxonomy-menu {
    position: relative;
}

.woohsb-taxonomy-menu__toggle {
    cursor: pointer;
}

.woohsb-taxonomy-menu__panel[hidden],
.woohsb-taxonomy-menu__empty[hidden],
.woohsb-taxonomy-menu__list li[hidden] {
    display: none !important;
}

.woohsb-taxonomy-menu__panel {
    background: var(--wp--preset--color--base, #fff);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    color: inherit;
    display: flex;
    flex-direction: column;
    max-height: min(70vh, 32rem);
    max-height: min(70dvh, 32rem);
    min-height: 10rem;
    overflow: hidden;
    padding: 0.65rem;
    position: fixed;
    z-index: 10000;
}

.woohsb-taxonomy-menu--presentation-dropdown > .woohsb-taxonomy-menu__panel {
    width: min(20rem, calc(100vw - 2rem));
}

.woohsb-taxonomy-menu--presentation-mega > .woohsb-taxonomy-menu__panel {
    width: min(58rem, calc(100vw - 2rem));
}

.woohsb-taxonomy-menu__search {
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
    position: relative;
}

.woohsb-taxonomy-menu__search-input {
    box-sizing: border-box;
    font: inherit;
    line-height: 1.3;
    min-height: 2.3rem;
    padding: 0.45rem var(--woohsb-taxonomy-menu-search-input-padding-right, 2.5rem) 0.45rem 0.65rem;
    width: 100%;
}

.woohsb-taxonomy-menu__search-icon {
    color: var(--woohsb-taxonomy-menu-search-icon-color, currentColor);
    font-size: var(--woohsb-taxonomy-menu-search-icon-size, 16px);
    height: 1em;
    pointer-events: none;
    position: absolute;
    right: var(--woohsb-taxonomy-menu-search-icon-padding-right, 12px);
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
}

.woohsb-taxonomy-menu__search-icon::before {
    border: 0.125em solid currentColor;
    border-radius: 50%;
    content: "";
    height: 0.58em;
    left: 0.05em;
    opacity: 0.55;
    position: absolute;
    top: 0.05em;
    width: 0.58em;
}

.woohsb-taxonomy-menu__search-icon::after {
    background: currentColor;
    content: "";
    height: 0.42em;
    opacity: 0.55;
    position: absolute;
    right: 0.08em;
    top: 0.62em;
    transform: rotate(-45deg);
    transform-origin: center;
    width: 0.125em;
}

.woohsb-taxonomy-menu__list {
    flex: 1 1 auto;
    list-style: none;
    margin: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.15rem 0;
}

.woohsb-taxonomy-menu__item {
    display: block;
    margin: 0;
    position: static;
}

.woohsb-taxonomy-menu--presentation-dropdown .woohsb-taxonomy-menu__children {
    display: block;
    height: auto;
    list-style: none;
    max-height: none;
    margin: 0;
    min-width: 0;
    opacity: 1;
    overflow: visible;
    padding-left: var(--woohsb-taxonomy-menu-level-indent, 0.5em);
    position: static;
    visibility: visible;
    width: auto;
}

.woohsb-taxonomy-menu--presentation-mega .woohsb-taxonomy-menu__list {
    column-gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.woohsb-taxonomy-menu__link {
    color: inherit;
    display: block;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
}

.woohsb-taxonomy-menu__link:hover,
.woohsb-taxonomy-menu__link:focus {
    background: rgba(0, 0, 0, 0.06);
}

.woohsb-taxonomy-menu__empty {
    flex: 0 0 auto;
    margin: 0.4rem 0 0;
    opacity: 0.75;
    padding: 0.35rem 0.65rem;
}

.woohsb-taxonomy-menu--standalone {
    display: inline-block;
}

.woohsb-taxonomy-menu--standalone .woohsb-taxonomy-menu__toggle {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    padding: 0.55rem 0.8rem;
}

.wp-block-navigation .woohsb-taxonomy-menu--navigation > .woohsb-taxonomy-menu__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: flex;
    font: inherit;
    gap: 0.25rem;
    padding: 0;
    text-align: inherit;
}

.wp-block-navigation .woohsb-taxonomy-menu--navigation > .woohsb-taxonomy-menu__panel {
    display: flex;
    height: auto;
    left: auto;
    margin: 0;
    opacity: 1;
    position: fixed;
    top: auto;
    visibility: visible;
}

.wp-block-navigation .woohsb-taxonomy-menu--navigation > .woohsb-taxonomy-menu__panel[hidden] {
    display: none !important;
}

.wp-block-navigation .woohsb-taxonomy-menu--navigation .woohsb-taxonomy-menu__list {
    list-style: none;
    margin: 0;
}

.wp-block-navigation .woohsb-taxonomy-menu--navigation .woohsb-taxonomy-menu__panel .woohsb-taxonomy-menu__item,
.wp-block-navigation .woohsb-taxonomy-menu--navigation .woohsb-taxonomy-menu__panel .woohsb-taxonomy-menu__children {
    align-items: stretch;
    display: block;
    flex: none;
    position: static;
}

.woohsb-taxonomy-menu-editor-preview {
    border: 1px solid #dcdcde;
    max-width: 18rem;
    padding: 0.75rem;
}

.woohsb-taxonomy-menu-editor-preview--mega {
    max-width: 24rem;
}

.woohsb-taxonomy-menu-editor-preview__button {
    margin-bottom: 0.5rem;
}

.woohsb-taxonomy-menu-editor-preview__list {
    margin: 0;
    padding-left: 1.2rem;
}

.woohsb-taxonomy-menu-editor-preview__source {
    color: #757575;
    font-size: 12px;
}

@media (max-width: 782px) {
    .woohsb-taxonomy-menu__panel,
    .woohsb-taxonomy-menu--presentation-dropdown > .woohsb-taxonomy-menu__panel,
    .woohsb-taxonomy-menu--presentation-mega > .woohsb-taxonomy-menu__panel {
        max-height: min(78vh, 34rem);
        max-height: min(78dvh, 34rem);
        min-height: 9rem;
        width: calc(100vw - 2rem);
    }

    .woohsb-taxonomy-menu--presentation-mega .woohsb-taxonomy-menu__list {
        display: block;
    }

    .woohsb-taxonomy-menu__link {
        padding-bottom: 0.55rem;
        padding-top: 0.55rem;
    }
}
