.desktop-cart {
    --category-selector-height: calc(var(--space-x10) - var(--space-x3));
    --non-cart-content-height: calc(var(--cart-footer-height, 0px) + var(--category-selector-height, 0px) + var(--footer-visible-height, 0px) + var(--order-online-header-visible-height, 0px));

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--space-x3);

    /*
        Add 80px of padding-top so that the content within this container aligns with content below the full-width sticky category selector.
        This padding is removed with .category-selector--hidden below, if we end up not needing to show the category selector.
    */
    padding-top: var(--category-selector-height);
    border-left: 1px solid var(--theme-divider-20);
    transform: translate3d(0, -1px, 0);
}

.row > .col.desktop-cart {
    padding-right: 0;
    padding-left: 0;
}

.desktop-cart__content {
    position: sticky;
    top: calc(var(--category-selector-height));
    max-height: calc(100vh - var(--non-cart-content-height));
    padding: var(--space-x3) calc(var(--gutter-column) / 2);

    /* Add padding to bottom to prevent cart footer overlapping the last cart item */
    padding-bottom: var(--cart-footer-height, 160px);

    /* Same transition (transition-duration & transition-timing-function) as header's .slide-down-leave-active */
    transition: top 0.3s ease-in, max-height .1s;

    /* Accelerate the transition since the header "leave" transition is slightly faster */
    transition-delay: -30ms;
}

.is-site-header-visible.desktop-cart__content {
    top: calc(var(--header-height, 0px) + var(--category-selector-height));
    max-height: calc(100vh - (var(--non-cart-content-height) + var(--header-height, 0px)));

    /* Same transition (transition-duration & transition-timing-function) as header's .slide-down-enter-active */
    transition: top 0.3s ease-out, max-height .1s;

    /* Delay the transition since the header "enter" transition is slightly slower */
    transition-delay: 30ms;
}

.desktop-cart__content--scrollable {
    display: flex;
    flex-direction: column;
    gap: var(--space-x3);
}

.desktop-cart.category-selector--hidden {
    padding-top: 0;
}

.desktop-cart__footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
}

.cart-footer {
    margin-right: calc(var(--theme-container-padding) * -1);
    background: var(--theme-surface-10);
}

.cart-footer__content {
    padding-right: calc(var(--gutter-column) / 2);
    padding-bottom: var(--space-x2);
    padding-left: calc(var(--gutter-column) / 2);
    margin-right: calc(var(--theme-container-padding));
}

.cart-footer__divider {
    margin-top: 0;
    color: var(--theme-divider-20);
    border-style: dashed;
}

.checkout-button__content {
    display: flex;
    flex-direction: row;
    gap: var(--space);
    justify-content: center;
}

.order-summary__section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-x2);
    min-height: 100px;
}

.order-summary__cart {
    position: relative;
    min-height: var(--space-x4);
    overflow: hidden;
}

.order-summary {
    container-type: inline-size;
    container-name: cart;
    display: flex;
    flex-direction: column;
    gap: var(--space-x3);
    padding: var(--space-x2) var(--theme-container-padding);
    margin-bottom: var(--space-x3);
}

@media (min-width: 700px) {
    .order-summary {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 991px) {
    .order-summary .cart__item-image {
        --cart-image-width: 44px;
    }
}

.order-online-page__container {
    position: relative;
    min-height: 40vh;
    padding-bottom: var(--theme-container-padding);
}

.order-item-list__container {
    position: relative;

    /* Use the same z-index as the category selector (.categories-selector__wrapper) so that the category selector can go full-width and cover content */
    z-index: var(--theme-z-index-main);

    /* Needed translateZ(0) to prevent the sticky category selector, embedded in the list, from bouncing on mobile. Mobile also had a 1px gap due to rendering differences, so translateY(-1) */
    transform: translate3d(0, -1px, 0);
}

.order-item-list__row {
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.order-online-item-list {
    display: flex;
    flex-flow: column;
    gap: var(--space-x6);

    /**
     * For some reason overflox-x: clip in base.css .main-content can cause non-overflow vertical content
     * to also get clipped on certain versions of Webkit on IOS. It would be nice if I could add this extra
     * padding to the .main-content class in base.css so that it is consistent across the site, but that doesnt
     * seem to actually fix the issue. This is a workaround for now, and we may need to add this to other pages
     * if we see the same issue.
     *
     * This forum post doesnt really have many details but it seems to be a known issue:
     * https://forums.developer.apple.com/forums/thread/745729
     **/
    padding-bottom: var(--theme-container-padding);
    margin-right: var(--theme-container-padding);
    margin-left: var(--theme-container-padding);
}

@media (min-width: 700px) {
    .order-online-item-list {
        gap: var(--space-x8);
    }
}

/**
    We want to be able to scroll to all of the menus that we display in the dropdown.
    However, if those menus don't have any items, they won't actually get a "section" that we can scroll to.
    So, we will add an invisible menu section that we can scroll to.

    Since .order-online-item-list is display:flex, it will use the gap to space out all elements.
    So this prevents those invisible ones from taking up any additional space.
*/
.order-online-item-list .order-online-page__invisible-menu {
    height: 0;
    margin-bottom: calc(-1 * var(--space-x6));
    opacity: 0;
}

.item-list-menu-notice-wrapper__top {
    margin-bottom: calc(-1 * var(--space-x3));
}

.item-list-menu-notice-wrapper {
    margin-bottom: var(--space-x2);
}

@media (min-width: 700px) {
    .order-online-item-list {
        margin-right: 0;
        margin-left: 0;
    }

    .order-online-item-list .order-online-page__invisible-menu {
        margin-bottom: calc(-1 * var(--space-x8));
    }

    .item-list-menu-notice-wrapper__top {
        margin-bottom: calc(-1 * var(--space-x4));
    }

    .item-list-menu-notice-wrapper {
        margin-bottom: var(--space-x4);
    }
}

.order-online-page__heading {
    font: var(--theme-heading-20);
    text-align: left;
    letter-spacing: var(--theme-heading-20-letter-spacing);
}

.order-online-page__label {
    font: var(--theme-paragraph-20);
    text-align: left;
    letter-spacing: var(--theme-paragraph-20-letter-spacing);
}

.order-online-page__featured-images-container {
    margin-top: var(--space-x8);
}

.container--flex {
    display: flex;
}

.sections__container {
    width: 100%;
}

.order-online-item-list__loader {
    max-height: 100vh;
}

/*** ORDER AGAIN ***/

.order-again {
    max-width: max-content;
    margin-bottom: var(--space-x4);
}

@media (max-width: 700px) {
    .order-again-card__wrapper:first-of-type {
        margin-left: var(--theme-container-padding);
    }

    .order-again-card__wrapper:last-of-type {
        margin-right: var(--theme-container-padding);
    }
}

.order-again-header {
    position: relative;
    display: flex;
    gap: var(--space-half);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-x2);
}

.order-again-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-row: 1;
    gap: var(--space-x2);
    width: 100%;
    padding-bottom: var(--space);
    overflow-x: scroll;
}

.order-again-list::-webkit-scrollbar {
    display: none;
}

.order-again-list .order-again-card {
    height: 100%;
    padding: 0;
}

@media (max-width: 992px) {
    .order-again-list .order-again-card {
        position: relative;
        min-width: 165px;
        padding: 0;
    }
}

.order-again-card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    border-radius: inherit;
}

.order-again-card__description {
    display: flex;
    flex-direction: column;
    gap: var(--space);
    align-items: flex-start;
    padding: var(--space-x2);
    margin-top: auto;
}

.order-again-card__name {
    font: var(--theme-heading-20);
    color: var(--theme-text-10);
    letter-spacing: var(--theme-heading-20-letter-spacing);
}

.order-again-card__date {
    font: var(--theme-paragraph-20-medium);
    color: var(--theme-text-20);
    letter-spacing: var(--theme-paragraph-20-letter-spacing);
}

.order-again-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    -webkit-user-drag: none;
}

.order-again-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--theme-fill-40);  
}

.order-again__button-container {
    position: absolute;
    right: 0;
}

.quick-add__button-container {
    position: absolute;
    right: 0;
    bottom: 0;
}

.order-again__button {
    margin: var(--space);
}

.order-again__button .order-again__button--loader {
    display: flex;
    justify-content: center;
}

.quick-add__button-container .order-again__button:active {
    --button-opaque-base-override: var(--theme-emphasis-30);
}

/*** CUSTOMER ACCOUNTS ***/

.customer-account__desktop-header {
    display: flex;
    justify-content: space-between;
    padding: var(--space-x3) 0;
}

.customer-account__mobile-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-x3) 0;
}

.customer-account__header-site-name {
    color: var(--theme-text-20);
}

.customer-account__mobile-header .customer-account_back-button {
    position: absolute;
}

.customer-account_header-label {
    margin: auto;
    text-align: center;
}

/** ORDER ONLINE HEADER **/

.order-online-header__container {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-x3) var(--space-x5);
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-x3) 0;
}

.order-online-header__title {
    overflow: hidden;
    line-height: normal;
}

.order-online-header__branding__logo-container {
    display: flex;
    justify-content: space-between;
}

.order-online-header__branding {
    display: flex;
    flex: 1 1 500px;
    flex-direction: column;
    gap: var(--space-x2);
    width: 100%;
}

@media (min-width: 700px) {
    .order-online-header__branding {
        flex-direction: row;
        align-items: center;
    }
}

.order-online-header__branding__logo {
    width: 104px;
    max-width: 104px;
    height: 104px;
    max-height: 104px;
    object-fit: contain;
    border-radius: var(--theme-border-radius-image);
}

.order-online-header__branding__text-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-half);
    width: 100%;
}

.order-online-header__fulfillment-selector {
    flex: 0 0 auto;
}

.order-online-header__text-button {
    gap: var(--space-half);
    width: 100%;
    white-space: nowrap;
}

.order-online-header__hours-pill .ui-pill__text {
    /* Minimum text width, to avoid CLS */
    min-width: 16px;
}

.order-online-header__hours-and-location {
    box-sizing: border-box;
    display: flex;
    gap: var(--space-half);
    align-items: center;
    margin-left: calc(var(--space-x1_5) * -1);  /* pulls the hours and location left so first button text is flush */
    font: var(--theme-paragraph-20-medium);
    color: var(--theme-text-20);
    letter-spacing: var(--theme-paragraph-20-letter-spacing);
}

.order-online-header__button-row {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    gap: var(--space);
    overflow-x: auto;

    /* for IOS, Im not sure why this is needed - but the button menu popovers were not rendering without it */
    -webkit-overflow-scrolling: auto;
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */
}

.order-online-header__button-row::-webkit-scrollbar {
    display: none;
}

.order-online-header__button-group {
    display: flex;
    flex-direction: column;
    gap: var(--space);
    align-items: center;
    justify-content: center;
}

.order-online-header__logo-group {
    display: flex;
    gap: var(--space);
    align-items: center;
}

.order-online-header__fulfillment-time {
    white-space: nowrap;
}

.order-online-footer {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    gap: var(--space-x3);
    align-items: center;
    justify-content: space-between;
    padding-top: var(--theme-container-padding);
    margin-right: 0;
    margin-left: 0;
    font-size: var(--theme-paragraph-10-font-size);
    color: var(--theme-text-30);
}

.order-online-footer__divider {
    position: absolute;
    top: -1px;
    left: calc(var(--theme-container-padding) * -1);
    width: 100vw;
    height: 1px;
    background: var(--theme-divider-20);
}

.order-online-footer__buttons, .order-online-footer__buttons .store-policy__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-x2);
    align-items: center;
}

/* sm and below */
@media (max-width: 991px) {
    .order-online-header__hours-pill {
        max-width: 100px;
    }

    .order-online-header__container {
        flex-direction: column;
    }

    .order-online-header__branding {
        flex: 0 1 auto;
    }
}

/* xs and below */
@media (max-width: 699px) {
    .order-online-header__hours-and-location {
        flex-wrap: wrap;
        min-height: 68px;
        margin-left: 0;
    }
    
    .order-online-header__hours-pill {
        order: 1;
    }
    
    .order-online-header__location-picker {
        order: 2
    }
    
    .order-online-header__address {
        order: 3;
    }
    
    /* Reduce whitespace on mobile */
    .order-online-header__hours-and-location .ui-button.order-online-header__text-button {
        padding: 0 var(--space);
    }


    .order-online-header__container {
        --ui-button-border-radius-override: var(--theme-border-radius-button-mobile);

        padding: var(--space-x3) var(--theme-container-padding);
    }

    /*
        On mobile, this is a full-width scrollable section with inner padding.
        Buttons scroll across the whole screen and can always be visible due to the inner padding.
    */
    .order-online-header__button-row {
        width: 100vw;
        padding: 0 var(--theme-container-padding);
        margin-left: calc(var(--theme-container-padding) * -1);
    }

    .order-again-header {
        padding: 0 var(--theme-container-padding);
    }

    .order-online-footer {
        margin-right: var(--theme-container-padding);
        margin-left: var(--theme-container-padding);
    }
}

.empty-state-message {
    display: flex;
    flex-direction: column;
    gap: var(--space);
    align-items: center;
    justify-content: center;
    padding: var(--space-x4);
}

.empty-state-message__text {
    font-weight: var(--theme-font-weight-bold);
    color: var(--theme-text-10);
    text-align: center;
}

.empty-state-message__icon {
    color: var(--theme-warning-fill);
}

