.sp-menu-theme {

    --sp-brand-color: #111111;
    --sp-accent-color: #bb924f;

    --sp-text-color: var(--sp-brand-color);

    --sp-border-color: rgba(0,0,0,.12);
    --sp-border-strong: rgba(0,0,0,.22);

    --sp-surface-color: #ffffff;
    --sp-surface-alt: #f7f7f7;

    --sp-text-light: rgba(0,0,0,.68);
    --sp-text-muted: rgba(0,0,0,.52);

    --sp-shadow-soft: 0 10px 30px rgba(0,0,0,.06);
}

.sp-menu {
    display: grid;
    gap: 2rem;
}

.sp-menu-parent-tabs,
.sp-menu-child-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.sp-menu-parent-tab,
.sp-menu-promoted-child-tab,
.sp-menu-child-tab {
    border: 1px solid var(--sp-accent-color);
    background: transparent;
    color: var(--sp-accent-color);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: all .2s ease;
}

.sp-menu-parent-tab,
.sp-menu-promoted-child-tab {
    min-width: 150px;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sp-menu-category-description {
    margin: 0 auto 20px;
    max-width: 720px;
    text-align: center;
    line-height: 1.6;
}

.sp-menu-child-tabs {
    margin-top: -.75rem;
}

.sp-menu-child-tab {
    padding: .65rem 1rem;
    border-radius: 999px;
    font-weight: 400;
    text-transform:uppercase;
}

.sp-menu-parent-tab.is-active,
.sp-menu-promoted-child-tab.is-active,
.sp-menu-child-tab.is-active{
    background: var(--sp-brand-color);
    border-color: var(--sp-brand-color);
    color: #fff;
}

.sp-menu-parent-tab:hover,
.sp-menu-promoted-child-tab:hover,
.sp-menu-child-tab:hover {
    background: var(--sp-accent-color);
    border-color: var(--sp-accent-color);
    color: #fff;
}

.sp-menu-parent-panel {
    display: none;
}

.sp-menu-parent-panel.is-active {
    display: grid;
    gap: 1.5rem;
}

.sp-menu-category-items {
    display: grid;
    gap: 1.5rem;
}

.sp-menu-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem;
    border: 1px solid var(--sp-border-color);
    border-radius: 14px;
    background: var(--sp-surface-color);
    transition: opacity .2s ease, transform .2s ease;
}

.sp-menu-item.is-featured {
    border-color: var(--sp-accent-color);
    box-shadow: 0 0 0 1px var(--sp-accent-color);
}

.sp-menu-item[hidden] {
    display: none !important;
}

.sp-menu-item-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sp-surface-alt);
}

.sp-menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Menu Item Badges */
.sp-menu-item-badges {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    z-index: 2;
    margin-top: .75rem;
}

.sp-menu-item-image-wrap > .sp-menu-item-badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    right: .5rem;
    margin-top: 0;
}

.sp-menu-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .55rem;
    border-radius: 999px;
    background: var(--sp-brand-color);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.sp-menu-item-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.sp-menu-item-title {
    margin: 0;
}

.sp-menu-item-price {
    font-weight: 500;
    white-space: nowrap;
    color: var(--sp-accent-color);
}

/* Multi Price Rows */
.sp-menu-theme .sp-menu-item-price-list {
    display: contents !important;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    color: var(--sp-accent-color);
}

.sp-menu-theme .sp-menu-item-price-row {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
}

.sp-menu-theme .sp-menu-item-price-label {
    color: inherit;
    opacity: .75;
    font-size: .9rem;
    font-weight: 600;
}

.sp-menu-theme .sp-menu-item-price-value {
    color: inherit;
    font-weight: 700;
}

.sp-menu-item-description {
    margin: .5rem 0 0;
    line-height: 1.6;
    color: var(--sp-text-light);
}

/* Dietary Badges */
.sp-menu-dietary-badges {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.sp-menu-dietary-badge {
    border: 1px solid var(--sp-border-color);
    background: var(--sp-accent-color);
    color: #fff;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.sp-menu-dietary-badge:hover {
    background: var(--sp-accent-color);
    border-color: var(--sp-accent-color);
    color: #fff;
}

.sp-menu-compact-title-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.sp-menu-compact-title-wrap .sp-menu-item-badges {
    margin-top: 0;
}

.sp-menu-compact-title-wrap .sp-menu-item-badge {
    font-size: .62rem;
    padding: .3rem .5rem;
}

/* ==========================================================
   Modern Cards Layout
========================================================== */

.sp-menu-modern-cards .sp-menu-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.sp-menu-modern-cards .sp-menu-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--sp-surface-color);
    height: 100%;
    box-shadow: var(--sp-shadow-soft);
}

.sp-menu-modern-cards .sp-menu-item-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

.sp-menu-modern-cards .sp-menu-item-content {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem;
    flex: 1;
}

.sp-menu-modern-cards .sp-menu-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}

.sp-menu-modern-cards .sp-menu-item-title {
    font-size: 1.25rem;
    line-height: 1.2;
}

.sp-menu-modern-cards .sp-menu-item-description {
    margin: 0;
    line-height: 1.6;
}

.sp-menu-modern-cards .sp-menu-dietary-badges {
    margin-top: auto;
}

/* Tablet */
@media (max-width: 991px) {

    .sp-menu-modern-cards .sp-menu-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 575px) {

    .sp-menu-modern-cards .sp-menu-modern-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Global Button Styles
========================================================== */

.sp-menu-button-pill .sp-menu-parent-tab,
.sp-menu-button-pill .sp-menu-promoted-child-tab,
.sp-menu-button-pill .sp-menu-child-tab,
.sp-menu-button-pill .sp-menu-dietary-badge,
.sp-menu-button-pill .sp-menu-item-badge {
    border-radius: 999px;
}

.sp-menu-button-rounded .sp-menu-parent-tab,
.sp-menu-button-rounded .sp-menu-promoted-child-tab,
.sp-menu-button-rounded .sp-menu-child-tab,
.sp-menu-button-rounded .sp-menu-dietary-badge,
.sp-menu-button-rounded .sp-menu-item-badge {
    border-radius: 14px;
}

.sp-menu-button-square .sp-menu-parent-tab,
.sp-menu-button-square .sp-menu-promoted-child-tab,
.sp-menu-button-square .sp-menu-child-tab,
.sp-menu-button-square .sp-menu-dietary-badge,
.sp-menu-button-square .sp-menu-item-badge {
    border-radius: 0;
}

/* Underline */
.sp-menu-button-underline .sp-menu-parent-tab,
.sp-menu-button-underline .sp-menu-promoted-child-tab,
.sp-menu-button-underline .sp-menu-child-tab,
.sp-menu-button-underline .sp-menu-dietary-badge {
    border-radius: 0 !important;
    border-width: 0 0 2px !important;
    background: transparent !important;
    color: inherit !important;
}

.sp-menu-button-underline .sp-menu-item-badge {
    border-radius: 0 !important;
    border: 1px solid currentColor !important;
    background: transparent !important;
    color: var(--sp-accent-color) !important;
    box-shadow: none !important;
}

.sp-menu-button-underline .sp-menu-parent-tab.is-active,
.sp-menu-button-underline .sp-menu-promoted-child-tab.is-active,
.sp-menu-button-underline .sp-menu-child-tab.is-active {
    background: transparent !important;
    border-color: currentColor !important;
    color: var(--sp-brand-color) !important;
}

/* Outlined */
.sp-menu-button-outlined .sp-menu-parent-tab,
.sp-menu-button-outlined .sp-menu-promoted-child-tab,
.sp-menu-button-outlined .sp-menu-child-tab,
.sp-menu-button-outlined .sp-menu-dietary-badge,
.sp-menu-button-outlined .sp-menu-item-badge {
    background: transparent !important;
    border: 1px solid var(--sp-accent-color) !important;
    color: var(--sp-accent-color) !important;
    box-shadow: none !important;
}

.sp-menu-button-outlined .sp-menu-parent-tab.is-active,
.sp-menu-button-outlined .sp-menu-promoted-child-tab.is-active,
.sp-menu-button-outlined .sp-menu-child-tab.is-active {
    background: var(--sp-brand-color) !important;
    border-color: var(--sp-brand-color) !important;
    color: #fff !important;
}

/* Minimal */
.sp-menu-button-minimal .sp-menu-parent-tab,
.sp-menu-button-minimal .sp-menu-promoted-child-tab,
.sp-menu-button-minimal .sp-menu-child-tab,
.sp-menu-button-minimal .sp-menu-dietary-badge {
    border-radius: 0;
    border-color: transparent;
    background: transparent !important;
    color: inherit !important;
    padding-inline: .25rem;
}

.sp-menu-button-minimal .sp-menu-item-badge {
    border-radius: 0;
    border: 1px solid currentColor !important;
    background: transparent !important;
    color: var(--sp-accent-color) !important;
    box-shadow: none !important;
}

.sp-menu-button-minimal .sp-menu-parent-tab.is-active,
.sp-menu-button-minimal .sp-menu-promoted-child-tab.is-active,
.sp-menu-button-minimal .sp-menu-child-tab.is-active {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--sp-brand-color) !important;
    opacity: 1;
}

.sp-menu-button-minimal .sp-menu-parent-tab,
.sp-menu-button-minimal .sp-menu-promoted-child-tab,
.sp-menu-button-minimal .sp-menu-child-tab {
    opacity: .65;
}

/* =========================================================
   DEFAULT
========================================================= */

.sp-menu-style-default{
    --sp-brand-color:#111111;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#ffffff;
    --sp-surface-alt:#f7f7f7;
    --sp-text-color:#111111;
    --sp-border-color:rgba(0,0,0,.12);
    --sp-shadow-soft:0 10px 30px rgba(0,0,0,.06);
}

/* =========================================================
   DARK
========================================================= */

.sp-menu-style-dark{
    --sp-brand-color:#ffffff;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#111111;
    --sp-surface-alt:#1a1a1a;
    --sp-text-color:#ffffff;
    --sp-text-light:rgba(255,255,255,.72);
    --sp-text-muted:rgba(255,255,255,.54);
    --sp-border-color:rgba(255,255,255,.12);
    --sp-border-strong:rgba(255,255,255,.22);
    --sp-shadow-soft:0 14px 40px rgba(0,0,0,.35);
}

.sp-menu-style-dark .sp-menu-item{
    background:var(--sp-surface-alt);
    border-color:var(--sp-border-color);
}

.sp-menu-style-dark .sp-menu-item-title,
.sp-menu-style-dark .sp-menu-section-title,
.sp-menu-style-dark .sp-menu-subcategory-title{
    color:#ffffff;
}

.sp-menu-style-dark .sp-menu-item-description{
    color:var(--sp-text-light);
}

/* =========================================================
   COASTAL
========================================================= */

.sp-menu-style-coastal{
    --sp-brand-color:#022532;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#faf3eb;
    --sp-surface-alt:#f2e6d7;
    --sp-text-color:#022532;
    --sp-text-light:rgba(2,37,50,.72);
    --sp-text-muted:rgba(2,37,50,.54);
    --sp-border-color:rgba(2,37,50,.10);
    --sp-border-strong:rgba(2,37,50,.18);
    --sp-shadow-soft:0 12px 35px rgba(2,37,50,.08);
}

.sp-menu-style-coastal .sp-menu-item{
    background:#ffffff;
    border-radius:18px;
}

.sp-menu-style-coastal .sp-menu-item-price,
.sp-menu-style-coastal .sp-menu-item-price-value{
    color:var(--sp-accent-color);
}

/* =========================================================
   MINIMAL
========================================================= */

.sp-menu-style-minimal{
    --sp-brand-color:#111111;
    --sp-accent-color:#111111;
    --sp-surface-color:#ffffff;
    --sp-surface-alt:#ffffff;
    --sp-text-color:#111111;
    --sp-border-color:rgba(0,0,0,.08);
    --sp-border-strong:rgba(0,0,0,.12);
    --sp-shadow-soft:none;
}

.sp-menu-style-minimal .sp-menu-item{
    border-bottom:1px solid var(--sp-border-color);
    border-radius:0;
    box-shadow:none;
    padding-left:0;
    padding-right:0;
}

.sp-menu-style-minimal .sp-menu-item-image-wrap{
    border-radius:0;
}

.sp-menu-style-minimal .sp-menu-item-title{
    letter-spacing:.02em;
}

/* =========================================================
   PUB
========================================================= */

.sp-menu-style-pub{
    --sp-brand-color:#ecdbc4;
    --sp-accent-color:#bb924f;
    --sp-surface-color:#1b140f;
    --sp-surface-alt:#241b15;
    --sp-text-color:#ecdbc4;
    --sp-text-light:rgba(236,219,196,.74);
    --sp-text-muted:rgba(236,219,196,.56);
    --sp-border-color:rgba(236,219,196,.10);
    --sp-border-strong:rgba(236,219,196,.18);
    --sp-shadow-soft:0 16px 45px rgba(0,0,0,.35);
}

.sp-menu-style-pub .sp-menu-item{
    background:var(--sp-surface-alt);
    border:1px solid var(--sp-border-color);
    border-radius:18px;
}

.sp-menu-style-pub .sp-menu-item-title,
.sp-menu-style-pub .sp-menu-section-title{
    color:#ffffff;
}

.sp-menu-style-pub .sp-menu-item-description{
    color:var(--sp-text-light);
}

/* =========================================================
   FINE DINING
========================================================= */

.sp-menu-style-fine-dining{
    --sp-brand-color:#1b1b1b;
    --sp-accent-color:#8c6a3d;
    --sp-surface-color:#fdfbf7;
    --sp-surface-alt:#f7f2ea;
    --sp-text-color:#1b1b1b;
    --sp-border-color:rgba(0,0,0,.08);
    --sp-border-strong:rgba(0,0,0,.14);
    --sp-shadow-soft:0 20px 50px rgba(0,0,0,.08);
}

.sp-menu-style-fine-dining .sp-menu-item{
    background:#ffffff;
    border-radius:22px;
    border:1px solid rgba(0,0,0,.06);
}

.sp-menu-style-fine-dining .sp-menu-section-title{
    letter-spacing:.18em;
    text-transform:uppercase;
}

.sp-menu-style-fine-dining .sp-menu-item-price{
    font-style:italic;
}

/* =========================================================
   DINER
========================================================= */

.sp-menu-style-diner{
    --sp-brand-color:#0d2a45;
    --sp-accent-color:#d62828;
    --sp-surface-color:#f8fbff;
    --sp-surface-alt:#ffffff;
    --sp-text-color:#0d2a45;
    --sp-border-color:rgba(13,42,69,.10);
    --sp-shadow-soft:0 10px 24px rgba(13,42,69,.08);
}

.sp-menu-style-diner .sp-menu-item{
    background:#ffffff;
    border-radius:14px;
    border:2px solid rgba(13,42,69,.06);
}

.sp-menu-style-diner .sp-menu-item-price{
    color:#d62828;
    font-weight:700;
}

.sp-menu-style-diner .sp-menu-item-title{
    text-transform:uppercase;
}

/* =========================================================
   TACO TRUCK
========================================================= */

.sp-menu-style-taco-truck{
    --sp-brand-color:#3c1f0f;
    --sp-accent-color:#f08c00;
    --sp-surface-color:#fff7eb;
    --sp-surface-alt:#fff0db;
    --sp-text-color:#3c1f0f;
    --sp-border-color:rgba(60,31,15,.10);
    --sp-shadow-soft:0 12px 30px rgba(240,140,0,.12);
}

.sp-menu-style-taco-truck .sp-menu-item{
    background:#ffffff;
    border-radius:20px;
    border:1px dashed rgba(240,140,0,.34);
}

.sp-menu-style-taco-truck .sp-menu-item-price{
    color:#f08c00;
}

.sp-menu-style-taco-truck .sp-menu-item-badge{
    background:#f08c00;
    color:#ffffff;
}

/* Animations */
.sp-menu-parent-panel,
.sp-menu-child-section {
    animation: spMenuFadeUp .28s ease both;
}

@keyframes spMenuFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .sp-menu-parent-panel,
    .sp-menu-child-section {
        animation: none;
    }

    .sp-menu-item {
        transition: none;
    }
}

@media (max-width: 575px) {

    .sp-menu-parent-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .sp-menu-parent-tab {
        width: 100%;
        min-width: 0;
        padding: .9rem 1rem;
        font-size: .95rem;
        letter-spacing: .04em;
    }

    .sp-menu-child-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .35rem;
        margin-inline: -1rem;
        padding-inline: 1rem;
        scrollbar-width: none;
    }

    .sp-menu-child-tabs::-webkit-scrollbar {
        display: none;
    }

    .sp-menu-child-tab {
        flex: 0 0 auto;
    }

    .sp-menu-item {
        grid-template-columns: 1fr;
        padding: 1rem;
        border-radius: 18px;
    }

    .sp-menu-item-image-wrap {
        border-radius: 16px;
    }

    .sp-menu-item-header {
        flex-direction: column;
        gap: .35rem;
    }

    .sp-menu-item-title {
        font-size: 1.15rem;
    }

    .sp-menu-item-description {
        font-size: .95rem;
        line-height: 1.55;
    }

    .sp-menu-dietary-badges {
        gap: .35rem;
    }

    .sp-menu-dietary-badge {
        font-size: .72rem;
        padding: .4rem .6rem;
    }

    .sp-menu-item-badge {
        font-size: .62rem;
        padding: .32rem .5rem;
    }
}

.sp-menu-elegant-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sp-menu-elegant-item-title {
    margin: 0;
    flex: 1;
}

.sp-menu-price,
.sp-menu-item-price,
.sp-menu-elegant-item-price {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.sp-menu-elegant-item-description {
    margin: .35rem 0 0;
    max-width: 75%;
}

.sp-menu-elegant-item {
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid rgba(188,131,60,.3);
}
/* ==========================================================
   Menu Badges + Dietary/Allergy Line Placement
========================================================== */

.sp-menu-item-content > .sp-menu-item-badges,
.sp-menu-elegant-item > .sp-menu-item-badges,
.sp-menu-compact-title-wrap > .sp-menu-item-badges {
    margin: 0 0 .55rem;
}

.sp-menu-compact-title-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
}

.sp-menu-dietary-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .75rem;
    color: var(--sp-text-light);
    font-size: .88rem;
    line-height: 1.4;
}

.sp-menu-dietary-line .sp-menu-dietary-badge {
    display: inline;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.sp-menu-dietary-line .sp-menu-dietary-badge:hover {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--sp-accent-color) !important;
}

.sp-menu-dietary-separator {
    opacity: .55;
}

/* =========================================================
   Mobile Menu Category Navigation
========================================================= */

.sp-menu-parent-nav {
    position: relative;
    z-index: 20;
    align-self: start;
    background: transparent;
}

.sp-menu-promoted-child-nav {
    display: none;
}

.sp-menu-parent-tabs-shell {
    position: relative;
    min-width: 0;
    background: transparent;
}

.sp-menu-parent-scroll-next,
.sp-menu-category-menu-toggle,
.sp-menu-category-dialog {
    display: none;
}

.sp-menu-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767.98px) {

    html.sp-menu-dialog-open,
    body.sp-menu-dialog-open {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body.sp-menu-dialog-open {
        position: fixed !important;
        width: 100% !important;
    }

    .sp-menu-parent-nav {
        position: sticky;
        top: var(--sp-menu-sticky-offset, 0px);
        z-index: 999;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        align-items: stretch;
        gap: .5rem;
        padding: .5rem 0;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .sp-menu-parent-nav.has-category-overflow {
        grid-template-columns: minmax(0, 1fr) 46px 48px;
    }

    body.admin-bar .sp-menu-parent-nav {
        top: calc(var(--sp-menu-sticky-offset, 0px) + 46px);
    }


    .sp-menu-promoted-child-nav {
        display: grid;
    }

    .sp-menu-parent-tabs-shell,
    .sp-menu-parent-tabs {
        background: transparent !important;
    }

    .sp-menu-parent-tabs-shell {
        overflow: hidden;
    }

    .sp-menu-parent-tabs {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: .5rem;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        scroll-padding-inline: .5rem;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .sp-menu-parent-tabs::-webkit-scrollbar,
    .sp-menu-child-tabs::-webkit-scrollbar {
        display: none;
    }

    .sp-menu-parent-tab,
    .sp-menu-promoted-child-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        min-height: 46px;
        padding: .85rem 1.15rem;
        font-size: .9rem;
        letter-spacing: .035em;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .sp-menu-parent-scroll-next,
    .sp-menu-category-menu-toggle {
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0;
        border-radius: 0;
        cursor: pointer;
    }

    .sp-menu-parent-scroll-next:not([hidden]),
    .sp-menu-category-menu-toggle {
        display: inline-flex;
    }

    .sp-menu-parent-scroll-next {
        min-width: 46px;
        border: 1px solid var(--sp-brand-color) !important;
        background: var(--sp-brand-color) !important;
        color: #ffffff !important;
        font: inherit;
        font-size: 1.65rem;
        font-weight: 700;
        line-height: 1;
    }

    .sp-menu-parent-scroll-next span {
        display: block;
        transform: translateY(-1px);
    }

    .sp-menu-parent-scroll-next:disabled {
        opacity: .42;
        cursor: default;
    }

    .sp-menu-category-menu-toggle {
        min-width: 48px;
        border: 1px solid var(--sp-accent-color);
        background: transparent !important;
        color: var(--sp-accent-color);
    }

    .sp-menu-button-pill .sp-menu-parent-scroll-next,
    .sp-menu-button-pill .sp-menu-category-menu-toggle {
        border-radius: 999px;
    }

    .sp-menu-button-rounded .sp-menu-parent-scroll-next,
    .sp-menu-button-rounded .sp-menu-category-menu-toggle {
        border-radius: 14px;
    }

    .sp-menu-button-square .sp-menu-parent-scroll-next,
    .sp-menu-button-square .sp-menu-category-menu-toggle,
    .sp-menu-button-underline .sp-menu-parent-scroll-next,
    .sp-menu-button-underline .sp-menu-category-menu-toggle,
    .sp-menu-button-minimal .sp-menu-parent-scroll-next,
    .sp-menu-button-minimal .sp-menu-category-menu-toggle {
        border-radius: 0;
    }

    .sp-menu-category-menu-toggle:hover,
    .sp-menu-category-menu-toggle[aria-expanded="true"] {
        background: var(--sp-accent-color) !important;
        color: #ffffff;
    }

    .sp-menu-category-menu-toggle svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .sp-menu-parent-tab:focus-visible,
    .sp-menu-promoted-child-tab:focus-visible,
    .sp-menu-parent-scroll-next:focus-visible,
    .sp-menu-category-menu-toggle:focus-visible,
    .sp-menu-child-tab:focus-visible,
    .sp-menu-category-dialog-back:focus-visible,
    .sp-menu-category-dialog-close:focus-visible,
    .sp-menu-category-dialog-parent:focus-visible,
    .sp-menu-category-dialog-child:focus-visible {
        outline: 3px solid var(--sp-accent-color);
        outline-offset: 2px;
    }

    /* Subcategories move into the mobile category panel. */
    .sp-menu-child-tabs {
        display: none !important;
    }

    .sp-menu-category-dialog[hidden] {
        display: none !important;
    }

    .sp-menu-category-dialog {
        position: fixed !important;
        inset: 0 !important;
        z-index: 100000;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0;
        visibility: hidden;
        isolation: isolate;
        overscroll-behavior: none;
        transition: opacity .18s ease, visibility .18s ease;
    }

    .sp-menu-category-dialog.is-open {
        opacity: 1;
        visibility: visible;
    }

    .sp-menu-category-dialog-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, .62);
        cursor: pointer;
        touch-action: none;
    }

    .sp-menu-category-dialog-panel {
        position: relative;
        z-index: 1;
        width: min(100%, 560px);
        max-height: min(82vh, 720px);
        max-height: min(82dvh, 720px);
        overflow: hidden;
        border: 0;
        border-radius: 20px 20px 0 0;
        background: var(--sp-surface-color);
        color: var(--sp-text-color);
        box-shadow: 0 -18px 50px rgba(0, 0, 0, .28);
        overscroll-behavior: contain;
        touch-action: pan-y;
        transform: translateY(24px);
        transition: transform .18s ease;
    }

    .sp-menu-category-dialog.is-open .sp-menu-category-dialog-panel {
        transform: translateY(0);
    }

    .sp-menu-category-dialog-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1rem .85rem 1.25rem;
        border-bottom: 1px solid var(--sp-border-color);
    }

    .sp-menu-category-dialog-header h2 {
        flex: 1 1 auto;
        margin: 0;
        color: var(--sp-text-color);
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .sp-menu-category-dialog-back,
    .sp-menu-category-dialog-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--sp-text-color);
        font-size: 2rem;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
    }

    .sp-menu-category-dialog-back[hidden] {
        display: none !important;
    }

    .sp-menu-category-dialog-back span {
        display: block;
        margin-top: -2px;
        font-size: 2.2rem;
        line-height: 1;
    }

    .sp-menu-category-dialog-list {
        display: grid;
        max-height: calc(min(82vh, 720px) - 70px);
        max-height: calc(min(82dvh, 720px) - 70px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom));
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .sp-menu-category-dialog-group {
        border-bottom: 1px solid var(--sp-border-color);
    }

    .sp-menu-category-dialog-group[hidden] {
        display: none !important;
    }

    .sp-menu-category-dialog.is-drilldown .sp-menu-category-dialog-group.is-drilldown-target {
        border-bottom: 0;
    }

    .sp-menu-category-dialog-group:last-child {
        border-bottom: 0;
    }

    .sp-menu-category-dialog-parent,
    .sp-menu-category-dialog-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        border: 0;
        background: transparent;
        color: var(--sp-text-color);
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .sp-menu-category-dialog-parent::before,
    .sp-menu-category-dialog-parent::after,
    .sp-menu-category-dialog-child::before,
    .sp-menu-category-dialog-child::after {
        display: none !important;
        content: none !important;
    }

    .sp-menu-category-dialog-parent[data-sp-has-children="0"] .sp-menu-category-dialog-chevron {
        display: none !important;
    }

    .sp-menu-category-dialog-parent {
        min-height: 54px;
        padding: .9rem .5rem;
        font-weight: 700;
    }

    .sp-menu-category-dialog-parent:hover,
    .sp-menu-category-dialog-parent.is-active {
        color: var(--sp-accent-color);
    }

    .sp-menu-category-dialog-chevron {
        flex: 0 0 auto;
        font-size: 1.6rem;
        line-height: 1;
        transform: rotate(0deg);
        transition: transform .18s ease;
    }

    .sp-menu-category-dialog-parent[aria-expanded="true"] .sp-menu-category-dialog-chevron {
        transform: rotate(90deg);
    }

    .sp-menu-category-dialog-children[hidden] {
        display: none !important;
    }

    .sp-menu-category-dialog-children {
        display: grid;
        padding: 0 0 .55rem 1rem;
    }

    .sp-menu-category-dialog-child {
        min-height: 48px;
        padding: .72rem .5rem .72rem .85rem;
        border-left: 2px solid var(--sp-border-color);
        font-size: .95rem;
        font-weight: 500;
    }

    .sp-menu-category-dialog-child:hover,
    .sp-menu-category-dialog-child.is-active {
        border-left-color: var(--sp-accent-color);
        color: var(--sp-accent-color);
    }

    .sp-menu-category-dialog.is-drilldown .sp-menu-category-dialog-children {
        padding: .5rem 0 0;
    }

    .sp-menu-category-dialog.is-drilldown .sp-menu-category-dialog-child {
        min-height: 54px;
        padding: .9rem .5rem;
        border-left: 0;
        border-bottom: 1px solid var(--sp-border-color);
        font-weight: 600;
    }

    .sp-menu-category-dialog.is-drilldown .sp-menu-category-dialog-child:last-child {
        border-bottom: 0;
    }


    .sp-menu-promoted-child-dialog-list {
        padding-top: .5rem;
    }

    .sp-menu-promoted-child-dialog-list .sp-menu-category-dialog-child {
        min-height: 54px;
        padding: .9rem .5rem;
        border-left: 0;
        border-bottom: 1px solid var(--sp-border-color);
        font-weight: 700;
    }

    .sp-menu-promoted-child-dialog-list .sp-menu-category-dialog-child:last-child {
        border-bottom: 0;
    }

    .sp-menu-category-dialog-check {
        flex: 0 0 auto;
        opacity: 0;
        color: var(--sp-accent-color);
        font-size: 1.1rem;
    }

    .sp-menu-category-dialog-parent.is-active[data-sp-has-children="0"] .sp-menu-category-dialog-check,
    .sp-menu-category-dialog-child.is-active .sp-menu-category-dialog-check {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-menu-category-dialog,
    .sp-menu-category-dialog-panel {
        transition: none;
    }
}
