/* 0.14.071: one Woo-compatible catalogue card anatomy.
 * This is the only custom card layout sheet in the clean-card trial. It
 * leaves WooCommerce base typography, buttons, and grid behavior in place and
 * only assigns the card's stable internal slots. There are no card media
 * queries: the surrounding product grid changes columns, not the card. */

/* Hide Woo's native loop control from the first paint. Graham's server/JS
 * control is the only purchase control used by catalogue cards. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    :is(.wc-block-components-product-button__button, .add_to_cart_button, .ajax_add_to_cart) {
    visibility: hidden !important;
}

/* 0.14.072: the purchase row is one right-justified flex row. The previous
 * grid let the quantity field and Add button land in the same grid cell. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-uom__source {
    display: block !important;
    flex: 0 0 71px !important;
    margin: 0 !important;
    min-width: 71px !important;
    width: 71px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-cart {
    display: contents !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__quantity-field,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__submit {
    flex: 0 0 71px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 !important;
    min-width: 71px !important;
    width: 71px !important;
}

/* 0.14.073: cards use the default UOM silently. Only quantity and Add are
 * visible, so the purchase row cannot be displaced by a UOM selector. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-uom__source {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__quantity-field {
    flex: 0 0 71px !important;
    width: 71px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__submit {
    flex: 0 0 90px !important;
    min-width: 90px !important;
    width: 90px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) {
    align-content: start !important;
    background: #fff !important;
    border: 1px solid #d1e0e8 !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: minmax(0, 1fr) 148px !important;
    grid-template-rows: 176px 14px 40px 18px 28px 36px 10px 30px !important;
    height: 404px !important;
    min-height: 404px !important;
    overflow: visible !important;
    padding: 10px !important;
    position: relative !important;
}

/* Older catalogue sheets draw a second divider with the card pseudo-element.
 * The clean card has exactly one divider: the top border of its footer. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product)::after {
    content: none !important;
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image {
    align-items: center !important;
    display: flex !important;
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 176px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 176px !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image a,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image img {
    align-self: center !important;
    display: block !important;
    height: 176px !important;
    margin: 0 !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    width: 176px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image {
    overflow: visible !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image a,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image figure,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image figure > a {
    align-items: center !important;
    display: flex !important;
    height: 176px !important;
    justify-content: center !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-image img {
    box-sizing: border-box !important;
    flex: 0 0 176px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-manufacturer {
    left: auto !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 5 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-loop-alt-thumbnails {
    left: auto !important;
    position: absolute !important;
    right: 10px !important;
    top: 48px !important;
    z-index: 4 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wp-block-post-title,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .wc-block-components-product-title,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > h2 {
    grid-area: 3 / 1 / 4 / -1 !important;
    height: auto !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    height: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-identity
    .graham-card-manufacturer {
    left: auto !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 5 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-loop-status-row {
    align-items: center !important;
    display: flex !important;
    grid-area: 5 / 1 / 6 / -1 !important;
    height: 28px !important;
    margin: 0 !important;
    min-height: 28px !important;
    overflow: visible !important;
    padding: 0 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-purchase-row {
    align-items: center !important;
    display: grid !important;
    gap: 4px !important;
    grid-area: 6 / 1 / 7 / -1 !important;
    grid-template-columns: minmax(0, 1fr) 148px !important;
    height: 36px !important;
    margin: 0 !important;
    min-height: 36px !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-row
    > .wc-block-components-product-price,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-row
    > .graham-catalog-price-slot {
    align-items: center !important;
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 36px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action {
    display: contents !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .wp-block-woocommerce-product-button,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-catalog-action-slot,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-price-gated-order {
    align-items: center !important;
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 30px !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* A multi-UOM card has one compact UOM choice followed by Add. The quantity
 * control is intentionally not duplicated underneath that choice. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom {
    align-items: center !important;
    display: grid !important;
    gap: 4px !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    height: 30px !important;
    margin: 0 !important;
    max-width: 148px !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom > .graham-card-uom__source {
    align-items: center !important;
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 30px !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom .graham-card-uom__static {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom .graham-card-uom__select {
    appearance: auto !important;
    background: #fff !important;
    border: 1px solid #9fb7c7 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    color: #17324a !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    min-width: 0 !important;
    padding: 0 16px 0 4px !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom > .graham-card-cart {
    display: contents !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom .graham-card-cart__remove,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom .graham-card-cart__message {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-purchase-action
    > .graham-card-uom .graham-card-cart__submit {
    align-items: center !important;
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 30px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 30px !important;
    width: 100% !important;
}

/* Use one green Add-to-cart treatment for both the normal quantity control
 * and the legacy multi-UOM quick-add link. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product)
    :is(.graham-card-cart__submit, .graham-card-uom__add) {
    align-items: center !important;
    background: #14843e !important;
    border: 1px solid #14843e !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    color: #fff !important;
    display: flex !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    gap: 4px !important;
    height: 30px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-uom__add::before {
    content: "\f174";
    font-family: dashicons;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-catalog-price-slot,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-catalog-action-slot {
    grid-row: 6 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-login-to-order,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-family-choose-options {
    align-items: center !important;
    background: #075da8 !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    color: #fff !important;
    display: flex !important;
    height: 30px !important;
    justify-content: center !important;
    margin: 0 0 0 auto !important;
    max-width: 148px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-login-to-view-price {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-cart {
    display: grid !important;
    gap: 4px !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    height: 30px !important;
    margin: 0 0 0 auto !important;
    max-width: 148px !important;
    min-height: 30px !important;
    position: static !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-cart__quantity-field,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-card-cart__submit {
    height: 30px !important;
    min-height: 30px !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer {
    align-items: stretch !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #d1e0e8 !important;
    display: grid !important;
    gap: 0 !important;
    grid-area: 8 / 1 / 9 / -1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    overflow: visible !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
    z-index: 20 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-product-save-actions-loop {
    display: contents !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-staff-inventory,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-quote-add {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-quote-add {
    grid-column: 2 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-favorite-form,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-add-list-menu {
    align-items: center !important;
    display: flex !important;
    grid-row: 1 !important;
    height: 30px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-quote-add,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-quote-list-button,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-favorite-form,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-add-list-menu,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) > .graham-card-footer
    > .graham-staff-inventory {
    align-self: stretch !important;
    float: none !important;
    inset: auto !important;
    justify-self: stretch !important;
    position: static !important;
    transform: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-add-list-menu {
    grid-column: 3 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-favorite-form {
    grid-column: 3 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-staff-inventory__toggle,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-quote-add,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-add-list-menu > summary,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-favorite-form > button {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #526878 !important;
    display: flex !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    height: 30px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 30px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 3px !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-staff-inventory__panel {
    background: #fff !important;
    border: 1px solid #b9ceda !important;
    border-radius: 7px !important;
    bottom: 34px !important;
    box-sizing: border-box !important;
    left: 0 !important;
    max-height: 420px !important;
    max-width: 100% !important;
    overflow: auto !important;
    padding: 8px !important;
    position: absolute !important;
    width: 100% !important;
    z-index: 2147483000 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main :is(li.wc-block-product, ul.products li.product) .graham-staff-inventory__panel[hidden] {
    display: none !important;
}

/* 0.14.042: final card lock.  Some of the theme's narrow-card rules have
 * higher specificity and were allowing a two-line title to paint into the
 * SKU row, while also changing the image wrapper on phone widths.  These
 * rules are deliberately last in this footer-loaded sheet and reserve the
 * same title/SKU/image slots at every catalogue width. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
    :is(ul.wc-block-product-template > li.wc-block-product,
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
        ul.products > li.product) {
    grid-template-rows: 176px 10px 44px 20px 28px 36px 10px 30px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
    :is(ul.wc-block-product-template > li.wc-block-product,
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
        ul.products > li.product) > :is(.wc-block-components-product-image,
        a.woocommerce-LoopProduct-link,
        a.woocommerce-loop-product__link) {
    align-items: center !important;
    display: flex !important;
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 176px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 176px !important;
    overflow: visible !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
    :is(ul.wc-block-product-template > li.wc-block-product,
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
        ul.products > li.product) > :is(.wc-block-components-product-image,
        a.woocommerce-LoopProduct-link,
        a.woocommerce-loop-product__link) :is(a, figure, img) {
    align-items: center !important;
    display: flex !important;
    height: 176px !important;
    justify-content: center !important;
    margin: 0 auto !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    transform: none !important;
    width: 176px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
    :is(ul.wc-block-product-template > li.wc-block-product,
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
        ul.products > li.product) > :is(.wc-block-components-product-image,
        a.woocommerce-LoopProduct-link,
        a.woocommerce-loop-product__link) img {
    display: block !important;
    flex: 0 0 176px !important;
    height: 176px !important;
    margin: 0 auto !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    transform: none !important;
    width: 176px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
    :is(ul.wc-block-product-template > li.wc-block-product,
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
        ul.products > li.product) > :is(.wp-block-post-title,
        .wc-block-components-product-title,
        h2) {
    align-self: start !important;
    box-sizing: border-box !important;
    display: -webkit-box !important;
    grid-area: 3 / 1 / 4 / -1 !important;
    height: 44px !important;
    line-height: 17px !important;
    margin: 0 !important;
    max-height: 44px !important;
    min-height: 44px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
    :is(ul.wc-block-product-template > li.wc-block-product,
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
        ul.products > li.product) > .graham-card-identity {
    align-self: start !important;
    box-sizing: border-box !important;
    display: block !important;
    grid-area: 4 / 1 / 5 / -1 !important;
    height: 20px !important;
    line-height: 20px !important;
    margin: 0 !important;
    max-height: 20px !important;
    min-height: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
    :is(ul.wc-block-product-template > li.wc-block-product,
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
        ul.products > li.product) > .graham-card-identity > .graham-loop-product-sku {
    display: block !important;
    height: 20px !important;
    line-height: 20px !important;
    margin: 0 !important;
    max-height: 20px !important;
    min-height: 20px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* 0.14.043: the mobile frame must not reserve space for the logo. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image > a {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image > a > img {
    display: block !important;
    margin: 0 auto !important;
    object-position: center center !important;
    transform: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .graham-card-manufacturer {
    bottom: auto !important;
    left: auto !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    transform: none !important;
}

/* 0.14.045: the phone card keeps the manufacturer mark, but it never
 * reserves a second image column for it. The image frame owns the full card
 * width and the actual image is centered inside that frame. */
@media (max-width: 559px) {
    html body.graham-catalog-view:not(.graham-product-view)
        .graham-catalog-main
        :is(li.wc-block-product, ul.products li.product)
        > .wc-block-components-product-image {
        align-items: center !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-product-view)
        .graham-catalog-main
        :is(li.wc-block-product, ul.products li.product)
        > .wc-block-components-product-image :is(a, figure) {
        align-items: center !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-product-view)
        .graham-catalog-main
        :is(li.wc-block-product, ul.products li.product)
        > .wc-block-components-product-image img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        object-position: center center !important;
    }

    html body.graham-catalog-view:not(.graham-product-view)
        .graham-catalog-main
        :is(li.wc-block-product, ul.products li.product)
        > .graham-card-manufacturer {
        display: flex !important;
        right: 10px !important;
        top: 10px !important;
    }
}

/* 0.14.046: one card anatomy at every viewport width. Responsive behavior
 * belongs to the product grid, not to the card's internal image frame. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    justify-self: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image :is(a, figure, figure > a) {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 1 100% !important;
    justify-content: center !important;
    justify-self: center !important;
    margin: 0 auto !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image img {
    align-self: center !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 176px !important;
    height: 176px !important;
    left: auto !important;
    margin: 0 auto !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    width: 176px !important;
}

/* 0.14.047: a multi-UOM card must not show Woo's second Add-to-cart button.
 * This is intentionally limited to cards containing Graham's UOM control so
 * ordinary product cards keep their normal Woo purchase button. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product):has(.graham-card-uom)
    > :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button, .wc-block-components-product-button__button),
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product):has(.graham-card-uom)
    .graham-card-purchase-action
    > :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button, .wc-block-components-product-button__button) {
    display: none !important;
}

/* 0.14.048: once Graham has added its quantity control, hide only Woo's
 * original loop button. This applies to single-UOM and multi-UOM cards alike,
 * but leaves Graham's generated quantity/Add control visible. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button)[data-graham-controls-ready="1"]
    > :is(.wc-block-components-product-button__button, .add_to_cart_button, .ajax_add_to_cart, .button) {
    display: none !important;
}

/* 0.14.048: bound the image to the card's image row so it cannot paint over
 * a two-line product name or item code. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    height: 176px !important;
    max-height: 176px !important;
    min-height: 176px !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 0 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image :is(a, figure, figure > a) {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    height: 176px !important;
    justify-content: center !important;
    max-height: 176px !important;
    overflow: hidden !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image img {
    display: block !important;
    flex: 0 0 176px !important;
    height: 176px !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    width: 176px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > :is(.wp-block-post-title, .wc-block-components-product-title, h2, .graham-card-identity) {
    position: relative !important;
    z-index: 2 !important;
}

/* 0.14.049: compact the plain numeric quantity control without changing UOM
 * selectors, Add buttons, or any product-page purchase control. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart:not(.has-uom) {
    grid-template-columns: 48px 88px !important;
    max-width: 140px !important;
    min-width: 140px !important;
    width: 140px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart:not(.has-uom):not([data-cart-quantity="0"]) {
    grid-template-columns: 48px 60px 24px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart:not(.has-uom) .graham-card-cart__quantity-field,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart:not(.has-uom) .graham-card-cart__quantity {
    height: 30px !important;
    min-height: 30px !important;
    width: 48px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart:not(.has-uom) .graham-card-cart__quantity {
    box-sizing: border-box !important;
    color: #17324a !important;
    display: block !important;
    font-size: 12px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 0 0 3px !important;
    text-align: left !important;
    text-indent: 0 !important;
    -webkit-text-fill-color: #17324a !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart:not(.has-uom) .graham-card-cart__quantity::-webkit-inner-spin-button,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart:not(.has-uom) .graham-card-cart__quantity::-webkit-outer-spin-button {
    margin: 0 !important;
    min-height: 24px !important;
    min-width: 16px !important;
    opacity: 1 !important;
}

/* 0.14.053: some narrow Woo templates add a second product-button wrapper
 * after the card control is initialized. On phones, suppress only that extra
 * Woo control when Graham's cart control already exists in the same card. */
@media (max-width: 820px) {
    html body.graham-catalog-view:not(.graham-product-view)
        .graham-catalog-main
        :is(li.wc-block-product, ul.products li.product):has(.graham-card-cart)
        :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button):not(:has(.graham-card-cart)) {
        display: none !important;
    }

    html body.graham-catalog-view:not(.graham-product-view)
        .graham-catalog-main
        :is(li.wc-block-product, ul.products li.product):has(.graham-card-cart)
        :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button)
        > :is(.wc-block-components-product-button__button, .add_to_cart_button, .ajax_add_to_cart, .button) {
        display: none !important;
    }
}

/* 0.14.056: cards use the product's default UOM silently. The selector stays
 * in the DOM so the existing cart request carries the default UOM, but the
 * card shows only Quantity and Add. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom {
    display: grid !important;
    gap: 4px !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: 48px 88px !important;
    height: 30px !important;
    max-width: 140px !important;
    min-width: 140px !important;
    width: 140px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-uom__source,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-uom__select {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-cart {
    display: contents !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__quantity-field {
    align-items: center !important;
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 30px !important;
    min-height: 30px !important;
    width: 48px !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__uom-static,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__remove,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__message,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-uom__add {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__quantity {
    box-sizing: border-box !important;
    color: #17324a !important;
    display: block !important;
    font-size: 12px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 0 0 3px !important;
    text-align: left !important;
    width: 48px !important;
    -webkit-text-fill-color: #17324a !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__submit {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 30px !important;
    min-height: 30px !important;
    width: 88px !important;
}

/* 0.14.060: keep the purchase controls together in their own full-width row
 * and anchor the action footer to the bottom of every catalogue card. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .graham-card-purchase-row {
    align-items: center !important;
    display: grid !important;
    grid-area: 6 / 1 / 8 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 30px 30px !important;
    height: 64px !important;
    min-height: 64px !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .graham-card-purchase-row
    > :is(.wp-block-woocommerce-product-price, .wc-block-components-product-price, .graham-catalog-price-slot, .price) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: none !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-purchase-action {
    align-items: center !important;
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: 30px !important;
    min-width: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-purchase-action > .graham-card-uom {
    align-items: center !important;
    display: grid !important;
    gap: 4px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: 30px !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-uom__source {
    align-items: center !important;
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 30px !important;
    min-width: 0 !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-uom__static,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__uom-static {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-uom__select,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-uom__select[hidden] {
    appearance: auto !important;
    background: #fff !important;
    border: 1px solid #9fb7c7 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: block !important;
    font-size: 11px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 14px 0 5px !important;
    visibility: visible !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-cart {
    display: contents !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__quantity-field {
    align-items: center !important;
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 30px !important;
    min-height: 30px !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__quantity {
    box-sizing: border-box !important;
    color: #17324a !important;
    display: block !important;
    font-size: 12px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 4px !important;
    text-align: left !important;
    width: 100% !important;
    -webkit-text-fill-color: #17324a !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__submit {
    grid-column: 3 !important;
    grid-row: 1 !important;
    height: 30px !important;
    min-height: 30px !important;
    width: 100% !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom
    :is(.graham-card-cart__remove, .graham-card-cart__message, .graham-card-uom__add) {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .graham-card-footer {
    bottom: 10px !important;
    grid-area: auto !important;
    height: 30px !important;
    left: 10px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    width: auto !important;
}

/* 0.14.061: the source Woo button is never displayed beside the Graham
 * control. This is also a late CSS guard for templates that inject it after
 * the first normalization pass. */
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product):has(.graham-card-cart)
    .graham-card-uom__add,
html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product):has(.graham-card-cart)
    :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button):not(:has(.graham-card-cart)) {
    display: none !important;
}

html body.graham-catalog-view:not(.graham-product-view)
    .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-cart__submit {
    align-items: center !important;
    background: #13883f !important;
    border: 1px solid #13883f !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    color: #fff !important;
    display: flex !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 8px !important;
    text-align: center !important;
}

/* 0.14.062: use the same card anatomy even when a theme/template omits the
 * body view class. This keeps the catalog JS and CSS on the same path. */
html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product) {
    grid-template-rows: 154px 0 40px 18px 28px 64px 0 30px !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image,
html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image a,
html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image figure,
html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image figure > a {
    height: 154px !important;
    min-height: 154px !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .wc-block-components-product-image img {
    flex-basis: 154px !important;
    height: 154px !important;
    max-height: 154px !important;
    max-width: 154px !important;
    width: 154px !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product):has(.graham-card-cart)
    .graham-card-uom__add,
html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product):has(.graham-card-cart)
    :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button):not(:has(.graham-card-cart)) {
    display: none !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom > .graham-card-cart {
    display: contents !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__quantity-field {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 30px !important;
    width: 100% !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-cart__submit {
    background: #13883f !important;
    color: #fff !important;
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    height: 30px !important;
    min-height: 30px !important;
    width: 100% !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .graham-card-purchase-row {
    display: grid !important;
    grid-area: 6 / 1 / 8 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 30px 30px !important;
    height: 64px !important;
    min-height: 64px !important;
    width: 100% !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-purchase-action {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: 30px !important;
    width: 100% !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-purchase-action > .graham-card-uom {
    display: grid !important;
    gap: 4px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: 30px !important;
    max-width: none !important;
    width: 100% !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-uom__select,
html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    .graham-card-uom .graham-card-uom__select[hidden] {
    display: block !important;
    height: 30px !important;
    min-height: 30px !important;
    visibility: visible !important;
    width: 100% !important;
}

html body .graham-catalog-main
    :is(li.wc-block-product, ul.products li.product)
    > .graham-card-footer {
    bottom: 10px !important;
    left: 10px !important;
    position: absolute !important;
    right: 10px !important;
    width: auto !important;
}

