/*
 * 0.11.2: phone-only catalogue refresh.
 *
 * The layout borrows familiar mobile-commerce patterns: prominent one-tap
 * departments, a compact optional category tree, large square product images,
 * readable type and full-width horizontal result cards. Desktop is unchanged.
 */
.graham-mobile-departments {
    display: none;
}

.graham-barcode-filter-notice {
    box-sizing: border-box;
    clear: both;
    margin: 0 0 14px;
    width: 100%;
}

/* 0.13.268: smart UOM selection keeps multi-UOM products quick to order. */
.graham-catalog-main .graham-card-uom {
    align-items: stretch;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(64px, 92px) minmax(84px, 1fr);
    margin: 0;
    width: 100%;
}

.graham-catalog-main .graham-card-uom label {
    display: block;
    margin: 0;
    min-width: 0;
}

.graham-catalog-main .graham-card-uom__select,
.graham-catalog-main .graham-card-cart__uom {
    appearance: auto;
    background: #fff;
    border: 1px solid #91afc3;
    border-radius: 7px;
    box-sizing: border-box;
    color: #173d57;
    font-size: 0.78rem;
    font-weight: 700;
    height: 40px;
    margin: 0;
    min-width: 0;
    padding: 0 24px 0 8px;
    width: 100%;
}

.graham-catalog-main a.graham-card-uom__add {
    align-items: center;
    background: var(--graham-mobile-green, #14843e) !important;
    border: 1px solid var(--graham-mobile-green, #14843e) !important;
    border-radius: 7px !important;
    box-sizing: border-box;
    color: #fff !important;
    display: flex !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    justify-content: center;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 7px 10px !important;
    text-align: center;
    text-decoration: none !important;
    width: 100% !important;
}

.graham-catalog-main a.graham-card-uom__add:hover,
.graham-catalog-main a.graham-card-uom__add:focus-visible {
    background: #106f35 !important;
    border-color: #106f35 !important;
}

.graham-catalog-main a.graham-card-uom__add.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

@media (min-width: 821px) {
    .graham-catalog-grid-view .graham-catalog-main .graham-card-uom[data-graham-quantity-ready="1"] {
        display: block !important;
        gap: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-uom[data-graham-quantity-ready="1"] > label,
    .graham-catalog-grid-view .graham-catalog-main .graham-card-uom[data-graham-quantity-ready="1"] > .graham-card-uom__add {
        display: none !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.has-uom {
        gap: 3px;
        grid-template-columns: 56px 92px minmax(58px, 1fr) 28px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__uom-label {
        display: block;
        margin: 0;
        min-width: 0;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__uom {
        border-radius: 7px;
        font-size: 0.7rem;
        height: 38px;
        padding: 0 18px 0 6px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.has-uom .graham-card-cart__stepper {
        grid-template-columns: 26px minmax(30px, 1fr) 26px;
    }
}

/* 0.13.270: every product uses one aligned ordering row, including multi-UOM items. */
@media (max-width: 820px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-button__button {
        align-items: center;
        display: flex !important;
        justify-content: center;
        min-height: 40px !important;
        width: 100% !important;
    }
}

@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-card-uom {
        grid-column: 2 !important;
        grid-row: 5 !important;
        margin: 0 !important;
        width: 100% !important;
    }
}


@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-card-uom {
        align-self: stretch;
        grid-column: 1 !important;
        grid-row: 7 !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

@media (min-width: 821px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main .wc-block-product > .graham-card-uom[data-graham-quantity-ready="1"] {
        display: block !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.has-uom {
        gap: 4px;
        grid-template-columns: 64px 108px minmax(72px, 1fr) 32px;
        height: 38px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main .graham-card-cart[data-cart-quantity="0"] {
        grid-template-columns: 118px minmax(74px, 1fr);
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.has-uom[data-cart-quantity="0"] {
        grid-template-columns: 64px 108px minmax(72px, 1fr);
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.has-uom .graham-card-cart__stepper {
        grid-template-columns: 30px minmax(36px, 1fr) 30px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__remove[hidden] {
        display: none !important;
    }
}

@media (min-width: 701px) and (max-width: 960px) {
    .graham-mobile-category-search {
        display: none;
    }

    .graham-mobile-category-parent-link {
        align-items: center;
        color: inherit;
        display: flex;
        flex: 1 1 auto;
        justify-content: space-between;
        min-width: 0;
        text-decoration: none;
    }

    .graham-mobile-category-expand {
        display: none;
    }
}

@media (max-width: 700px) {
    body.graham-catalog-view,
    body.single-product {
        --graham-mobile-blue: #075da8;
        --graham-mobile-blue-dark: #064677;
        --graham-mobile-green: #14843e;
        --graham-mobile-ink: #172b3a;
        --graham-mobile-muted: #5d6f7d;
        --graham-mobile-line: #d5dce1;
        --graham-mobile-page: #eaeded;
        font-family: Arial, Helvetica, sans-serif;
    }

    body.graham-catalog-view {
        background: var(--graham-mobile-page);
    }

    body.graham-catalog-view .graham-catalog-shell {
        gap: 0 !important;
        margin-bottom: 28px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Fast, always-visible department shortcuts. */
    body.graham-catalog-view .graham-mobile-category-nav {
        background: #fff;
        border: 1px solid var(--graham-mobile-line);
        border-radius: 10px !important;
        box-shadow: 0 1px 2px rgba(15, 35, 50, 0.08);
        margin-bottom: 8px !important;
        overflow: hidden;
    }

    body.graham-catalog-view .graham-mobile-departments {
        display: block;
        padding: 11px 0 10px;
    }

    body.graham-catalog-view .graham-mobile-departments-heading {
        align-items: baseline;
        display: flex;
        justify-content: space-between;
        padding: 0 12px 8px;
    }

    body.graham-catalog-view .graham-mobile-departments-heading strong {
        color: var(--graham-mobile-ink);
        font-size: 1rem;
        line-height: 1.2;
    }

    body.graham-catalog-view .graham-mobile-departments-heading span {
        color: var(--graham-mobile-muted);
        font-size: 0.7rem;
    }

    body.graham-catalog-view .graham-mobile-department-strip {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 0 12px 3px;
        scrollbar-width: none;
        scroll-snap-type: inline proximity;
        -webkit-overflow-scrolling: touch;
    }

    body.graham-catalog-view .graham-mobile-department-strip::-webkit-scrollbar {
        display: none;
    }

    body.graham-catalog-view .graham-mobile-department-chip {
        align-items: center;
        background: #eef5fa;
        border: 1px solid #c7d9e6;
        border-radius: 999px;
        color: var(--graham-mobile-blue-dark) !important;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 0.83rem;
        font-weight: 700;
        line-height: 1.15;
        min-height: 42px;
        padding: 9px 14px;
        scroll-snap-align: start;
        text-decoration: none !important;
        white-space: nowrap;
    }

    body.graham-catalog-view .graham-mobile-department-chip.is-current {
        background: var(--graham-mobile-green);
        border-color: var(--graham-mobile-green);
        color: #fff !important;
    }

    /* The complete tree is available when needed, but stays out of the way. */
    body.graham-catalog-view .graham-mobile-category-menu {
        border: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    body.graham-catalog-view .graham-mobile-category-menu > summary {
        align-items: center;
        background: #f7f9fa !important;
        border: 0 !important;
        border-top: 1px solid var(--graham-mobile-line) !important;
        color: var(--graham-mobile-blue-dark) !important;
        display: grid !important;
        font-size: 0.9rem !important;
        font-weight: 800;
        gap: 1px 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 48px !important;
        padding: 9px 42px 9px 12px !important;
        position: relative;
    }

    body.graham-catalog-view .graham-mobile-category-menu > summary small {
        color: var(--graham-mobile-muted);
        display: block;
        font-size: 0.68rem;
        font-weight: 600;
        grid-column: 1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.graham-catalog-view .graham-mobile-category-menu > summary::after {
        color: var(--graham-mobile-blue);
        content: "+" !important;
        display: block !important;
        font-size: 1.35rem;
        line-height: 1;
        position: absolute;
        right: 14px;
        top: 13px;
    }

    body.graham-catalog-view .graham-mobile-category-menu[open] > summary::after {
        content: "−" !important;
    }

    body.graham-catalog-view .graham-mobile-category-menu-body {
        background: #fff !important;
        border-top: 1px solid var(--graham-mobile-line);
        max-height: min(72vh, 620px);
        max-height: min(72dvh, 620px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px !important;
        -webkit-overflow-scrolling: touch;
    }

    body.graham-catalog-view .graham-mobile-category-search {
        display: block;
        margin: 0 0 9px;
        position: relative;
    }

    body.graham-catalog-view .graham-mobile-category-search::before {
        color: #6a7b87;
        content: "⌕";
        font-size: 1.35rem;
        left: 12px;
        line-height: 1;
        position: absolute;
        top: 11px;
    }

    body.graham-catalog-view .graham-mobile-category-search input {
        appearance: none;
        background: #fff;
        border: 1px solid #aebcc6;
        border-radius: 8px;
        box-sizing: border-box;
        color: var(--graham-mobile-ink);
        font-size: 16px;
        height: 46px;
        margin: 0;
        padding: 9px 12px 9px 38px;
        width: 100%;
    }

    body.graham-catalog-view .graham-mobile-category-search input:focus {
        border-color: var(--graham-mobile-blue);
        box-shadow: 0 0 0 3px rgba(7, 93, 168, 0.14);
        outline: 0;
    }

    body.graham-catalog-view .graham-mobile-category-all,
    body.graham-catalog-view .graham-mobile-category-leaf,
    body.graham-catalog-view .graham-mobile-category-item > details > summary {
        background: #fff !important;
        border: 0 !important;
        border-bottom: 1px solid #e1e6e9 !important;
        border-radius: 0 !important;
        color: var(--graham-mobile-ink) !important;
        min-height: 48px;
        padding: 0 !important;
    }

    body.graham-catalog-view .graham-mobile-category-all,
    body.graham-catalog-view .graham-mobile-category-leaf {
        align-items: center;
        display: flex;
        font-size: 0.91rem;
        font-weight: 700;
        justify-content: space-between;
        padding: 11px 12px !important;
        text-decoration: none !important;
    }

    body.graham-catalog-view .graham-mobile-category-item > details > summary {
        align-items: stretch;
        display: flex !important;
        list-style: none;
    }

    body.graham-catalog-view .graham-mobile-category-item > details > summary::after {
        content: none !important;
        display: none !important;
    }

    body.graham-catalog-view .graham-mobile-category-parent-link {
        align-items: center;
        color: var(--graham-mobile-ink) !important;
        display: flex;
        flex: 1 1 auto;
        font-size: 0.91rem;
        font-weight: 700;
        gap: 8px;
        justify-content: space-between;
        min-width: 0;
        padding: 11px 8px 11px 12px;
        text-decoration: none !important;
    }

    body.graham-catalog-view .graham-mobile-category-expand {
        align-items: center;
        border-left: 1px solid #e1e6e9;
        color: var(--graham-mobile-blue);
        display: flex;
        flex: 0 0 48px;
        justify-content: center;
        min-height: 48px;
    }

    body.graham-catalog-view .graham-mobile-category-expand::before {
        content: "+";
        font-size: 1.3rem;
        line-height: 1;
    }

    body.graham-catalog-view .graham-mobile-category-item > details[open] > summary .graham-mobile-category-expand::before {
        content: "−";
    }

    body.graham-catalog-view .graham-mobile-category-item small {
        background: #edf2f5 !important;
        border-radius: 999px;
        color: #526775 !important;
        flex: 0 0 auto;
        font-size: 0.68rem;
        font-weight: 700;
        padding: 3px 7px;
    }

    body.graham-catalog-view .graham-mobile-category-children {
        background: #f4f6f7 !important;
        padding-left: 12px !important;
    }

    body.graham-catalog-view .graham-mobile-category-level-1 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-1 > .graham-mobile-category-item > .graham-mobile-category-leaf,
    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > .graham-mobile-category-leaf,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > .graham-mobile-category-leaf {
        background: #f4f6f7 !important;
        color: var(--graham-mobile-blue-dark) !important;
        padding-left: 0 !important;
    }

    body.graham-catalog-view .graham-mobile-category-item.is-current > details > summary,
    body.graham-catalog-view .graham-mobile-category-leaf.is-current,
    body.graham-catalog-view .graham-mobile-category-all.is-current,
    body.graham-catalog-view .graham-mobile-category-parent-link.is-current {
        background: #e7f6ec !important;
        color: #0d6a31 !important;
    }

    body.graham-catalog-view .graham-mobile-category-item.is-current small,
    body.graham-catalog-view .graham-mobile-category-parent-link.is-current small {
        background: var(--graham-mobile-green) !important;
        color: #fff !important;
    }

    body.graham-catalog-view .graham-mobile-category-item[hidden] {
        display: none !important;
    }

    body.graham-shop-landing .graham-mobile-category-menu {
        display: none;
    }

    /* Compact header and controls leave more room for actual products. */
    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro {
        background: #fff;
        border-color: var(--graham-mobile-line);
        border-radius: 10px;
        box-shadow: 0 1px 2px rgba(15, 35, 50, 0.06);
        margin-bottom: 8px;
        padding: 13px 12px;
    }

    body.graham-catalog-view .graham-catalog-intro h1,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro h1 {
        color: var(--graham-mobile-ink);
        font-size: 1.35rem;
        line-height: 1.16;
        margin: 0;
    }

    body.graham-catalog-view .graham-catalog-kicker {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        margin-bottom: 4px;
    }

    body.graham-catalog-view .graham-catalog-tools {
        margin-top: 10px;
    }

    body.graham-catalog-view .graham-catalog-toolbar {
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count {
        flex: 0 1 auto;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count .woocommerce-result-count {
        color: var(--graham-mobile-muted);
        font-size: 0.78rem;
        font-weight: 700;
    }

    body.graham-catalog-view .graham-catalog-toolbar-actions {
        display: block;
        margin-left: auto;
        width: min(58%, 230px);
    }

    body.graham-catalog-view .graham-catalog-toolbar-ordering select {
        background-color: #fff;
        border-color: #aebcc6;
        font-size: 0.8rem;
        min-height: 42px;
        padding-left: 10px;
    }

    body.graham-catalog-view .graham-catalog-view-switch {
        display: none !important;
    }

    /* Image-led, two-column department tiles show more choices at once. */
    body.graham-catalog-view .graham-category-card-section {
        background: #fff;
        border: 1px solid var(--graham-mobile-line);
        border-radius: 10px;
        display: block !important;
        margin-bottom: 8px;
        padding: 12px 10px;
    }

    body.graham-catalog-view .graham-section-heading {
        margin-bottom: 10px;
    }

    body.graham-catalog-view .graham-section-heading p {
        display: none;
    }

    body.graham-catalog-view .graham-section-heading h2 {
        color: var(--graham-mobile-ink);
        font-size: 1.08rem;
    }

    body.graham-catalog-view .graham-category-card-grid,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-grid {
        display: grid !important;
        gap: 8px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.graham-catalog-view .graham-category-card,
    body.graham-shop-landing .graham-catalog-home .graham-category-card {
        border-color: #d9dfe3;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(15, 35, 50, 0.06);
        grid-column: auto !important;
        /* Reset the legacy phone card's image/text columns before stacking. */
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 118px auto !important;
        min-height: 184px !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-category-card-media,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-media {
        box-sizing: border-box;
        grid-column: 1;
        grid-row: 1;
        height: 100%;
        min-height: 0;
        min-width: 0;
        padding: 0;
    }

    body.graham-catalog-view .graham-category-card-copy,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy {
        background: var(--graham-mobile-blue);
        box-sizing: border-box;
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        min-height: 64px;
        min-width: 0;
        padding: 8px 23px 9px 9px;
    }

    body.graham-catalog-view .graham-category-card-copy strong,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy strong {
        color: #fff;
        font-size: 0.86rem;
        line-height: 1.2;
        overflow-wrap: break-word;
        white-space: normal;
        word-break: normal;
    }

    body.graham-catalog-view .graham-category-card-copy small,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy small {
        color: rgba(255, 255, 255, 0.84);
        font-size: 0.68rem;
        line-height: 1.3;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.graham-catalog-view .graham-category-card-arrow,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-arrow {
        bottom: 20px;
        color: #fff;
        font-size: 1.35rem;
        right: 9px;
        top: auto;
    }

    /* One readable, full-width product result per row. */
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products {
        display: grid !important;
        gap: 7px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product {
        align-items: start;
        background: #fff;
        border-color: var(--graham-mobile-line);
        border-radius: 9px;
        box-shadow: 0 1px 2px rgba(15, 35, 50, 0.07);
        column-gap: 12px;
        display: grid !important;
        grid-template-columns: 132px minmax(0, 1fr) !important;
        min-height: 156px;
        padding: 10px !important;
        transform: none !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > * {
        grid-column: 2;
        min-width: 0;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        align-self: start;
        grid-column: 1;
        grid-row: 1 / span 20;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image {
        aspect-ratio: 1 / 1 !important;
        height: 132px !important;
        margin: 0 !important;
        max-height: 132px !important;
        min-height: 132px !important;
        width: 132px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image img {
        padding: 5px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link {
        color: inherit;
        column-gap: 12px;
        display: grid !important;
        grid-column: 1 / -1;
        grid-template-columns: 132px minmax(0, 1fr) !important;
        text-decoration: none;
        width: 100%;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link > * {
        grid-column: 2;
        min-width: 0;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link > img {
        grid-column: 1;
        grid-row: 1 / span 20;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        aspect-ratio: 1 / 1 !important;
        height: 132px !important;
        margin: 0 !important;
        max-height: 132px !important;
        min-height: 132px !important;
        object-fit: contain !important;
        padding: 5px !important;
        width: 132px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product > :not(.woocommerce-LoopProduct-link) {
        grid-column: 2;
        min-width: 0;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-title,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .woocommerce-loop-product__title {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        font-size: 0.96rem !important;
        font-weight: 700 !important;
        height: auto !important;
        line-height: 1.28 !important;
        margin: 0 0 6px !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-product-sku {
        font-size: 0.73rem;
        line-height: 1.3;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-loop-product-sku {
        margin: 0 0 6px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .price {
        color: #111 !important;
        font-size: 1.05rem !important;
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 6px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .stock,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main mark[class*="graham-availability"] {
        font-size: 0.68rem;
        margin: 0 0 7px;
        padding: 4px 7px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-button__link,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-button__button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .button {
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        margin: 5px 0 0 !important;
        max-width: none !important;
        min-height: 42px !important;
        padding: 9px 10px !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-large-order-price-note {
        font-size: 0.67rem;
        line-height: 1.3;
    }

    /* Single-product pages use the same readable phone scale. */
    body.single-product div.product .product_title,
    body.single-product div.product h1 {
        color: var(--graham-mobile-ink);
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
    }

    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary {
        background: #fff;
        border-radius: 10px;
        box-sizing: border-box;
        padding: 10px;
    }
}

@media (max-width: 380px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link {
        column-gap: 9px;
        grid-template-columns: 112px minmax(0, 1fr) !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        height: 112px !important;
        max-height: 112px !important;
        min-height: 112px !important;
        width: 112px !important;
    }

    body.graham-catalog-view .graham-category-card,
    body.graham-shop-landing .graham-catalog-home .graham-category-card {
        grid-template-rows: 102px auto !important;
        min-height: 168px !important;
    }
}

/* 0.13.147: desktop cards use a lower inventory action and quantity-aware cart controls. */
.graham-card-cart {
    display: none;
}

@media (min-width: 821px) {
    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row {
        display: contents !important;
        position: static !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row > :is(.stock, mark[class*="graham-availability"], .graham-availability-with-help) {
        align-self: center;
        grid-column: 2 !important;
        grid-row: 3 !important;
        justify-self: start;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) {
        align-self: end;
        display: block !important;
        grid-column: 1 !important;
        grid-row: 6 !important;
        height: 24px;
        justify-self: start;
        position: relative !important;
        width: auto;
        z-index: 4;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__toggle {
        background: transparent !important;
        border: 0 !important;
        border-radius: 4px !important;
        color: #4a5f71 !important;
        font-size: 0.56rem !important;
        gap: 2px;
        height: 24px;
        min-height: 24px;
        padding: 2px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__toggle .dashicons {
        font-size: 13px;
        height: 13px;
        width: 13px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__panel {
        bottom: 28px;
        left: 0;
        max-height: 360px;
        max-width: calc(100vw - 32px);
        position: absolute !important;
        top: auto;
        transform: none;
        width: 290px;
    }

    .graham-catalog-grid-view .graham-catalog-main .wp-block-woocommerce-product-button[data-graham-quantity-ready="1"] > .wc-block-components-product-button__button,
    .graham-catalog-grid-view .graham-catalog-main .wp-block-woocommerce-product-button[data-graham-quantity-ready="1"] > .added_to_cart,
    .graham-catalog-grid-view .graham-catalog-main .wp-block-woocommerce-product-button[data-graham-quantity-ready="1"] > span[hidden] {
        display: none !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart {
        align-items: stretch;
        display: grid;
        gap: 4px;
        grid-template-columns: 70px minmax(44px, 1fr) 24px;
        height: 38px;
        margin: 0;
        position: relative;
        width: 100%;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__stepper {
        align-items: stretch;
        border: 1px solid #9bb9ce;
        border-radius: 7px;
        display: grid;
        grid-template-columns: 22px minmax(24px, 1fr) 22px;
        min-width: 0;
        overflow: hidden;
    }

    .graham-catalog-grid-view .graham-catalog-main :is(.graham-card-cart__step, .graham-card-cart__submit, .graham-card-cart__remove) {
        align-items: center;
        border: 0;
        cursor: pointer;
        display: inline-flex;
        justify-content: center;
        margin: 0;
        min-height: 38px;
        padding: 0;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__step {
        background: #f4f8fa;
        color: #075b9d;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__step:hover,
    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__step:focus-visible {
        background: #e6f1f7;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__step .dashicons {
        font-size: 13px;
        height: 13px;
        width: 13px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__quantity {
        appearance: textfield;
        background: #fff;
        border: 0;
        border-left: 1px solid #d3e0e8;
        border-radius: 0;
        border-right: 1px solid #d3e0e8;
        color: #18384f;
        font-size: 0.72rem;
        font-weight: 700;
        min-width: 0;
        padding: 0 2px;
        text-align: center;
        width: 100%;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__quantity::-webkit-inner-spin-button,
    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__quantity::-webkit-outer-spin-button {
        appearance: none;
        margin: 0;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__submit {
        background: var(--graham-mobile-green, #14843e);
        border-radius: 7px;
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0 5px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__submit:hover,
    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__submit:focus-visible {
        background: #106f35;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__remove {
        background: #fff;
        border: 1px solid #d8a6a6;
        border-radius: 7px;
        color: #a12727;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__remove:hover,
    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__remove:focus-visible {
        background: #fff1f1;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__remove .dashicons {
        font-size: 14px;
        height: 14px;
        width: 14px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__message {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.is-busy {
        opacity: 0.7;
    }
}

/* 0.13.145: carry the compact mobile card hierarchy into desktop Grid view. */
@media (min-width: 821px) {
    .graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-grid-view .graham-catalog-main ul.products {
        align-items: stretch;
        gap: 12px !important;
        grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)) !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product {
        align-content: start;
        align-items: start;
        border-radius: 9px;
        box-shadow: 0 1px 2px rgba(15, 35, 50, 0.07);
        column-gap: 10px;
        display: grid !important;
        grid-template-columns: 124px minmax(0, 1fr) !important;
        grid-template-rows: 2.4em 1.1em 28px 36px 40px 30px 0;
        height: 100% !important;
        min-height: 224px;
        overflow: hidden;
        padding: 12px !important;
        position: relative;
        row-gap: 3px;
        transform: none !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product::after {
        background: #d9e2e8;
        bottom: 40px;
        content: "";
        height: 1px;
        left: 5%;
        pointer-events: none;
        position: absolute;
        width: 90%;
        z-index: 1;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product > * {
        grid-column: 2;
        min-width: 0;
        text-align: left !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        align-self: start;
        grid-column: 1 !important;
        grid-row: 1 / span 5;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image {
        height: 124px !important;
        margin: 0 !important;
        max-height: 124px !important;
        min-height: 124px !important;
        width: 124px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-alt-thumbnails {
        align-items: center;
        display: flex;
        gap: 4px;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-content: flex-start;
        left: 12px;
        max-width: 124px;
        position: absolute;
        top: 142px;
        z-index: 2;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-alt-thumbnail {
        align-items: center;
        background: #fff;
        border: 1px solid #cbdce7;
        border-radius: 6px;
        box-sizing: border-box;
        display: flex;
        flex: 0 0 36px;
        height: 36px;
        justify-content: center;
        overflow: hidden;
        padding: 2px;
        width: 36px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-alt-thumbnail__image {
        display: block;
        height: 100% !important;
        margin: 0 !important;
        object-fit: contain;
        padding: 0 !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product > .wc-block-components-product-title,
    .graham-catalog-grid-view .graham-catalog-main .wc-block-product > .wp-block-post-title {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box !important;
        font-size: 0.86rem !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        height: 2.4em !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        max-height: 2.4em !important;
        min-height: 2.4em !important;
        overflow: hidden !important;
        text-align: left !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product > .wc-block-components-product-title a,
    .graham-catalog-grid-view .graham-catalog-main .wc-block-product > .wp-block-post-title a {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box !important;
        overflow: hidden !important;
        text-align: left !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-product-sku {
        font-size: 0.68rem;
        grid-column: 2 !important;
        grid-row: 2 !important;
        line-height: 1.1;
        margin: 0 !important;
        min-height: 1.1em;
        overflow: hidden;
        white-space: nowrap;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row {
        align-items: center;
        gap: 4px;
        grid-column: 2 !important;
        grid-row: 3 !important;
        height: 28px;
        margin: 0 !important;
        min-height: 28px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row .stock,
    .graham-catalog-grid-view .graham-catalog-main .graham-loop-status-row mark[class*="graham-availability"] {
        font-size: 0.62rem;
        margin: 0;
        padding: 4px 7px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-staff-inventory__toggle {
        min-height: 26px;
        padding: 3px 6px;
    }

    .graham-catalog-grid-view .graham-catalog-main .wp-block-woocommerce-product-price,
    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-price {
        align-self: center;
        font-size: 0.92rem !important;
        grid-column: 2 !important;
        grid-row: 4 !important;
        height: 36px;
        margin: 0 !important;
        overflow: hidden;
        text-align: left !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-price-review {
        font-size: 0.82rem !important;
        line-height: 1.1 !important;
        white-space: nowrap;
    }

    .graham-catalog-grid-view .graham-catalog-main .wp-block-woocommerce-product-button,
    .graham-catalog-grid-view .graham-catalog-main .graham-select-uom {
        grid-column: 2 !important;
        grid-row: 5 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-button__button,
    .graham-catalog-grid-view .graham-catalog-main a.graham-select-uom {
        align-items: center;
        border-radius: 7px !important;
        display: flex !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        justify-content: center;
        margin: 0 !important;
        min-height: 38px !important;
        padding: 8px 10px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main a.graham-select-uom {
        background: var(--graham-mobile-green, #14843e) !important;
        border: 1px solid var(--graham-mobile-green, #14843e) !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    .graham-catalog-grid-view .graham-catalog-main a.graham-select-uom:hover,
    .graham-catalog-grid-view .graham-catalog-main a.graham-select-uom:focus-visible {
        background: #12833c !important;
        border-color: #12833c !important;
        color: #fff !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-product-save-actions-loop {
        align-self: end;
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        gap: 0;
        grid-column: 2 !important;
        grid-row: 6;
        justify-content: stretch;
        justify-self: end;
        margin: 0 !important;
        width: 66.666%;
        z-index: 3;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-product-save-actions-loop form,
    .graham-catalog-grid-view .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-menu {
        flex: 1 1 0;
        height: 24px;
        margin: 0;
        min-width: 0;
        width: auto;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-product-save-actions-loop .graham-save-link,
    .graham-catalog-grid-view .graham-catalog-main .graham-quote-add {
        align-items: center;
        border: 0 !important;
        border-radius: 4px !important;
        box-sizing: border-box;
        color: #4a5f71 !important;
        display: inline-flex;
        font-size: 0.56rem !important;
        font-weight: 700 !important;
        gap: 2px;
        height: 24px;
        justify-content: center;
        min-height: 24px !important;
        padding: 2px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-product-save-actions-loop .graham-save-link {
        width: 100%;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-product-save-actions-loop .graham-save-label {
        clip: auto;
        clip-path: none;
        height: auto;
        overflow: visible;
        position: static;
        white-space: nowrap;
        width: auto;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-product-save-actions-loop .graham-save-icon.dashicons,
    .graham-catalog-grid-view .graham-catalog-main .graham-quote-add .graham-save-icon.dashicons {
        align-items: center;
        display: inline-flex;
        flex: 0 0 13px;
        font-size: 13px;
        height: 13px;
        justify-content: center;
        line-height: 1;
        width: 13px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-quote-add {
        align-self: end;
        grid-column: 2 !important;
        grid-row: 6;
        justify-self: start;
        margin: 0 !important;
        width: 33.333%;
        z-index: 3;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 2.4em 1.1em 28px 36px 40px 30px auto;
        overflow: visible;
        z-index: 4;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-product-save-actions-loop {
        flex-wrap: wrap;
        grid-column: 1 / -1 !important;
        grid-row: 7;
        height: auto;
        justify-self: stretch;
        padding-top: 6px;
        width: 100%;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-add-list-menu[open] {
        flex: 1 0 100%;
        height: auto;
        width: 100%;
    }

    @supports (content-visibility: auto) {
        .graham-catalog-grid-view .graham-catalog-main .wc-block-product {
            contain-intrinsic-size: auto 224px !important;
        }
    }
}

.graham-product-navigation{display:none}
@media(max-width:900px){
 body.graham-has-product-navigation{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))!important}
 .graham-product-navigation{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:95;align-items:flex-end;justify-content:space-between;gap:14px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));background:transparent;border:0;box-shadow:none;box-sizing:border-box;pointer-events:none}
 .graham-product-navigation button{flex:0 1 180px;width:min(44vw,180px);min-width:0;min-height:40px;border:1px solid #075b9d;border-radius:7px;margin:0;padding:7px 10px;background:#075b9d;color:#fff;box-shadow:0 2px 8px rgba(0,42,74,.2);font:600 13px/1.35 Arial,sans-serif;cursor:pointer;pointer-events:auto;white-space:nowrap}
 .graham-product-navigation button:first-child{margin-right:auto}
 .graham-product-navigation button:last-child{margin-left:auto}
 .graham-product-navigation button:disabled{background:#dfe5e9;color:#6b7881;border-color:#bfcbd2;box-shadow:none;cursor:default;opacity:1}
 .graham-product-navigation button:focus-visible{outline:3px solid #16863f;outline-offset:2px}
 body.graham-has-product-navigation .graham-quote-basket{bottom:calc(64px + env(safe-area-inset-bottom,0px))}
 body.graham-has-product-navigation .graham-quote-feedback:not(:empty){bottom:calc(116px + env(safe-area-inset-bottom,0px))}
}
@media(min-width:560px) and (max-width:900px){
 .graham-product-navigation{padding-left:clamp(12px,2.5vw,24px);padding-right:clamp(12px,2.5vw,24px)}
 .graham-product-navigation button{flex-basis:160px;width:clamp(138px,21vw,160px);min-height:34px;padding:5px 10px;font-size:12px}
}
@media(min-width:901px){
 .graham-product-navigation{display:block;position:fixed;inset:0;z-index:95;border:0;background:transparent;pointer-events:none}
 .graham-product-navigation button{position:absolute;top:50%;display:flex;align-items:center;justify-content:center;width:38px;height:56px;min-width:38px;min-height:56px;margin:0;padding:0;border:1px solid #075b9d;border-radius:6px;background:rgba(7,91,157,.92);color:#fff;box-shadow:0 2px 9px rgba(0,42,74,.2);font-size:0;cursor:pointer;pointer-events:auto;transform:translateY(-50%)}
 .graham-product-navigation button:first-child{left:6px}
 .graham-product-navigation button:last-child{right:6px}
 .graham-product-navigation button::before{background:currentColor;content:"";display:block;height:26px;width:28px}
 .graham-product-navigation button:first-child::before{clip-path:polygon(0 50%,45% 6%,45% 29%,100% 29%,100% 71%,45% 71%,45% 94%)}
 .graham-product-navigation button:last-child::before{clip-path:polygon(100% 50%,55% 6%,55% 29%,0 29%,0 71%,55% 71%,55% 94%)}
 .graham-product-navigation button:hover{background:#004d87;border-color:#004273}
 .graham-product-navigation button:focus-visible{outline:3px solid #16863f;outline-offset:2px}
 .graham-product-navigation button:disabled{background:#dfe5e9;color:#6b7881;border-color:#bfcbd2;box-shadow:none;cursor:default;opacity:.9}
}

/* 0.13.130: clean mobile price area and bottom-row staff inventory icon. */
.graham-loop-alt-thumbnails {
    display: none;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product .graham-large-order-price-note,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .graham-large-order-price-note {
    display: none !important;
}

@media (max-width: 820px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products {
        align-items: stretch;
        display: grid !important;
        gap: 8px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        align-self: start;
        column-gap: 10px;
        grid-template-columns: 132px minmax(0, 1fr) !important;
        grid-template-rows: 2.4em 1.1em 22px 42px 42px 30px 0;
        height: auto !important;
        min-height: 0;
        padding: 10px !important;
        position: relative !important;
        row-gap: 2px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product::after {
        background: #d9e2e8;
        bottom: 40px;
        content: "";
        height: 1px;
        left: 5%;
        pointer-events: none;
        position: absolute;
        width: 90%;
        z-index: 1;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > *:not(.wc-block-components-product-image) {
        text-align: left !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        grid-column: 1 !important;
        grid-row: 1 / span 5;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image {
        height: 132px !important;
        max-height: 132px !important;
        min-height: 132px !important;
        margin: 0 !important;
        overflow: hidden;
        width: 132px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnails {
        align-items: center;
        display: flex;
        gap: 4px;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-content: flex-start;
        justify-self: start;
        left: 10px;
        max-width: 132px;
        position: absolute;
        top: 148px;
        z-index: 2;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnail {
        align-items: center;
        background: #fff;
        border: 1px solid #cbdce7;
        border-radius: 6px;
        box-sizing: border-box;
        display: flex;
        flex: 0 0 40px;
        height: 40px;
        justify-content: center;
        overflow: hidden;
        padding: 2px;
        width: 40px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnail__image {
        display: block;
        height: 100% !important;
        margin: 0 !important;
        object-fit: contain;
        padding: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title {
        font-size: 0.92rem !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        height: 2.4em !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box !important;
        margin: 0 !important;
        max-height: 2.4em !important;
        min-height: 2.4em !important;
        overflow: hidden !important;
        text-align: left !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title a,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title a {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box !important;
        max-height: 100%;
        overflow: hidden !important;
        text-align: left !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-loop-product-sku {
        align-self: start;
        grid-column: 2 !important;
        grid-row: 2 !important;
        line-height: 1.15;
        margin: 0 !important;
        min-height: 1.15em;
        overflow: hidden;
        white-space: nowrap;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-loop-status-row {
        align-items: center;
        height: 22px;
        grid-column: 2 !important;
        grid-row: 3 !important;
        margin: 0 !important;
        min-height: 22px;
        position: static !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) {
        bottom: 12px;
        display: block !important;
        height: 24px;
        left: 10px;
        position: absolute !important;
        top: auto;
        width: auto;
        z-index: 4;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__toggle {
        background: transparent !important;
        border: 0 !important;
        border-radius: 4px !important;
        box-sizing: border-box;
        color: #4a5f71 !important;
        gap: 2px;
        height: 24px;
        min-height: 24px;
        padding: 2px !important;
        width: auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__toggle .dashicons {
        font-size: 13px;
        height: 13px;
        width: 13px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__toggle > span:last-child {
        display: inline !important;
        font-size: 0.56rem;
        font-weight: 700;
        line-height: 1;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__panel {
        bottom: 12px;
        cursor: pointer;
        left: 12px;
        max-height: 55vh;
        max-width: none;
        position: fixed !important;
        right: 12px;
        top: auto;
        transform: none;
        width: auto;
        z-index: 1000;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-price {
        grid-column: 2 !important;
        grid-row: 4 !important;
        height: 42px;
        margin: 0 !important;
        overflow: hidden;
        text-align: left !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-price-review {
        font-size: 0.9rem !important;
        line-height: 1.15 !important;
        white-space: nowrap;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-large-order-price-note {
        font-size: 0.64rem !important;
        line-height: 1.2 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-select-uom {
        grid-column: 2 !important;
        grid-row: 5 !important;
        margin: 0 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main a.graham-select-uom {
        align-items: center;
        background: var(--graham-mobile-green, #14843e) !important;
        border: 1px solid var(--graham-mobile-green, #14843e) !important;
        border-radius: 8px !important;
        box-sizing: border-box;
        color: #fff !important;
        display: flex !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        justify-content: center;
        line-height: 1.2 !important;
        min-height: 40px !important;
        padding: 9px 14px !important;
        text-align: center !important;
        text-decoration: none !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main a.graham-select-uom:hover,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main a.graham-select-uom:focus-visible {
        background: #12833c !important;
        border-color: #12833c !important;
        color: #fff !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button {
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-button__button {
        margin: 0 !important;
        min-height: 40px !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop {
        align-self: end;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        gap: 0;
        grid-column: 2 !important;
        grid-row: 6;
        justify-content: stretch;
        justify-self: end;
        margin: 0 !important;
        width: 66.666%;
        z-index: 3;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop .graham-save-link {
        align-items: center;
        border: 0 !important;
        border-radius: 4px !important;
        box-sizing: border-box;
        display: inline-flex;
        font-size: 0.58rem !important;
        font-weight: 700 !important;
        color: #4a5f71 !important;
        gap: 2px;
        height: 24px;
        justify-content: center;
        min-height: 24px !important;
        padding: 2px !important;
        width: 100%;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop form,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-menu {
        flex: 1 1 0;
        height: 24px;
        margin: 0;
        min-width: 0;
        width: auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop .graham-save-icon.dashicons,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-quote-add .graham-save-icon.dashicons {
        align-items: center;
        display: inline-flex;
        flex: 0 0 13px;
        font-size: 13px;
        height: 13px;
        justify-content: center;
        line-height: 1;
        width: 13px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop .graham-save-label {
        clip: auto;
        clip-path: none;
        height: auto;
        overflow: visible;
        position: static;
        white-space: nowrap;
        width: auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-quote-add {
        align-items: center;
        align-self: end;
        display: inline-flex;
        font-size: 0.58rem !important;
        font-weight: 700 !important;
        color: #4a5f71 !important;
        gap: 2px;
        grid-column: 2 !important;
        grid-row: 6;
        justify-content: center;
        justify-self: start;
        margin: 0 !important;
        min-height: 24px !important;
        padding: 2px !important;
        width: 33.333%;
        z-index: 3;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-product-save-actions-loop {
        grid-column: 1 / -1 !important;
        grid-row: 7;
        flex-wrap: wrap;
        height: auto;
        justify-self: stretch;
        padding: 5px 0 42px;
        width: 100%;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 2.4em 1.1em 22px 42px 42px 30px auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-add-list-menu[open] {
        flex: 1 0 100%;
        height: auto;
        width: 100%;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-add-list-form {
        height: auto;
    }

    @supports (content-visibility: auto) {
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
            contain-intrinsic-size: auto 274px !important;
        }

        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(> .graham-product-save-actions-loop),
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-staff-inventory) {
            contain-intrinsic-size: auto 274px !important;
        }
    }
}

@media (min-width: 560px) and (max-width: 820px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        column-gap: 8px;
        grid-column: auto !important;
        grid-template-columns: 110px minmax(0, 1fr) !important;
        grid-template-rows: 2.4em 1.1em 22px 27px 40px 30px 0;
        min-width: 0;
        padding: 8px !important;
        row-gap: 2px;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image {
        height: 110px !important;
        max-height: 110px !important;
        min-height: 110px !important;
        width: 110px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title {
        font-size: 0.82rem !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-loop-product-sku {
        font-size: 0.67rem;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-price-review {
        display: block;
        font-size: 0.7rem !important;
        line-height: 1.05 !important;
        overflow-wrap: normal;
        white-space: nowrap;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-price {
        height: 27px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnails {
        gap: 3px;
        left: 8px;
        max-width: 110px;
        top: 124px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnail {
        flex-basis: 34px;
        height: 34px;
        width: 34px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) {
        bottom: 10px;
        left: 8px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-quote-add,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop .graham-save-link,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__toggle {
        font-size: 0.52rem !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 2.4em 1.1em 22px 27px 40px 30px auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-button__button {
        font-size: 0.76rem !important;
        min-height: 38px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main a.graham-select-uom {
        font-size: 0.76rem !important;
        min-height: 38px !important;
    }
}

@media (max-width: 380px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        column-gap: 8px;
        grid-template-columns: 122px minmax(0, 1fr) !important;
        grid-template-rows: 2.4em 1.1em 22px 42px 42px 30px 0;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image {
        height: 122px !important;
        max-height: 122px !important;
        min-height: 122px !important;
        width: 122px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnail {
        flex-basis: 38px;
        height: 38px;
        width: 38px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnails {
        max-width: 122px;
        top: 139px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) {
        bottom: 12px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 2.4em 1.1em 22px 42px 42px 30px auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-price {
        height: 42px;
    }

    @supports (content-visibility: auto) {
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
            contain-intrinsic-size: auto 270px !important;
        }

        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(> .graham-product-save-actions-loop),
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-staff-inventory) {
            contain-intrinsic-size: auto 270px !important;
        }
    }
}

/* 0.13.149: stacked catalogue cards from wide-phone through desktop sizes. */
@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        align-content: start;
        column-gap: 0;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 176px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
        height: 100% !important;
        min-height: 392px;
        overflow: hidden;
        padding: 12px !important;
        position: relative;
        row-gap: 3px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product::after {
        bottom: 43px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > * {
        grid-column: 1 !important;
        min-width: 0;
        text-align: left !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        align-self: stretch;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image {
        height: 176px !important;
        margin: 0 !important;
        max-height: 176px !important;
        min-height: 176px !important;
        overflow: hidden;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnails {
        bottom: auto;
        display: flex;
        gap: 4px;
        left: 16px;
        max-width: calc(100% - 32px);
        position: absolute;
        top: 144px;
        z-index: 3;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnail {
        flex: 0 0 34px;
        height: 34px;
        width: 34px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title {
        font-size: 0.88rem !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        height: 2.4em !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        max-height: 2.4em !important;
        min-height: 2.4em !important;
        text-align: left !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-product-sku {
        font-size: 0.68rem;
        grid-column: 1 !important;
        grid-row: 3 !important;
        line-height: 1.1;
        margin: 0 !important;
        min-height: 1.1em;
        overflow: hidden;
        white-space: nowrap;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row {
        display: contents !important;
        height: auto;
        margin: 0 !important;
        min-height: 0;
        position: static !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row > :is(.stock, mark[class*="graham-availability"], .graham-availability-with-help) {
        align-self: center;
        grid-column: 1 !important;
        grid-row: 4 !important;
        justify-self: start;
        margin: 0;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-price {
        align-self: center;
        grid-column: 1 !important;
        grid-row: 5 !important;
        height: 36px;
        margin: 0 !important;
        overflow: hidden;
        text-align: left !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-select-uom {
        grid-column: 1 !important;
        grid-row: 6 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-button__button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main a.graham-select-uom {
        min-height: 38px !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) {
        bottom: 10px;
        display: block !important;
        grid-column: auto !important;
        grid-row: auto !important;
        height: 24px;
        left: 12px;
        position: absolute !important;
        top: auto;
        width: auto;
        z-index: 4;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__panel {
        bottom: 28px;
        left: 0;
        max-height: min(55vh, 360px);
        max-width: min(310px, calc(100vw - 32px));
        position: absolute !important;
        top: auto;
        transform: none;
        width: 290px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-quote-add {
        bottom: 10px;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto;
        left: auto;
        margin: 0 !important;
        position: absolute;
        right: 12px;
        width: auto;
        z-index: 3;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop {
        align-items: center;
        bottom: 10px;
        display: flex !important;
        grid-column: auto !important;
        grid-row: auto !important;
        height: 24px;
        justify-self: auto;
        left: auto;
        margin: 0 !important;
        position: absolute;
        right: 12px;
        width: 48%;
        z-index: 3;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(> .graham-product-save-actions-loop) > .graham-quote-add {
        left: 28%;
        right: auto;
        width: 24%;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 176px 2.4em 1.1em 28px 36px 40px 30px auto !important;
        overflow: visible;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-product-save-actions-loop {
        bottom: auto;
        grid-column: 1 !important;
        grid-row: 8 !important;
        left: auto;
        padding: 6px 0 0;
        position: relative;
        right: auto;
        height: auto;
        width: 100%;
    }

    @supports (content-visibility: auto) {
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product,
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(> .graham-product-save-actions-loop),
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-staff-inventory) {
            contain-intrinsic-size: auto 392px !important;
        }
    }
}

@media (min-width: 560px) and (max-width: 1180px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products {
        gap: 10px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 821px) {
    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart {
        grid-template-columns: 118px minmax(74px, 1fr) 32px;
        width: 100%;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__stepper {
        grid-template-columns: 34px minmax(38px, 1fr) 34px;
    }
}

@media (min-width: 1181px) {
    .graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-grid-view .graham-catalog-main ul.products {
        grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)) !important;
    }
}

/* 0.13.393: compact, consistent desktop ordering controls and clear saved states. */
@media (min-width: 821px) {
    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart {
        gap: 5px;
        grid-template-columns: 112px minmax(78px, 1fr) 30px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart[data-cart-quantity="0"] {
        grid-template-columns: 112px minmax(78px, 1fr);
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.has-uom {
        grid-template-columns: 64px 94px minmax(64px, 1fr) 28px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart.has-uom[data-cart-quantity="0"] {
        grid-template-columns: 64px 94px minmax(64px, 1fr);
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__stepper {
        background: #fff;
        border-color: #8eacbf;
        grid-template-columns: 30px minmax(36px, 1fr) 30px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__step {
        font-size: 18px;
        font-weight: 850;
        line-height: 1;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__submit {
        gap: 4px;
        padding: 0 8px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__submit .dashicons {
        font-size: 14px;
        height: 14px;
        line-height: 1;
        width: 14px;
    }

    .graham-catalog-grid-view .graham-catalog-main .graham-card-cart__remove {
        border: 0;
    }
}

.graham-catalog-main .graham-favorite-button.is-saved,
.graham-catalog-main .graham-favorite-button.is-saved .graham-save-icon {
    color: #14843e !important;
}

.graham-catalog-main .graham-quote-add.is-quoted,
.graham-catalog-main .graham-quote-add.is-quoted .graham-save-icon {
    color: #14843e !important;
}

.graham-catalog-main .graham-quote-add:is(.is-basket, .is-requested),
.graham-catalog-main .graham-quote-add:is(.is-basket, .is-requested) .graham-save-icon {
    color: #788995 !important;
}

/* The Tesla/tablet range gets a short header and a single compact catalogue band. */
@media (min-width: 560px) and (max-width: 960px) {
    body.graham-catalog-view .woocommerce-breadcrumb,
    body.graham-catalog-view .wc-block-breadcrumbs,
    body.graham-catalog-view .wp-block-woocommerce-breadcrumbs {
        display: none !important;
    }

    body.graham-catalog-view .graham-catalog-shell {
        margin-top: 8px;
        width: min(100% - 16px, 920px);
    }

    body.graham-catalog-view .graham-mobile-category-nav {
        margin-bottom: 7px;
    }

    body.graham-catalog-view .graham-mobile-departments {
        display: none !important;
    }

    body.graham-catalog-view .graham-mobile-category-nav summary,
    body.graham-catalog-view .graham-mobile-category-menu > summary {
        font-size: 0.8rem !important;
        min-height: 36px !important;
        padding: 7px 40px 7px 12px !important;
    }

    body.graham-catalog-view .graham-mobile-category-nav summary::after,
    body.graham-catalog-view .graham-mobile-category-menu > summary::after {
        right: 12px;
        top: 7px;
    }

    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro {
        background: #fff;
        border-radius: 9px;
        display: grid !important;
        gap: 10px 16px;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 46%);
        margin-bottom: 8px;
        padding: 11px 14px;
    }

    body.graham-catalog-view .graham-catalog-intro::after {
        display: none;
    }

    body.graham-catalog-view .graham-catalog-kicker,
    body.graham-catalog-view .graham-catalog-intro > div > p:not(.graham-catalog-kicker) {
        display: none;
    }

    body.graham-catalog-view .graham-catalog-intro h1,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro h1 {
        font-size: 1.3rem;
        line-height: 1.15;
        margin: 0;
    }

    body.graham-catalog-view .graham-catalog-tools {
        gap: 5px;
        margin: 0;
    }

    body.graham-catalog-view .graham-catalog-toolbar {
        align-items: center;
        gap: 8px;
        justify-content: flex-end;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count .woocommerce-result-count {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    body.graham-catalog-view .graham-catalog-toolbar-ordering select {
        font-size: 0.72rem;
        min-height: 34px;
        padding-bottom: 5px;
        padding-top: 5px;
    }

    body.graham-catalog-view .graham-catalog-view-switch {
        display: none !important;
    }
}

@media (min-width: 701px) and (max-width: 960px) {
    body .graham-header-branding-inner {
        gap: 20px;
        min-height: 74px;
        padding-bottom: 7px;
        padding-top: 7px;
    }

    body .graham-header-logo-image {
        max-height: 58px;
        width: clamp(190px, 27vw, 230px) !important;
    }

    body .graham-header-product-search input[type="search"] {
        padding-bottom: 8px;
        padding-top: 8px;
    }

    body .graham-header-product-search button {
        min-width: 92px;
    }
}

/* 0.13.151: reserve thumbnail space so alternate images never cover the main image. */
@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        grid-row: 1 / span 4 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image {
        height: 118px !important;
        max-height: 118px !important;
        min-height: 118px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnails {
        align-self: center;
        bottom: auto;
        grid-column: 1 !important;
        grid-row: 5 !important;
        left: auto;
        max-width: 132px;
        position: static;
        top: auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnail {
        flex-basis: 36px;
        height: 36px;
        width: 36px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        grid-template-rows: 2.4em 1.1em 22px 42px 42px 30px 0 !important;
    }
}

@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
        min-height: 416px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-image {
        height: 148px !important;
        max-height: 148px !important;
        min-height: 148px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnails {
        align-self: center;
        bottom: auto;
        grid-column: 1 !important;
        grid-row: 2 !important;
        left: auto;
        max-width: 100%;
        position: static;
        top: auto;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title {
        grid-row: 3 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-product-sku {
        grid-row: 4 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row > :is(.stock, mark[class*="graham-availability"], .graham-availability-with-help) {
        grid-row: 5 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-price {
        grid-row: 6 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-select-uom {
        grid-row: 7 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px auto !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-product-save-actions-loop {
        grid-row: 9 !important;
    }

    @supports (content-visibility: auto) {
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product,
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(> .graham-product-save-actions-loop),
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-staff-inventory) {
            contain-intrinsic-size: auto 416px !important;
        }
    }
}

/* 0.13.158: consistent signed-out ordering and clean action/divider spacing. */
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-price-gated-order {
    box-sizing: border-box;
    margin: 0 !important;
    min-width: 0;
    width: 100% !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-price-gated-order .graham-login-to-order,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .graham-login-to-order {
    height: 40px;
    margin: 0 !important;
    min-height: 40px !important;
}

/* Compact filtered catalogue headers on phones, tablets and scaled phone browsers. */
@media (max-width: 960px) {
    body.graham-catalog-view .graham-mobile-category-nav {
        margin: 4px 0 6px !important;
    }

    body.graham-catalog-view .graham-mobile-category-nav > details,
    body.graham-catalog-view .graham-mobile-category-menu {
        border-radius: 7px !important;
    }

    body.graham-catalog-view .graham-mobile-category-nav summary,
    body.graham-catalog-view .graham-mobile-category-menu > summary {
        font-size: 0.76rem !important;
        min-height: 34px !important;
        padding: 6px 34px 6px 10px !important;
    }

    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro {
        display: grid !important;
        gap: 7px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        margin-bottom: 6px !important;
        padding: 9px 10px !important;
    }

    body.graham-catalog-view .graham-catalog-intro > div,
    body.graham-catalog-view .graham-catalog-tools,
    body.graham-catalog-view .graham-active-filters {
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-intro h1,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro h1 {
        font-size: 1.18rem !important;
        line-height: 1.12 !important;
    }

    body.graham-catalog-view .graham-catalog-kicker,
    body.graham-catalog-view .graham-catalog-intro > div > p:not(.graham-catalog-kicker) {
        display: none !important;
    }

    body.graham-catalog-view .graham-catalog-tools {
        margin-top: 0 !important;
    }

    body.graham-catalog-view .graham-active-filters,
    body.graham-catalog-view .graham-active-filters.is-landing {
        align-items: center !important;
        display: flex !important;
        gap: 5px 6px !important;
        margin-top: 5px !important;
        padding: 5px 7px !important;
    }

    body.graham-catalog-view .graham-active-filter-list {
        flex: 1 1 auto !important;
        gap: 4px !important;
    }

    body.graham-catalog-view .graham-active-filter {
        font-size: 0.67rem !important;
        padding: 2px 5px !important;
    }

    body.graham-catalog-view .graham-active-filters > strong,
    body.graham-catalog-view .graham-active-filters > a {
        flex: 0 0 auto !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        grid-template-rows: 2.4em 1.1em 22px 42px 48px 30px 0 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-price-gated-order {
        grid-column: 2 !important;
        grid-row: 5 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 2.4em 1.1em 22px 42px 48px 30px auto !important;
    }
}

@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-price-gated-order {
        grid-column: 1 !important;
        grid-row: 7 !important;
    }
}

/* 0.13.197: standardize logos without adding height to compact cards. */
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-identity {
    align-self: center;
    min-height: 22px;
}

@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        grid-template-rows: 2.4em 24px 22px 42px 48px 30px 0 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 2.4em 24px 22px 42px 48px 30px auto !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-card-identity,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product > .graham-card-identity {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-manufacturer,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-manufacturer-logo {
        max-height: 100%;
        max-width: 100%;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-identity {
        gap: 6px;
        justify-content: space-between;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-manufacturer {
        flex: 0 0 58px;
        height: 22px;
        padding: 2px;
        position: static;
        width: 58px;
    }
}

@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        grid-template-rows: 148px 38px 2.4em 24px 28px 36px 40px 30px 0 !important;
        min-height: 428px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 148px 38px 2.4em 24px 28px 36px 40px 30px auto !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-card-identity,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product > .graham-card-identity {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }

    @supports (content-visibility: auto) {
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product,
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(> .graham-product-save-actions-loop),
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-staff-inventory) {
            contain-intrinsic-size: auto 428px !important;
        }
    }
}

/* 0.13.203: separate phone-card branding and keep foldable/tablet controls compact. */
@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-identity {
        gap: 0;
        justify-content: flex-start;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-identity .graham-loop-product-sku {
        font-size: 0.68rem !important;
        max-width: 100%;
        width: 100%;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-manufacturer {
        flex: 0 0 90px;
        height: 26px;
        left: 31px;
        padding: 3px;
        position: absolute;
        right: auto;
        top: 8px;
        width: 90px;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-card-manufacturer) > .wc-block-components-product-image {
        box-sizing: border-box;
        padding-top: 32px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-card-manufacturer):has(> .graham-loop-alt-thumbnails),
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product:has(.graham-card-manufacturer):has(> .graham-loop-alt-thumbnails) {
        min-height: 270px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-card-manufacturer) > .graham-loop-alt-thumbnails,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product:has(.graham-card-manufacturer) > .graham-loop-alt-thumbnails {
        grid-column: auto !important;
        grid-row: auto !important;
        left: 10px;
        position: absolute;
        top: 166px;
        width: 132px;
    }

    @supports (content-visibility: auto) {
        body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-card-manufacturer):has(> .graham-loop-alt-thumbnails) {
            contain-intrinsic-size: auto 270px !important;
        }
    }
}

@media (max-width: 559px) {
    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro {
        height: auto !important;
        min-height: 0 !important;
    }

    body.graham-catalog-view .graham-catalog-tools > .graham-active-filters,
    body.graham-catalog-view .graham-catalog-tools > .graham-active-filters.is-landing {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-tools:has(.graham-catalog-filter-panel[open]) > .graham-active-filters,
    body.graham-catalog-view .graham-catalog-tools:has(.graham-catalog-filter-panel[open]) > .graham-active-filters.is-landing {
        grid-row: 4 !important;
    }
}

/* 0.13.576: keep catalog sale cards readable when a product has a brand logo. */
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product .wc-block-components-product-sale-badge,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .wc-block-components-product-sale-badge {
    display: none !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) .wp-block-woocommerce-product-price,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product:has(.graham-special-price) .price {
    align-self: start !important;
    min-height: 58px !important;
    overflow: visible !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price {
    align-items: start !important;
    display: grid !important;
    gap: 2px !important;
    grid-template-areas: "label" "regular" "special" !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
    overflow: visible !important;
    width: 100% !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price-label {
    flex-basis: auto !important;
    grid-area: label !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price del {
    display: block !important;
    font-size: .72rem !important;
    grid-area: regular !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price ins {
    align-items: baseline !important;
    display: inline-flex !important;
    font-size: 1.02rem !important;
    gap: 3px !important;
    grid-area: special !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
}

@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) {
        grid-template-rows: 148px 38px 2.4em 24px 28px 58px 40px 30px 0 !important;
        min-height: 450px !important;
    }
}

@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) {
        grid-template-rows: 118px 24px 2.4em 24px 28px 58px 40px 30px 0 !important;
        min-height: 390px !important;
    }
}

/* 0.13.582: keep sale cards the same height as regular cards and compact the three price lines. */
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) > .wp-block-woocommerce-product-price,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product:has(.graham-special-price) .price {
    align-self: start !important;
    align-items: flex-start !important;
    height: 36px !important;
    margin: 0 !important;
    min-height: 36px !important;
    overflow: visible !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) .wc-block-components-product-price {
    align-items: flex-start !important;
    align-self: flex-start !important;
    display: block !important;
    height: 36px !important;
    margin: 0 !important;
    min-height: 36px !important;
    overflow: visible !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) .graham-loop-status-row > .graham-availability-with-help {
    align-self: start !important;
    grid-row: 5 !important;
    margin: 0 !important;
    min-height: 24px !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price {
    align-content: start !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-areas: "regular" "label" "special" !important;
    grid-template-rows: 11px 9px 16px !important;
    height: 36px !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 36px !important;
    overflow: visible !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price-label {
    color: #c51f40 !important;
    font-size: .55rem !important;
    font-weight: 700 !important;
    grid-area: label !important;
    line-height: 9px !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price del,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price del .woocommerce-Price-amount,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price del bdi {
    display: inline !important;
    font-size: .68rem !important;
    grid-area: regular !important;
    height: auto !important;
    line-height: 11px !important;
    margin: 0 !important;
    max-height: 11px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price ins,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price ins .woocommerce-Price-amount,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price ins bdi {
    align-items: baseline !important;
    display: inline-flex !important;
    font-size: .92rem !important;
    gap: 2px !important;
    grid-area: special !important;
    height: 16px !important;
    line-height: 16px !important;
    margin: 0 !important;
    max-height: 16px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) {
        grid-template-rows: 148px 38px 2.4em 24px 28px 36px 40px 30px 0 !important;
        min-height: 376px !important;
    }
}

@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-special-price) {
        grid-template-rows: 118px 24px 2.4em 24px 28px 36px 40px 30px 0 !important;
        min-height: 376px !important;
    }
}

/* 0.13.584: catalog sale cards show the sale price only; product pages retain both prices. */
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price > del,
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product .graham-special-price > del {
    display: none !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-special-price {
    align-content: start !important;
    grid-template-areas: "label" "special" !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 9px 18px !important;
    height: 36px !important;
    min-height: 36px !important;
}

@media (min-width: 560px) and (max-width: 1100px) {
    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro {
        align-items: start;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.graham-catalog-view .graham-catalog-tools {
        align-items: end !important;
        display: grid !important;
        gap: 6px 8px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar {
        align-items: center !important;
        display: flex !important;
        gap: 8px !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-content: space-between !important;
        min-width: 0;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count {
        flex: 1 1 auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0;
    }

    body.graham-catalog-view .graham-catalog-toolbar-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        width: auto !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: 112px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel > summary {
        width: 112px !important;
    }

    body.graham-catalog-view .graham-catalog-tools > .graham-active-filters,
    body.graham-catalog-view .graham-catalog-tools > .graham-active-filters.is-landing {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] > summary {
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-tools:has(.graham-catalog-filter-panel[open]) > .graham-active-filters,
    body.graham-catalog-view .graham-catalog-tools:has(.graham-catalog-filter-panel[open]) > .graham-active-filters.is-landing {
        grid-row: 3 !important;
    }
}

/* 0.13.436: give tablet catalogue counts a stable row above the controls. */
@media (min-width: 821px) and (max-width: 1100px) {
    body.graham-catalog-view .graham-catalog-toolbar {
        align-items: stretch !important;
        display: grid !important;
        gap: 6px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count {
        flex: none !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-actions {
        display: flex !important;
        flex: none !important;
        flex-wrap: wrap;
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* 0.13.410: image-led category tiles keep a finished, bounded shape at every size. */
body.graham-catalog-view .graham-category-card,
body.graham-shop-landing .graham-catalog-home .graham-category-card,
body.graham-catalog-view .graham-category-card-media,
body.graham-shop-landing .graham-catalog-home .graham-category-card-media,
body.graham-catalog-view .graham-category-card-media img,
body.graham-shop-landing .graham-catalog-home .graham-category-card-media img {
    box-sizing: border-box;
    max-width: 100% !important;
    min-width: 0;
    width: 100% !important;
}

body.graham-catalog-view .graham-category-card,
body.graham-shop-landing .graham-catalog-home .graham-category-card {
    border-radius: 8px;
    overflow: hidden;
}

body.graham-catalog-view .graham-category-card-media,
body.graham-shop-landing .graham-catalog-home .graham-category-card-media {
    aspect-ratio: auto !important;
    padding: 0 !important;
}

body.graham-catalog-view .graham-category-card-media img,
body.graham-shop-landing .graham-catalog-home .graham-category-card-media img {
    display: block;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    padding: 0 !important;
}

@media (max-width: 700px) {
    body.graham-catalog-view .graham-category-card,
    body.graham-shop-landing .graham-catalog-home .graham-category-card {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: clamp(108px, 30vw, 132px) minmax(62px, auto) !important;
        min-height: 174px !important;
    }

    body.graham-catalog-view .graham-category-card-media,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-media {
        height: 100% !important;
        overflow: hidden;
    }

    body.graham-catalog-view .graham-category-card-copy,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy {
        min-height: 62px !important;
        padding: 9px 26px 10px 10px !important;
    }
}

@media (min-width: 701px) and (max-width: 1040px) {
    body.graham-catalog-view .graham-category-card-grid,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-grid {
        gap: 12px !important;
        grid-template-columns: repeat(auto-fill, minmax(240px, 280px)) !important;
        justify-content: start !important;
    }

    body.graham-catalog-view .graham-category-card,
    body.graham-shop-landing .graham-catalog-home .graham-category-card {
        grid-template-rows: 168px minmax(70px, auto) !important;
        min-height: 238px !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-category-card-media,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-media {
        height: 168px !important;
    }

    body.graham-catalog-view .graham-category-card-copy,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy {
        min-height: 70px !important;
        padding: 12px 42px 13px 14px !important;
    }
}

@media (min-width: 1041px) {
    body.graham-catalog-view .graham-category-card-grid,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-grid {
        gap: 16px !important;
        grid-template-columns: repeat(auto-fill, minmax(275px, 290px)) !important;
        justify-content: start !important;
    }

    body.graham-catalog-view .graham-category-card,
    body.graham-shop-landing .graham-catalog-home .graham-category-card {
        grid-template-rows: 184px minmax(74px, auto) !important;
        min-height: 258px !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-category-card-media,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-media {
        height: 184px !important;
    }

    body.graham-catalog-view .graham-category-card-copy,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy {
        min-height: 74px !important;
        padding: 13px 44px 14px 16px !important;
    }
}

/* 0.13.411: keep compact catalogue controls readable without clipping useful text. */
@media (max-width: 559px) {
    body.graham-catalog-view .graham-catalog-tools {
        grid-template-columns: minmax(0, 1fr) 104px !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-actions,
    body.graham-catalog-view .graham-catalog-toolbar-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering select {
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        grid-template-rows: 3.6em 24px 22px 42px 48px 30px 0 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 3.6em 24px 22px 42px 48px 30px auto !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title {
        -webkit-line-clamp: 3 !important;
        height: 3.6em !important;
        max-height: 3.6em !important;
        min-height: 3.6em !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title a,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title a {
        -webkit-line-clamp: 3 !important;
    }
}

/* 0.13.412: give unfolded-phone catalogue controls room to show their full labels. */
@media (min-width: 560px) and (max-width: 820px) {
    body.graham-catalog-view .graham-catalog-tools {
        grid-template-columns: minmax(0, 1fr) 112px !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar {
        display: contents !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        min-width: 0;
    }

    body.graham-catalog-view .graham-catalog-toolbar-actions {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-left: 0 !important;
        min-width: 0;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering select {
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    body.graham-catalog-view .graham-catalog-tools > .graham-active-filters,
    body.graham-catalog-view .graham-catalog-tools > .graham-active-filters.is-landing {
        grid-row: 3 !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }

    body.graham-catalog-view .graham-catalog-tools:has(.graham-catalog-filter-panel[open]) > .graham-active-filters,
    body.graham-catalog-view .graham-catalog-tools:has(.graham-catalog-filter-panel[open]) > .graham-active-filters.is-landing {
        grid-row: 4 !important;
    }
}

/* 0.13.604: keep product-card list controls inside the card at every
 * breakpoint. Older mobile rules position the same controls in several
 * different grid rows; this final block gives the open picker one layout. */
.graham-catalog-main .graham-product-save-actions-loop {
    align-items: center;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    overflow: visible;
    position: relative;
    width: 100%;
    z-index: 5;
}

.graham-catalog-main .graham-product-save-actions-loop form,
.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-menu {
    flex: 0 1 auto;
    height: auto;
    min-width: 0;
    width: auto;
}

.graham-catalog-main .graham-product-save-actions-loop .graham-save-link,
.graham-catalog-main .graham-product-save-actions-loop .graham-quote-add {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    gap: 4px;
    justify-content: center;
    max-width: 100%;
    min-height: 30px !important;
    overflow: hidden;
    padding: 5px 8px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graham-catalog-main .graham-product-save-actions-loop .graham-save-label {
    max-width: 12ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-menu {
    position: relative;
}

.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-panel {
    box-sizing: border-box;
    left: 0;
    margin-top: 6px;
    max-width: min(320px, calc(100vw - 32px));
    min-width: 270px;
    overflow: visible;
    padding: 12px;
    position: absolute;
    right: auto;
    top: calc(100% + 2px);
    width: min(320px, calc(100vw - 32px));
    z-index: 60;
}

.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-form {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 84px auto;
    min-width: 0;
}

.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-choice,
.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-quantity {
    min-width: 0;
}

.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-choice select,
.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-quantity input,
.graham-catalog-main .graham-product-save-actions-loop .graham-add-list-form > .button {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

@media (max-width: 700px) {
    .graham-catalog-main .graham-product-save-actions-loop {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        justify-self: stretch !important;
        margin: 0 !important;
        width: 100%;
    }

    .graham-catalog-main .graham-product-save-actions-loop .graham-save-link,
    .graham-catalog-main .graham-product-save-actions-loop .graham-quote-add {
        font-size: 0.68rem !important;
        min-height: 30px !important;
    }

    .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-menu[open] {
        flex: 1 0 100%;
        width: 100%;
    }

    .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-panel {
        left: auto;
        margin-top: 6px;
        max-width: none;
        min-width: 0;
        position: static;
        right: auto;
        width: 100%;
    }

    .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-form {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-form > .button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-panel {
        padding: 10px;
    }

    .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-catalog-main .graham-product-save-actions-loop .graham-add-list-form > .button {
        grid-column: auto;
    }
}

/* 0.13.614: make one-column cards self-contained at phone widths and let the
 * cart control shrink with the card instead of clipping the Add button. */
@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        align-content: start !important;
        column-gap: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 150px 2.6em 1.2em minmax(24px, auto) 42px 42px 30px !important;
        height: auto !important;
        min-height: 366px !important;
        overflow: visible !important;
        padding: 10px !important;
        position: relative !important;
        row-gap: 3px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > * {
        grid-column: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        align-self: stretch !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        height: 150px !important;
        margin: 0 !important;
        max-height: 150px !important;
        min-height: 150px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnails {
        bottom: auto !important;
        display: flex !important;
        gap: 4px !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        position: absolute !important;
        top: 116px !important;
        z-index: 3 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-alt-thumbnail {
        flex: 0 0 32px !important;
        height: 32px !important;
        width: 32px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-title,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-post-title {
        display: -webkit-box !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        height: 2.6em !important;
        line-height: 1.28 !important;
        margin: 0 !important;
        max-height: 2.6em !important;
        min-height: 2.6em !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-identity {
        align-self: center !important;
        grid-column: 1 !important;
        grid-row: 3 !important;
        min-height: 1.2em !important;
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-manufacturer {
        height: 26px !important;
        left: auto !important;
        padding: 3px !important;
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
        width: 90px !important;
        z-index: 4 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row {
        display: contents !important;
        height: auto !important;
        margin: 0 !important;
        min-height: 0 !important;
        position: static !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row > :is(.stock, mark[class*="graham-availability"], .graham-availability-with-help) {
        align-self: center !important;
        grid-column: 1 !important;
        grid-row: 4 !important;
        justify-self: start !important;
        margin: 0 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-components-product-price {
        align-self: center !important;
        grid-column: 1 !important;
        grid-row: 5 !important;
        margin: 0 !important;
        min-width: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-select-uom {
        align-self: stretch !important;
        grid-column: 1 !important;
        grid-row: 6 !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart {
        align-items: stretch !important;
        display: grid !important;
        gap: 4px !important;
        grid-template-columns: 58px minmax(52px, 1fr) 78px !important;
        height: 42px !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart:not(.has-uom) {
        grid-template-columns: minmax(52px, 1fr) 78px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__uom-static,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__quantity-field,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__quantity {
        box-sizing: border-box !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__uom-static,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__quantity-field {
        align-items: center !important;
        display: flex !important;
        justify-content: center !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main :is(.graham-card-cart__uom-static, .graham-card-cart__quantity-field, .graham-card-cart__submit, .graham-card-cart__remove) {
        min-height: 42px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__submit {
        box-sizing: border-box !important;
        gap: 3px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 5px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__submit [data-card-cart-submit-label] {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) {
        bottom: 8px !important;
        display: block !important;
        height: 24px !important;
        left: 10px !important;
        position: absolute !important;
        right: auto !important;
        top: auto !important;
        width: auto !important;
        z-index: 5 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row .graham-staff-inventory:not(.graham-staff-inventory--single) .graham-staff-inventory__panel {
        bottom: 28px !important;
        left: 0 !important;
        max-height: min(55vh, 360px) !important;
        max-width: min(310px, calc(100vw - 32px)) !important;
        position: absolute !important;
        top: auto !important;
        transform: none !important;
        width: min(290px, calc(100vw - 32px)) !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-quote-add {
        bottom: 8px !important;
        grid-column: auto !important;
        grid-row: auto !important;
        left: 28% !important;
        margin: 0 !important;
        position: absolute !important;
        right: auto !important;
        width: 24% !important;
        z-index: 5 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop {
        align-items: center !important;
        bottom: 8px !important;
        display: flex !important;
        gap: 3px !important;
        grid-column: auto !important;
        grid-row: auto !important;
        height: 24px !important;
        left: auto !important;
        margin: 0 !important;
        position: absolute !important;
        right: 10px !important;
        width: 44% !important;
        z-index: 5 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop .graham-save-link,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-quote-add,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-staff-inventory__toggle {
        box-sizing: border-box !important;
        font-size: 0.6rem !important;
        min-height: 24px !important;
        overflow: hidden !important;
        padding: 2px 3px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-product-save-actions-loop .graham-save-link {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product::after {
        bottom: 37px !important;
        left: 5% !important;
        width: 90% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) {
        grid-template-rows: 150px 2.6em 1.2em minmax(24px, auto) 42px 42px 30px auto !important;
        overflow: visible !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-add-list-menu[open]) .graham-product-save-actions-loop {
        bottom: auto !important;
        grid-column: 1 !important;
        grid-row: 8 !important;
        left: auto !important;
        padding: 6px 0 0 !important;
        position: relative !important;
        right: auto !important;
        width: 100% !important;
    }
}

/* Keep the two-column tablet cards compact while making the cart control
 * fluid at the exact width where the layout changes columns. */
@media (min-width: 560px) and (max-width: 820px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart {
        align-items: stretch !important;
        display: grid !important;
        gap: 4px !important;
        grid-template-columns: 56px minmax(48px, 1fr) 76px !important;
        height: 40px !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart:not(.has-uom) {
        grid-template-columns: minmax(48px, 1fr) 76px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button[data-graham-quantity-ready="1"] > .wc-block-components-product-button__button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button[data-graham-quantity-ready="1"] > .added_to_cart,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wp-block-woocommerce-product-button[data-graham-quantity-ready="1"] > span[hidden],
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-uom[data-graham-quantity-ready="1"] > .graham-card-uom__add {
        display: none !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main :is(.graham-card-cart__uom-static, .graham-card-cart__quantity-field, .graham-card-cart__submit, .graham-card-cart__remove) {
        box-sizing: border-box !important;
        min-height: 40px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart__submit {
        overflow: hidden !important;
        padding: 0 5px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* 0.13.621: keep one-column product cards readable at narrow and zoomed
 * widths.  The card sections must have their own rows so status, price and
 * purchase controls cannot collapse into one another. */
@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        column-gap: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 150px 2.6em auto minmax(24px, auto) minmax(38px, auto) 42px 30px !important;
        min-height: 390px !important;
        row-gap: 4px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-identity {
        align-self: start !important;
        height: auto !important;
        min-height: 1.2em !important;
        overflow: visible !important;
        position: static !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-product-sku {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-manufacturer {
        bottom: auto !important;
        left: auto !important;
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
        z-index: 4 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-loop-status-row > :is(.stock, mark[class*="graham-availability"], .graham-availability-with-help) {
        align-self: start !important;
        display: inline-flex !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-woocommerce-product-price,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .price {
        align-items: center !important;
        align-self: stretch !important;
        display: flex !important;
        grid-column: 1 !important;
        grid-row: 5 !important;
        height: auto !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 38px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wp-block-woocommerce-product-button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-select-uom {
        align-self: stretch !important;
        grid-column: 1 !important;
        grid-row: 6 !important;
        height: 42px !important;
        margin: 0 !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .graham-card-cart {
        align-self: stretch !important;
        height: 42px !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* 0.13.646: final normal catalogue card anatomy. Keep the image and
 * manufacturer logo in fixed slots after all legacy WooCommerce rules. */
@media (min-width: 560px) {
  body.graham-catalog-view .graham-catalog-main ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product {
    align-content: start !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
    min-height: 416px !important;
    overflow: hidden !important;
    position: relative !important;
  }
  body.graham-catalog-view .graham-catalog-main ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 148px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 148px !important;
    padding: 0 !important;
    width: 100% !important;
  }
  body.graham-catalog-view .graham-catalog-main ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .wc-block-components-product-image img {
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    display: block !important;
    height: 100% !important;
    margin: 0 !important;
    max-height: 148px !important;
    max-width: 148px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    width: 100% !important;
  }
  body.graham-catalog-view .graham-catalog-main ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .wp-block-post-title {
    grid-area: 3 / 1 / 4 / -1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: auto !important;
  }
  body.graham-catalog-view .graham-catalog-main ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    min-width: 0 !important;
    position: static !important;
    width: auto !important;
  }
  body.graham-catalog-view .graham-catalog-main ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product .graham-card-manufacturer {
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 3 !important;
  }
}
