.wp-block-shortcode.yblkrest-menu-nav-host {
    display: block;
    position: relative;
    width: 100%;
    margin-block: 0 !important;
    clear: both;
}

.yblkrest-menu-nav {
    --yblkrest-menu-nav-sticky-top: 0px;
    display: block;
    position: sticky;
    top: var(--yblkrest-menu-nav-sticky-top);
    z-index: 900;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    isolation: isolate;
    box-shadow:
        0 -8px 18px rgba(31, 27, 23, 0.04),
        0 10px 24px rgba(31, 27, 23, 0.08);
    background: #fbfbfb;
}

.yblkrest-menu-nav[hidden] {
    display: none !important;
}

.yblkrest-menu-nav *,
.yblkrest-menu-nav *::before,
.yblkrest-menu-nav *::after {
    box-sizing: border-box;
}

.yblkrest-menu-nav__inner {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1vw, 14px);
    width: 100%;
    min-width: 0;
    padding: 24px max(clamp(16px, 5vw, 104px), env(safe-area-inset-left, 0px)) 24px max(clamp(16px, 5vw, 104px), env(safe-area-inset-right, 0px));
}

.yblkrest-menu-nav__viewport {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    /*
     * A horizontal scroll container clips its contents vertically. Keep a
     * one-pixel gutter for sub-pixel button heights (common at browser zoom),
     * otherwise the bottom anti-aliased edge of a pill border can be clipped.
     * Negative margins preserve the navigation bar's existing height.
     */
    padding-block: 1px;
    margin-block: -1px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.yblkrest-menu-nav__viewport::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .yblkrest-menu-nav.has-overflow .yblkrest-menu-nav__viewport {
        cursor: grab;
    }

    .yblkrest-menu-nav.is-dragging .yblkrest-menu-nav__viewport,
    .yblkrest-menu-nav.is-dragging .yblkrest-menu-nav__item {
        cursor: grabbing;
        user-select: none;
    }
}

.yblkrest-menu-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.8vw, 14px);
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
}

.yblkrest-menu-nav__item,
.yblkrest-menu-nav__arrow {
    margin: 0;
    border: 0;
    font: inherit;
    color: #1f1f1f;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.yblkrest-menu-nav__item {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 12px 21px;
    border: 1px solid #e5dccf;
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.yblkrest-menu-nav__item:hover {
    border-color: #d7ccbd;
    background: #faf8f4;
}

.yblkrest-menu-nav__item.is-active {
    border-color: #e8e2d7;
    background: #e9e5dc;
    color: #1f1f1f;
}

.yblkrest-menu-nav__arrow {
    display: inline-grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #ebe8e1;
    transition:
        background-color 160ms ease,
        opacity 160ms ease;
}

.yblkrest-menu-nav__arrow:hover:not(:disabled) {
    background: #ded9cf;
}

.yblkrest-menu-nav__arrow:disabled {
    opacity: 0.42;
    cursor: default;
}

.yblkrest-menu-nav__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.yblkrest-menu-nav__item:focus-visible,
.yblkrest-menu-nav__arrow:focus-visible {
    outline: 3px solid #7b6a52;
    outline-offset: 3px;
}

.yblkrest-menu-nav__item:focus:not(:focus-visible),
.yblkrest-menu-nav__arrow:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.yblkrest-menu-section {
    scroll-margin-top: var(--yblkrest-menu-section-scroll-margin, 0px);
}

@media (max-width: 782px) {
    .yblkrest-menu-nav__inner {
        gap: 8px;
        padding: 12px max(10px, env(safe-area-inset-left, 0px)) 12px max(10px, env(safe-area-inset-right, 0px));
    }

    .yblkrest-menu-nav__list {
        gap: 8px;
    }

    .yblkrest-menu-nav__item {
        min-height: 28px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .yblkrest-menu-nav__arrow {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .yblkrest-menu-nav__arrow svg {
        width: 19px;
        height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yblkrest-menu-nav__item,
    .yblkrest-menu-nav__arrow {
        transition: none;
    }
}
