/* Shared desktop marketplace overview for Normal Order and Preorder menus.
   Keep mobile layouts and focused stalls on their existing page styles. */

@font-face {
    font-family: "Marketplace Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/marketplace-poppins/regular.ttf") format("truetype");
}

@font-face {
    font-family: "Marketplace Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/marketplace-poppins/semibold.ttf") format("truetype");
}

@font-face {
    font-family: "Marketplace Poppins";
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url("../fonts/marketplace-poppins/bold.ttf") format("truetype");
}

@media (min-width: 992px) {
    body:is(.home-design-overview, .preorder-menu-overview).layout-shell {
        --marketplace-header-height: 78px;
        --marketplace-popular-card-width: 300px;
        --marketplace-stall-card-height: 180px;
        --marketplace-next-icon: url("../next.svg");
        --marketplace-main-padding: 14px 28px 40px 276px;
        background: #f6faf5;
        font-family: "Marketplace Poppins", "Noto Sans SC", "Segoe UI", sans-serif;
    }

    body:is(.home-design-overview, .preorder-menu-overview, .checkout-shell) .home-marketplace-only {
        display: block;
    }

    body:is(.home-design-overview, .preorder-menu-overview, .checkout-shell) .marketplace-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 auto;
    }

    body:is(.home-design-overview, .checkout-shell) > .sticky-header {
        top: 0;
        height: var(--marketplace-header-height);
        padding: 0;
        margin: 0;
        border-bottom: 0px solid #edf1e9;
    }

    body:is(.home-design-overview, .checkout-shell) > .sticky-header > .container {
        width: 100%;
        max-width: none;
        padding: 0 32px;
    }

    /* The mirrored phone cascade has an important panel shadow: remove it here
       so the full-width header has only one subtle edge, including on scroll. */

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .customer-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 28px;
        min-height: calc(var(--marketplace-header-height) - 1px);
        padding: 0 !important;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none !important;
        background: transparent;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .brand-identity {
        zoom: 1;
        flex: 0 0 218px;
        width: 218px;
        min-width: 0;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .brand-wordmark {
        width: 148px;
        height: auto;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .brand-wordmark img {
        display: block;
        width: 148px;
        height: auto;
        max-height: 54px;
        object-fit: contain;
    }

    body:is(.home-design-overview, .checkout-shell) .brand-butterfly {
        display: none;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-header {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        gap: 54px;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-search {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 180px;
        height: 44px;
        padding: 0 18px;
        gap: 13px;
        margin: 0;
        border: 1px solid #edf0e9;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 1px 4px #254c3509;
        color: #40515a;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-search > .marketplace-icon {
        width: 22px;
        height: 22px;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: none;
        padding: 0;
        background: transparent;
        color: #064638;
        font: inherit;
        font-size: 14px;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-search input::placeholder {
        color: #7b7f89;
        opacity: 1;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-search:focus-within {
        border-color: #9acb82;
        box-shadow: 0 0 0 3px #9acb8225;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation {
        display: flex;
        align-items: center;
        gap: 28px;
        flex: 0 0 auto;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation a {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        position: relative;
        min-height: 44px;
        color: #40505c;
        font-size: 13px;
        text-decoration: none;
        white-space: nowrap;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation a.is-active {
        color: #064638;
        font-weight: 600;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation a.is-active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: #064638;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation .marketplace-icon {
        width: 18px;
        height: 18px;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-actions {
        zoom: 1;
        display: flex;
        gap: 12px;
        width: auto;
        flex: 0 0 auto;
        margin: 0;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-actions > .nav-pill--cart {
        width: 166px;
        min-width: 166px;
        max-width: 166px;
        flex-basis: 166px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        gap: 10px;
        border-radius: 22px !important;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-pill__mobile-cart-icon {
        width: 28px;
        height: 28px;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-pill__mobile-cart-copy {
        font-size: 13px;
        line-height: 1.15;
        gap: 2px;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-pill__mobile-cart-copy strong {
        font-size: 14px;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger,
    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-pill--login {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        border-radius: 22px !important;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-actions .nav-pill,
    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger {
        box-shadow: 0 1px 3px #144a3409 !important;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-actions .nav-pill:hover,
    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger:hover,
    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger[aria-expanded="true"] {
        background: #eaf5ed !important;
        color: #064638 !important;
        box-shadow: 0 2px 5px #144a3410 !important;
        transform: none !important;
        filter: none;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-actions .nav-pill:focus-visible,
    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger:focus-visible {
        outline: 2px solid #77ac5d;
        outline-offset: 3px;
        background: #eaf5ed !important;
        color: #064638 !important;
        box-shadow: 0 1px 3px #144a3409 !important;
        transform: none !important;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger__icon {
        width: 25px;
        height: 25px;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger::after {
        margin-left: 8px;
    }

    body.home-design-overview > main {
        padding-top: 0 !important;
    }

    body:is(.home-design-overview, .preorder-menu-overview) > main > .container {
        width: 100%;
        max-width: none;
        padding: var(--marketplace-main-padding);
        margin: 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-slider {
        display: block;
        width: 100%;
        max-width: 800px;
        margin-top: 0;
        margin-bottom: 0 !important;
        margin-inline: auto;
        aspect-ratio: 16 / 9;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__carousel {
        height: 100%;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__carousel .carousel-inner,
    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__placeholder,
    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__carousel .carousel-item,
    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__carousel .home-slider__link,
    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__carousel picture {
        height: 100%;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__carousel .carousel-inner,
    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__placeholder {
        box-shadow: 0 6px 18px rgba(34, 74, 53, 0.16) !important;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__carousel .carousel-inner img,
    body:is(.home-design-overview, .preorder-menu-overview) .home-slider__placeholder img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #eaf2e2;
        filter: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content {
        margin: 0;
        padding: 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content > .search-card {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-sidebar {
        position: fixed;
        z-index: 100;
        top: var(--marketplace-header-height);
        bottom: 0;
        left: 0;
        width: 248px;
        padding: 24px 24px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fcfdf9;
        border-right: 1px solid #ecf1e8;
        scrollbar-width: thin;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-sections {
        display: grid;
        gap: 3px;
        padding-bottom: 25px;
        border-bottom: 1px solid #dce4de;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-sections a {
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 43px;
        padding: 8px 14px;
        border-radius: 9px;
        color: #344d59;
        font-size: 14px;
        text-decoration: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-sections a.is-active {
        color: #064638;
        background: #ecf9da;
        font-weight: 600;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-filter-heading {
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 72px;
        padding: 20px 14px;
        border-bottom: 1px solid #dce4de;
        color: #064638;
        font-size: 14px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-filter-group {
        padding: 20px 14px 22px;
        border-bottom: 1px solid #dce4de;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-filter-group:last-of-type {
        border: 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-filter-group h2 {
        margin: 0 0 12px;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        color: #173e43;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-checkbox {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 32px;
        color: #344d59;
        text-decoration: none;
        font-size: 13px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-checkbox > span {
        display: grid;
        place-content: center;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        border: 1.5px solid #a7afb5;
        border-radius: 4px;
        background: white;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-checkbox[aria-checked="true"] > span {
        border-color: #71ab55;
        background: #eaf8dc;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-checkbox[aria-checked="true"] > span::after {
        content: "";
        width: 9px;
        height: 5px;
        border: solid #16563b;
        border-width: 0 0 2px 2px;
        transform: translateY(-1px) rotate(-45deg);
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-clear {
        display: inline-block;
        margin: 6px 14px;
        color: #236745;
        font-size: 12px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero {
        display: none;
        align-items: center;
        justify-content: space-between;
        position: relative;
        min-height: 164px;
        padding: 18px 32px;
        overflow: hidden;
        border: 1px solid #dbe9cf;
        border-radius: 18px;
        background: #eaf2e2 url("../images/marketplace/hero-prawn-noodles.png") center 46% / cover no-repeat;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__copy {
        position: relative;
        z-index: 1;
        max-width: 51%;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero h1 {
        margin: 0 0 10px;
        color: #063e30;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(26px, 2.3vw, 37px);
        font-weight: 700;
        letter-spacing: -.7px;
        line-height: 1.04;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__copy p {
        margin: 0;
        color: #47796c;
        font-size: 14px;
        line-height: 1.45;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__signature {
        margin: 0;
        padding: 8px;
        color: #11513b;
        font: italic 22px/1.4 "Segoe Print", "Comic Sans MS", cursive;
        text-align: center;
        transform: rotate(-12deg);
        text-shadow: 0 1px #f3f8ec;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__signature::after {
        content: "";
        display: block;
        width: 84px;
        margin: 8px auto 0;
        border-top: 3px solid #51825e;
        transform: rotate(-10deg);
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-chips {
        display: none;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin: 14px 0 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-chips a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 7px 15px;
        gap: 10px;
        border: 1px solid #e7ece3;
        border-radius: 22px;
        background: #fdfefb;
        box-shadow: 0 3px 8px #24432e0a;
        color: #40535c;
        font-size: 12px;
        line-height: 1.2;
        text-decoration: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-chips a.is-active {
        border-color: #87bb64;
        background: #f0fbdc;
        color: #07533b;
        font-weight: 600;
    }

    body:is(.home-design-overview, .preorder-menu-overview, .checkout-shell) .marketplace-chips .marketplace-icon {
        width: 21px;
        height: 21px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content .section-heading {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0 16px;
        padding: 20px 0 14px !important;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content .section-heading h5 {
        zoom: 1;
        margin: 0;
        font-size: 30px !important;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -.6px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-section-description {
        grid-column: 1;
        margin: 1px 0 0;
        color: #6c9188;
        font-size: 14px;
        line-height: 1.5;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-see-all {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        gap: 10px;
        color: #205d50;
        font-size: 12px;
        text-decoration: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview, .checkout-shell) .marketplace-see-all .marketplace-icon {
        width: 18px;
        height: 18px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-strip--scroll {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding: 0 0 8px !important;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content .popular-stalls-section .popular-strip--scroll > .popular-card {
        zoom: 1;
        flex: 0 0 var(--marketplace-popular-card-width);
        width: var(--marketplace-popular-card-width);
        min-width: var(--marketplace-popular-card-width);
        max-width: var(--marketplace-popular-card-width);
        min-height: 226px;
        border-radius: 18px;
        background: #fffefb;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__body {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: 100%;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__mobile-cover,
    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__thumb-placeholder {
        flex: 0 0 122px;
        height: 122px;
        border-radius: 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__mobile-logo {
        top: 4px;
        right: 4px;
        width: 86px;
        height: 86px;
        border-width: 3px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__copy {
        flex: 1;
        min-height: 104px;
        padding: 9px 52px 12px 17px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__title {
        font-size: 15px;
        line-height: 1.12;
        font-weight: 700;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__mobile-meta {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.3;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__badge-row {
        margin-top: auto;
        padding-top: 6px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content .popular-stalls-section .popular-card--store .pork-status-badge {
        font-size: 12px;
        padding: 5px 12px;
        min-height: 24px;
        line-height: 1;
        border-radius: 9px;
        box-shadow: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-section .popular-card__arrow {
        position: absolute;
        display: grid;
        place-items: center;
        right: 12px;
        bottom: 12px;
        top: auto;
        width: 28px;
        height: 28px;
        border: 1px solid #a6d88b;
        border-radius: 50%;
        background: #fff;
        color: #07513d;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-card__arrow i {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-scrollbar[hidden] {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .popular-stalls-scrollbar:not([hidden]) {
        display: block;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content .popular-stalls-section + .section-heading--all-stalls {
        margin-top: 24px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content .section-heading--all-stalls {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px 0 14px !important;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .section-heading--all-stalls .marketplace-section-description {
        margin: 5px 0 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .section-heading--all-stalls .home-section-see-all {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .section-heading--all-stalls .mobile-stall-sort {
        zoom: 1;
        margin-left: auto;
        gap: 12px;
        font-size: 12px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .mobile-stall-sort__trigger {
        min-width: 160px;
        min-height: 32px;
        justify-content: space-between;
        gap: 18px;
        padding: 5px 14px;
        border: 1px solid #d9e4da;
        border-radius: 24px;
        background: #fcfefa;
        font-size: 12px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .mobile-stall-sort__menu {
        min-width: 190px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid,
    body:is(.home-design-overview, .preorder-menu-overview) .store-category-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        align-items: start;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card,
    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card.store-card--closed {
        zoom: 1;
        display: grid;
        grid-template-rows: minmax(0, 1fr) 65px;
        gap: 0;
        height: var(--marketplace-stall-card-height);
        min-height: var(--marketplace-stall-card-height);
        max-height: var(--marketplace-stall-card-height);
        padding: 10px 12px 11px;
        border-radius: 18px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__header {
        grid-row: 1;
        min-width: 0;
        grid-template-columns: 106px minmax(0, 1fr);
        column-gap: 12px;
        min-height: 82px;
        padding: 0 0 8px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__mobile-media {
        width: 106px;
        height: 82px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__mobile-cover {
        border-radius: 14px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__mobile-media .store-card__logo,
    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__mobile-media .store-card__logo-placeholder {
        width: 76px;
        height: 76px;
        min-width: 76px;
        border-width: 3px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__title-row {
        min-height: 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__title-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 28px;
        column-gap: 8px;
        row-gap: 0;
        padding-right: 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__title-line {
        display: contents;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__title-text {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: 15px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-height: 2lh;
        overflow: hidden;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card .store-card__mobile-meta {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 12px;
        line-height: 1.25;
        margin: 4px 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card--name-wrap .store-card__mobile-meta {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__pork-badge-row {
        grid-column: 1;
        grid-row: 3;
        margin-top: 4px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card:not(:has(.store-card__mobile-meta)) .store-card__pork-badge-row,
    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card--name-wrap .store-card__pork-badge-row {
        margin-top: 12px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__availability {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card--closed .store-card__availability {
        grid-column: 1;
        margin-top: 12px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card--closed:not(.store-card--name-wrap):has(.store-card__mobile-meta) .store-card__mobile-meta {
        margin-bottom: 0;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card--closed:not(.store-card--name-wrap):has(.store-card__mobile-meta) .store-card__availability {
        margin-top: 6px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card.store-card--closed .store-card__arrow {
        grid-row: 4;
        transform: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card--closed .store-card__closed-notice {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-search-content .stores-grid .store-card .pork-status-badge {
        padding: 5px 12px;
        min-height: 24px;
        border-radius: 8px;
        font-size: 11px;
        box-shadow: none;
        line-height: 1;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__arrow {
        position: static;
        grid-column: 2;
        grid-row: 3;
        align-self: end;
        width: 28px;
        height: 28px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__arrow-svg {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .store-card--item-scroll > .list-scroll-nav--menu {
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        align-self: end;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .store-card--item-scroll > .list-scroll-nav--menu > .menu-card-row {
        gap: 12px;
        padding-top: 7px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .store-card--item-scroll .menu-card--mobile-overview .menu-card__body {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 9px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .store-card--item-scroll .menu-card--mobile-overview .menu-card__thumb {
        width: 64px;
        height: 54px;
        border-radius: 12px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .store-card--item-scroll .menu-card--mobile-overview .menu-card__title {
        font-size: 12px;
        font-weight: 400;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-height: 2lh;
        overflow: hidden;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .store-card--item-scroll .menu-card--mobile-overview .menu-card__overview-price {
        margin-top: 6px;
        font-size: 13px;
        font-weight: 700;
    }

    /* One arrow asset throughout the desktop overview. Masks inherit each
       control's text color; rotation changes direction without changing SVGs. */
    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger::after,
    body:is(.home-design-overview, .preorder-menu-overview) .popular-card__arrow::after,
    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__arrow::after,
    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-see-all::after,
    body:is(.home-design-overview, .preorder-menu-overview) .mobile-stall-sort__trigger::after {
        content: "";
        display: block;
        flex: 0 0 auto;
        width: 8px;
        height: 14px;
        border: 0;
        background-color: currentColor;
        -webkit-mask: var(--marketplace-next-icon) center / contain no-repeat;
        mask: var(--marketplace-next-icon) center / contain no-repeat;
        transform: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview, .checkout-shell) .marketplace-see-all > .marketplace-icon,
    body:is(.home-design-overview, .preorder-menu-overview) .mobile-stall-sort__trigger > svg,
    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__arrow > i {
        display: none;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger::after,
    body:is(.home-design-overview, .preorder-menu-overview) .mobile-stall-sort__trigger::after {
        transform: rotate(90deg);
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-account-trigger[aria-expanded="true"]::after,
    body:is(.home-design-overview, .preorder-menu-overview) .mobile-stall-sort__dropdown[open] .mobile-stall-sort__trigger::after {
        transform: rotate(-90deg);
    }

    body:is(.home-design-overview, .preorder-menu-overview) .store-category-group__arrow {
        display: inline-block;
        width: 8px;
        height: 14px;
        font-size: 0;
        background-color: currentColor;
        -webkit-mask: var(--marketplace-next-icon) center / contain no-repeat;
        mask: var(--marketplace-next-icon) center / contain no-repeat;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-slider .carousel-control-prev-icon,
    body:is(.home-design-overview, .preorder-menu-overview) .home-slider .carousel-control-next-icon {
        background-image: none;
        background-color: currentColor;
        -webkit-mask: var(--marketplace-next-icon) center / contain no-repeat;
        mask: var(--marketplace-next-icon) center / contain no-repeat;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .home-slider .carousel-control-prev-icon {
        transform: rotate(180deg);
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-sidebar a:hover,
    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation a:hover {
        color: #18704c;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-sidebar a:focus-visible,
    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-chips a:focus-visible,
    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation a:focus-visible {
        outline: 2px solid #77ac5d;
        outline-offset: 3px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) #storesGrid {
        scroll-margin-top: calc(var(--marketplace-header-height) + 20px);
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .brand-identity {
        flex-basis: 188px;
        width: 188px;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-header {
        gap: 24px;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation {
        gap: 18px;
    }

    body:is(.home-design-overview, .checkout-shell) .sticky-header:not(.kiosk-header) .nav-actions > .nav-pill--cart {
        width: 136px;
        min-width: 136px;
        max-width: 136px;
        flex-basis: 136px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__signature {
        font-size: 18px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__header {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__mobile-media {
        width: 82px;
        height: 76px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__mobile-media .store-card__logo,
    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__mobile-media .store-card__logo-placeholder {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid .store-card__title-text {
        font-size: 13px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .section-heading--all-stalls .marketplace-section-description {
        font-size: 12px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body:is(.home-design-overview, .preorder-menu-overview).layout-shell {
        --marketplace-main-padding: 14px 20px 40px 240px;
    }

    body:is(.home-design-overview, .checkout-shell) .marketplace-navigation {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) > main > .container {
        padding: var(--marketplace-main-padding);
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-sidebar {
        width: 220px;
        padding-inline: 18px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .stores-grid,
    body:is(.home-design-overview, .preorder-menu-overview) .store-category-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .section-heading--all-stalls .marketplace-section-description {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero {
        padding-inline: 22px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__copy {
        max-width: 65%;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__copy p {
        font-size: 12px;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__linebreak {
        display: none;
    }

    body:is(.home-design-overview, .preorder-menu-overview) .marketplace-hero__signature {
        display: none;
    }
}
