:root {
    --graham-page-blue: #075da8;
    --graham-page-blue-dark: #064677;
    --graham-page-green: #1eaa52;
    --graham-page-green-dark: #12833c;
    --graham-page-ink: #17324a;
    --graham-page-muted: #63778a;
    --graham-page-line: #dce6ee;
    --graham-page-soft: #f4f8fb;
    --graham-page-radius: 18px;
    --graham-page-shadow: 0 16px 44px rgba(16, 52, 80, 0.1);
}

/* 0.13.283: customer ordering shows merchandise subtotal without charge detail. */
.graham-customer-summary-hidden,
.graham-customer-summary-hidden[hidden] {
    display: none !important;
}

body.graham-customer-subtotal-only.woocommerce-cart .cart_totals tr.shipping,
body.graham-customer-subtotal-only.woocommerce-cart .cart_totals tr.fee,
body.graham-customer-subtotal-only.woocommerce-cart .cart_totals tr.tax-rate,
body.graham-customer-subtotal-only.woocommerce-cart .cart_totals tr.cart-discount,
body.graham-customer-subtotal-only.woocommerce-cart .cart_totals tr.order-total,
body.graham-customer-subtotal-only.woocommerce-checkout .woocommerce-checkout-review-order-table tr.fee,
body.graham-customer-subtotal-only.woocommerce-checkout .woocommerce-checkout-review-order-table tr.tax-rate,
body.graham-customer-subtotal-only.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart-discount,
body.graham-customer-subtotal-only.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total,
body.graham-customer-subtotal-only .wc-block-components-totals-shipping,
body.graham-customer-subtotal-only .wc-block-components-totals-taxes,
body.graham-customer-subtotal-only .wc-block-components-totals-discount,
body.graham-customer-subtotal-only .wc-block-components-totals-footer-item,
body.graham-customer-subtotal-only .wp-block-woocommerce-checkout-order-summary-fee-block,
body.graham-customer-subtotal-only .wp-block-woocommerce-checkout-order-summary-shipping-block,
body.graham-customer-subtotal-only .wp-block-woocommerce-checkout-order-summary-taxes-block,
body.graham-customer-subtotal-only .wp-block-woocommerce-checkout-order-summary-discount-block,
body.graham-customer-subtotal-only .wp-block-woocommerce-cart-order-summary-fee-block,
body.graham-customer-subtotal-only .wp-block-woocommerce-cart-order-summary-shipping-block,
body.graham-customer-subtotal-only .wp-block-woocommerce-cart-order-summary-taxes-block,
body.graham-customer-subtotal-only .wp-block-woocommerce-cart-order-summary-discount-block,
body.graham-customer-subtotal-only .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label {
    display: none !important;
}

body.graham-customer-subtotal-only .graham-customer-delivery-choice .woocommerce-Price-amount {
    display: none !important;
}

/* 0.13.269: branded order-received experience. */
body.graham-order-confirmation-page .wp-site-blocks main,
body.graham-order-confirmation-page main.wp-block-group,
body.graham-order-confirmation-page main.site-main,
body.graham-order-confirmation-page .site-main {
    padding-top: 24px !important;
}

body.graham-order-confirmation-page .woocommerce {
    margin: 0 auto;
    max-width: 1040px;
}

body.graham-order-confirmation-page .woocommerce-order > .woocommerce-notice.woocommerce-thankyou-order-received {
    align-items: center;
    background: #f0f9f4;
    border: 1px solid #b8dfc7;
    border-left: 5px solid #169447;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 52, 80, 0.07);
    color: #17324a;
    display: grid;
    gap: 16px;
    grid-template-columns: 52px minmax(0, 1fr);
    margin: 0 0 18px !important;
    padding: 18px 20px !important;
}

.graham-confirmation-card__icon {
    align-items: center;
    background: #169447;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.graham-confirmation-card__icon .dashicons {
    font-size: 27px;
    height: 27px;
    line-height: 27px;
    width: 27px;
}

.graham-confirmation-card__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.graham-confirmation-card__eyebrow {
    color: #137f3c;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.graham-confirmation-card__title {
    color: #0d3857;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
}

.graham-confirmation-card__text {
    color: #50687a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.graham-confirmation-card__number {
    color: #164b70;
    font-size: 0.8rem;
    font-weight: 800;
    margin-top: 2px;
}

body.graham-order-confirmation-page .woocommerce-order > ul.woocommerce-order-overview,
body.graham-order-confirmation-page .woocommerce-order > .woocommerce-order-overview {
    display: none !important;
}

body.graham-order-confirmation-page .graham-order-overview {
    margin-bottom: 18px;
}

body.graham-order-confirmation-page .woocommerce-order-details,
body.graham-order-confirmation-page .woocommerce-customer-details {
    background: #fff;
}

body.graham-order-confirmation-page .woocommerce-order-details {
    border: 1px solid #d5e1e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 52, 80, 0.055);
    padding: 18px;
}

body.graham-order-confirmation-page .woocommerce-order-details__title {
    color: #0d3857;
    margin-bottom: 12px;
}

body.graham-order-confirmation-page .woocommerce-customer-details {
    border: 1px solid #d5e1e8;
    border-radius: 8px;
    margin-top: 16px;
    padding: 18px;
}

body.graham-order-confirmation-page .woocommerce-customer-details address {
    background: #f7fafc;
    border: 1px solid #dce6ec;
    border-radius: 6px;
    line-height: 1.55;
    padding: 13px 14px;
}

@media (max-width: 700px) {
    body.graham-order-confirmation-page .wp-site-blocks main,
    body.graham-order-confirmation-page main.wp-block-group,
    body.graham-order-confirmation-page main.site-main,
    body.graham-order-confirmation-page .site-main {
        padding: 12px 8px 36px !important;
    }

    body.graham-order-confirmation-page .woocommerce-order > .woocommerce-notice.woocommerce-thankyou-order-received {
        gap: 11px;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px !important;
    }

    .graham-confirmation-card__icon {
        height: 40px;
        width: 40px;
    }

    .graham-confirmation-card__icon .dashicons {
        font-size: 23px;
        height: 23px;
        line-height: 23px;
        width: 23px;
    }

    body.graham-order-confirmation-page .woocommerce-order-details,
    body.graham-order-confirmation-page .woocommerce-customer-details {
        padding: 12px;
    }
}

/* 0.13.344: customer-friendly list ordering and two-column desktop cards. */
.graham-saved-lists-page .graham-saved-list-multi-select {
    border: 1px solid #cbdbe4;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.graham-saved-lists-page .graham-saved-list-multi-select > summary {
    align-items: center;
    background: #f5f9fb;
    color: #075b9d;
    cursor: pointer;
    display: flex;
    font-size: 0.8rem;
    font-weight: 800;
    gap: 6px;
    list-style: none;
    min-height: 38px;
    padding: 7px 11px;
}

.graham-saved-lists-page .graham-saved-list-multi-select > summary::-webkit-details-marker {
    display: none;
}

.graham-saved-lists-page .graham-saved-list-multi-select > summary::after {
    content: "+";
    font-size: 1rem;
    margin-left: auto;
}

.graham-saved-lists-page .graham-saved-list-multi-select[open] > summary::after {
    content: "-";
}

.graham-saved-lists-page .graham-saved-list-multi-select .graham-saved-list-order-group {
    border: 0;
    border-radius: 0;
    border-top: 1px solid #d7e3e9;
    margin: 0;
}

.graham-saved-lists-page:not(.is-selecting-items) .graham-saved-product-check {
    display: none !important;
}

.graham-saved-lists-page .graham-saved-products-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.graham-saved-lists-page .graham-saved-product-card,
.graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
    align-items: start;
    grid-template-columns: 76px minmax(0, 1fr);
    min-width: 0;
    padding: 12px;
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-card {
    grid-template-columns: 28px 76px minmax(0, 1fr);
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image {
    grid-template-columns: 28px minmax(0, 1fr);
}

.graham-saved-lists-page .graham-saved-product-image,
.graham-saved-lists-page .graham-saved-product-image img {
    height: 72px;
    max-height: 72px !important;
}

.graham-saved-lists-page .graham-saved-product-copy,
.graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 88px;
    min-width: 0;
}

.graham-saved-lists-page .graham-saved-product-summary,
.graham-saved-lists-page .graham-saved-product-par-order,
.graham-saved-lists-page .graham-saved-product-actions {
    grid-column: 1 / -1;
}

.graham-saved-lists-page .graham-saved-product-price small {
    color: #526d7e;
    display: block;
    font-size: 0.67rem;
    font-weight: 700;
    margin-top: 2px;
}

.graham-saved-lists-page .graham-saved-product-quantity,
.graham-saved-lists-page .graham-saved-product-uom {
    display: grid;
    font-size: 0.7rem;
    font-weight: 750;
    gap: 3px;
    grid-column: auto;
    margin: 0;
}

.graham-saved-lists-page .graham-saved-product-quantity input,
.graham-saved-lists-page .graham-saved-product-uom select {
    box-sizing: border-box;
    min-height: 36px;
    width: 100%;
}

.graham-saved-lists-page .graham-saved-product-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.graham-saved-lists-page .graham-saved-product-actions .graham-list-add-to-cart {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    justify-content: center;
    min-height: 38px;
    width: auto;
}

.graham-saved-lists-page .graham-list-view-link,
.graham-saved-lists-page .graham-list-remove-link {
    background: none;
    border: 0;
    color: #466274;
    cursor: pointer;
    font-size: 0.69rem;
    font-weight: 700;
    padding: 2px 0;
    text-decoration: underline;
}

.graham-saved-lists-page .graham-list-remove-link {
    color: #8b2f35;
}

@media (max-width: 980px) {
    .graham-saved-lists-page .graham-saved-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .graham-saved-lists-page .graham-saved-product-card,
    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 9px;
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card {
        grid-template-columns: 26px 58px minmax(0, 1fr);
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .graham-saved-lists-page .graham-saved-product-image,
    .graham-saved-lists-page .graham-saved-product-image img {
        height: 54px;
        max-height: 54px !important;
    }
}

/* 0.13.264: readable customer order details across desktop, tablet and phone. */
body.graham-account-order-view .woocommerce-MyAccount-content > p:first-of-type,
body.graham-account-order-view .woocommerce-MyAccount-content > .graham-order-po,
body.graham-account-order-view .woocommerce-MyAccount-content > .graham-order-department {
    display: none;
}

.graham-order-overview {
    background: #f3f9fc;
    border: 1px solid #c9dce7;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    margin: 0 0 24px;
    overflow: hidden;
}

.graham-order-overview__heading {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 20px 22px 18px;
}

.graham-order-overview__eyebrow {
    color: #13833c;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.graham-order-overview__title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 12px;
}

.graham-order-overview__title-row h2 {
    color: #0d3857;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.15;
    margin: 0;
}

.graham-order-status {
    align-items: center;
    background: #e7f2fb;
    border: 1px solid #b9d6e8;
    border-radius: 999px;
    color: #075a91;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 7px;
    line-height: 1.25;
    padding: 5px 9px;
}

.graham-order-status > span {
    background: currentColor;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.graham-order-status--complete {
    background: #eaf8ef;
    border-color: #bde5ca;
    color: #087934;
}

.graham-order-status--closed {
    background: #f2f4f6;
    border-color: #d4dce2;
    color: #536575;
}

.graham-order-overview__intro {
    color: #536b7d;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 7px 0 0;
}

.graham-order-overview__back {
    align-items: center;
    background: #168d42;
    border: 1px solid #168d42;
    border-radius: 6px;
    color: #fff !important;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    line-height: 1.2;
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none !important;
}

.graham-order-overview__back:hover,
.graham-order-overview__back:focus-visible {
    background: #0f7333;
    border-color: #0f7333;
}

.graham-order-overview__facts {
    border-top: 1px solid #d4e3eb;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin: 0;
}

.graham-order-overview__facts > div {
    border-right: 1px solid #d4e3eb;
    min-width: 0;
    padding: 12px 16px 14px;
}

.graham-order-overview__facts > div:last-child {
    border-right: 0;
}

.graham-order-overview__facts dt {
    color: #607789;
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.graham-order-overview__facts dd {
    color: #102f47;
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

body.graham-account-order-view .woocommerce-order-details {
    margin: 0;
}

body.graham-account-order-view .woocommerce-order-details__title,
body.graham-account-order-view .woocommerce-customer-details > h2 {
    color: #0d3857;
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 12px;
}

body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details {
    border: 1px solid #cbd9e2 !important;
    border-collapse: separate !important;
    border-radius: 8px;
    border-spacing: 0;
    margin: 0;
    overflow: hidden;
    table-layout: fixed;
}

body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details thead th {
    background: #eaf3f8;
    border: 0 !important;
    color: #24465f;
    font-size: 0.75rem;
    font-weight: 850;
    padding: 10px 14px !important;
    text-transform: uppercase;
}

body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details th.product-total,
body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details td.product-total {
    text-align: right;
    width: 170px;
}

body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tbody td {
    background: #fff;
    border: 0 !important;
    border-top: 1px solid #e1e9ee !important;
    padding: 14px !important;
    vertical-align: top;
}

body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tbody tr:first-child td {
    border-top: 0 !important;
}

body.graham-account-order-view .woocommerce-order-details td.product-name {
    column-gap: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    row-gap: 5px;
}

.graham-order-product {
    align-items: center;
    display: grid;
    gap: 13px;
    grid-column: 1;
    grid-template-columns: 64px minmax(0, 1fr);
    min-width: 0;
}

.graham-order-product__image {
    align-items: center;
    background: #f6f9fa;
    border: 1px solid #dce6ec;
    border-radius: 6px;
    display: flex;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    width: 64px;
}

.graham-order-product__thumbnail {
    display: block;
    height: 100% !important;
    margin: 0 !important;
    max-height: 64px;
    max-width: 64px;
    object-fit: contain;
    padding: 4px;
    width: 100% !important;
}

.graham-order-product__name {
    color: #102f47;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: break-word;
}

.graham-order-product__name a {
    color: #075f9a;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

body.graham-account-order-view .woocommerce-order-details .product-quantity {
    align-self: start;
    background: #e9f3f9;
    border: 1px solid #c5dce9;
    border-radius: 999px;
    color: #164b70;
    font-size: 0.75rem;
    font-weight: 850;
    grid-column: 2;
    grid-row: 1;
    line-height: 1;
    padding: 6px 8px;
    white-space: nowrap;
}

.graham-order-item-code,
body.graham-account-order-view .woocommerce-order-details .wc-item-meta {
    grid-column: 1 / -1;
    margin: 0 0 0 77px !important;
}

.graham-order-item-code {
    align-items: baseline;
    color: #536b7d;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    gap: 4px 7px;
    line-height: 1.35;
}

.graham-order-item-code span {
    font-weight: 700;
}

.graham-order-item-code strong {
    color: #1f455f;
    font-weight: 850;
}

body.graham-account-order-view .woocommerce-order-details .wc-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    list-style: none;
    padding: 0;
}

body.graham-account-order-view .woocommerce-order-details .wc-item-meta li {
    align-items: baseline;
    background: #f2f6f8;
    border-radius: 4px;
    color: #536b7d;
    display: inline-flex;
    font-size: 0.74rem;
    gap: 5px;
    line-height: 1.3;
    padding: 3px 6px;
}

body.graham-account-order-view .woocommerce-order-details .wc-item-meta li strong,
body.graham-account-order-view .woocommerce-order-details .wc-item-meta li p {
    margin: 0;
}

body.graham-account-order-view .woocommerce-order-details td.product-total {
    color: #0d3857;
    font-size: 0.95rem;
    font-weight: 850;
    vertical-align: middle !important;
    white-space: nowrap;
}

body.graham-account-order-view .woocommerce-order-details tfoot th,
body.graham-account-order-view .woocommerce-order-details tfoot td {
    background: #f7fafc;
    border: 0 !important;
    border-top: 1px solid #dbe5eb !important;
    line-height: 1.35;
    padding: 9px 14px !important;
}

body.graham-account-order-view .woocommerce-order-details tfoot th {
    color: #37566d;
    font-size: 0.8rem;
    font-weight: 750;
    text-align: right;
}

body.graham-account-order-view .woocommerce-order-details tfoot td {
    color: #102f47;
    font-size: 0.86rem;
    font-weight: 850;
    text-align: right;
}

/* Accessible fuel-surcharge explanation used in cart, checkout and account totals. */
.graham-fuel-help {
    display: inline-flex;
    margin-left: 5px;
    position: relative;
    vertical-align: middle;
}

.graham-fuel-help__button {
    align-items: center;
    background: #fff;
    border: 1px solid #0b66ad;
    border-radius: 50%;
    color: #0b66ad;
    cursor: help;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 850;
    height: 19px;
    justify-content: center;
    line-height: 1;
    min-height: 19px;
    padding: 0;
    width: 19px;
}

.graham-fuel-help__button:hover,
.graham-fuel-help__button:focus-visible,
.graham-fuel-help__button[aria-expanded="true"] {
    background: #0b66ad;
    color: #fff;
    outline: 2px solid rgba(11, 102, 173, 0.2);
    outline-offset: 2px;
}

.graham-fuel-help__text {
    background: #15344c;
    border-radius: 5px;
    bottom: calc(100% + 8px);
    box-shadow: 0 7px 18px rgba(15, 44, 65, 0.2);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 650;
    left: 0;
    line-height: 1.4;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    visibility: hidden;
    white-space: normal;
    width: min(270px, calc(100vw - 32px));
    z-index: 60;
}

.graham-fuel-help:hover .graham-fuel-help__text,
.graham-fuel-help:focus-within .graham-fuel-help__text,
.graham-fuel-help__button[aria-expanded="true"] + .graham-fuel-help__text {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.graham-redundant-shipping[hidden] {
    display: none !important;
}

body.graham-account-order-view .woocommerce-customer-details {
    border-top: 1px solid #dce6ec;
    margin-top: 24px;
    padding-top: 20px;
}

@media (max-width: 900px) {
    .graham-order-overview__heading {
        gap: 16px;
        padding: 18px;
    }
}

@media (max-width: 700px) {
    body.graham-account-order-view .woocommerce-MyAccount-content {
        padding: 8px !important;
    }

    .graham-order-overview {
        margin-bottom: 18px;
    }

    .graham-order-overview__heading {
        display: grid;
        gap: 14px;
        padding: 15px;
    }

    .graham-order-overview__title-row {
        align-items: flex-start;
        display: grid;
        gap: 8px;
    }

    .graham-order-overview__title-row h2 {
        font-size: 1.45rem;
    }

    .graham-order-status {
        justify-self: start;
    }

    .graham-order-overview__back {
        justify-self: start;
    }

    .graham-order-overview__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-order-overview__facts > div,
    .graham-order-overview__facts > div:nth-child(3n) {
        border-right: 1px solid #d4e3eb;
        padding: 10px 12px 12px;
    }

    .graham-order-overview__facts > div:nth-child(even) {
        border-right: 0;
    }

    .graham-order-overview__facts > div:nth-child(n + 3) {
        border-top: 1px solid #d4e3eb;
    }

    body.graham-account-order-view .woocommerce-order-details__title,
    body.graham-account-order-view .woocommerce-customer-details > h2 {
        font-size: 1.1rem;
        margin-bottom: 9px;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details {
        border: 0 !important;
        border-radius: 0;
        overflow: visible;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tbody tr.order_item {
        border-radius: 8px;
        margin: 0 0 9px;
        padding: 11px;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tbody td {
        background: transparent;
        border: 0 !important;
        padding: 0 !important;
    }

    body.graham-account-order-view .woocommerce-order-details td.product-name {
        display: block;
    }

    .graham-order-product {
        gap: 10px;
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .graham-order-product__image {
        height: 62px;
        width: 62px;
    }

    .graham-order-product__thumbnail {
        max-height: 62px;
        max-width: 62px;
    }

    body.graham-account-order-view .woocommerce-order-details .product-quantity {
        display: inline-flex;
        margin: 7px 0 0 72px;
    }

    .graham-order-item-code,
    body.graham-account-order-view .woocommerce-order-details .wc-item-meta {
        margin-left: 72px !important;
        margin-top: 5px !important;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tbody td.product-total {
        align-items: center;
        border-top: 1px solid #e1e9ee !important;
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        padding-top: 9px !important;
    }

    body.graham-account-order-view .woocommerce-order-details td.product-total::before {
        color: #607789;
        content: "Line total";
        font-size: 0.72rem;
        font-weight: 750;
        text-transform: uppercase;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tfoot {
        display: grid;
        gap: 6px;
        margin-top: 12px;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tfoot tr {
        align-items: center;
        background: #f7fafc;
        border: 1px solid #d9e4ea;
        border-radius: 6px;
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        margin: 0;
        padding: 9px 10px;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tfoot th,
    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tfoot td {
        background: transparent;
        border: 0 !important;
        display: block;
        margin: 0;
        padding: 0 !important;
        text-align: left;
        width: auto;
    }

    body.graham-account-order-view .woocommerce-order-details table.woocommerce-table--order-details tfoot td {
        text-align: right;
    }
}

@media (max-width: 330px) {
    .graham-order-overview__facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-order-overview__facts > div,
    .graham-order-overview__facts > div:nth-child(3n),
    .graham-order-overview__facts > div:nth-child(even) {
        border-right: 0;
    }

    .graham-order-overview__facts > div:nth-child(n + 2) {
        border-top: 1px solid #d4e3eb;
    }

    .graham-order-product {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .graham-order-product__image {
        height: 54px;
        width: 54px;
    }

    .graham-order-product__thumbnail {
        max-height: 54px;
        max-width: 54px;
    }

    body.graham-account-order-view .woocommerce-order-details .product-quantity,
    .graham-order-item-code,
    body.graham-account-order-view .woocommerce-order-details .wc-item-meta {
        margin-left: 64px !important;
    }
}

/* Customer access keeps sign-in, existing-customer access and new accounts distinct. */
.graham-customer-access-intro {
    background: var(--graham-page-blue-dark);
    color: #fff;
    padding: 42px 0;
}

.graham-customer-access-intro .graham-page-kicker {
    color: #8ee3ad;
    margin: 0 0 8px;
}

.graham-customer-access-intro h1 {
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.12;
    margin: 0 0 10px;
}

.graham-customer-access-intro p:last-child {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}

.graham-customer-access-signed-in {
    background: #eaf7ef;
    border-bottom: 1px solid #c6e7d2;
    color: var(--graham-page-ink);
}

.graham-customer-access-signed-in .graham-page-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 48px;
    padding-bottom: 8px;
    padding-top: 8px;
}

.graham-customer-access-signed-in a {
    color: var(--graham-page-blue-dark);
    font-weight: 750;
    margin-left: auto;
}

.graham-customer-access-status-dot {
    background: var(--graham-page-green);
    border-radius: 50%;
    flex: 0 0 9px;
    height: 9px;
    width: 9px;
}

.graham-customer-access-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-customer-access-option {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
}

.graham-customer-access-option .graham-page-icon {
    fill: var(--graham-page-blue);
    height: 30px;
    margin-bottom: 18px;
    width: 30px;
}

.graham-customer-access-option h2 {
    color: var(--graham-page-ink);
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0 0 9px;
    overflow-wrap: anywhere;
}

.graham-customer-access-option p {
    color: var(--graham-page-muted);
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 20px;
}

.graham-customer-access-option .graham-button {
    align-items: center;
    align-self: flex-start;
    background: var(--graham-page-blue);
    border: 1px solid var(--graham-page-blue);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 750;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    text-align: center;
    text-decoration: none;
}

.graham-customer-access-option .graham-button:hover,
.graham-customer-access-option .graham-button:focus-visible {
    background: var(--graham-page-blue-dark);
    border-color: var(--graham-page-blue-dark);
}

@media (max-width: 850px) {
    .graham-customer-access-grid {
        grid-template-columns: 1fr;
    }

    .graham-customer-access-option {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .graham-customer-access-intro {
        padding: 30px 0;
    }

    .graham-customer-access-intro h1 {
        font-size: 1.85rem;
    }

    .graham-customer-access-signed-in a {
        flex-basis: 100%;
        margin-left: 18px;
    }

    .graham-customer-access-option .graham-button {
        align-self: stretch;
        width: 100%;
    }
}

/* Private Spire invoice history and verified quote views. */
.graham-documents {
    color: var(--graham-page-ink);
    max-width: 100%;
}

.graham-document-refresh {
    align-items: center;
    background: #eef7fc;
    border: 1px solid #b9d7e8;
    border-radius: 7px;
    color: var(--graham-page-blue-dark);
    display: flex;
    font-size: 0.88rem;
    gap: 9px;
    margin: 0 0 12px;
    padding: 9px 11px;
}

.graham-document-refresh-spinner {
    animation: graham-document-refresh-spin 0.9s linear infinite;
    border: 2px solid #b9d7e8;
    border-radius: 50%;
    border-top-color: var(--graham-page-blue);
    flex: 0 0 16px;
    height: 16px;
    width: 16px;
}

.graham-document-refresh[data-graham-document-refresh="error"] .graham-document-refresh-spinner {
    animation: none;
    border-color: #ba5b49;
}

@keyframes graham-document-refresh-spin {
    to { transform: rotate(360deg); }
}

.graham-document-detail {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(16, 52, 80, 0.08);
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(16px, 2.8vw, 30px);
}

.graham-document-detail > p:first-child {
    margin: 0 0 18px;
}

.graham-document-detail .graham-documents-heading {
    border: 0;
    border-bottom: 2px solid var(--graham-page-blue-dark);
    border-radius: 0;
    padding: 0 0 20px;
}

.graham-document-letterhead {
    align-items: center;
    display: flex;
    gap: clamp(18px, 3vw, 34px);
    min-width: 0;
}

.graham-document-logo {
    align-items: center;
    display: flex;
    flex: 0 1 220px;
    min-height: 64px;
}

.graham-document-logo-image {
    display: block;
    height: auto;
    max-height: 78px;
    max-width: 220px;
    object-fit: contain;
    width: auto;
}

.graham-document-logo-text {
    color: var(--graham-page-blue-dark);
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.1;
}

.graham-document-copy-label {
    color: var(--graham-page-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 5px !important;
    text-transform: uppercase;
}

.graham-documents-heading {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-left: 5px solid var(--graham-page-green);
    border-radius: 12px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 20px;
}

.graham-documents-heading h2,
.graham-documents-heading p {
    margin: 0;
}

.graham-documents-heading h2 {
    color: var(--graham-page-blue-dark);
    margin: 3px 0 5px;
}

.graham-documents-kicker {
    color: var(--graham-page-green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.graham-document-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.graham-open-orders {
    border-bottom: 1px solid var(--graham-page-line);
    margin: 0 0 22px;
    padding: 0 0 22px;
}

.graham-open-orders-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 12px;
}

.graham-open-orders-heading h3,
.graham-open-orders-heading p {
    margin: 0;
}

.graham-open-orders-heading h3 {
    color: var(--graham-page-blue-dark);
    margin: 3px 0 4px;
}

.graham-open-order-count {
    align-items: center;
    background: var(--graham-page-blue-dark);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.graham-document-table.graham-open-orders-table td:nth-last-child(-n+2),
.graham-document-table.graham-open-orders-table th:nth-last-child(-n+2) {
    text-align: left;
    white-space: normal;
}

.graham-open-order-status {
    color: var(--graham-page-green-dark);
    font-weight: 800;
}

.graham-open-order-status::before {
    background: var(--graham-page-green);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 8px;
    margin-right: 7px;
    width: 8px;
}

.graham-pending-order-status {
    color: var(--graham-page-blue-dark);
}

.graham-pending-order-status::before {
    background: var(--graham-page-blue);
}

.graham-document-table .graham-order-status-cell {
    text-align: left;
    white-space: normal;
}

.graham-open-order-online-number {
    color: var(--graham-page-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    margin-top: 3px;
}

.graham-proof-of-delivery-link.button {
    align-items: center;
    display: inline-flex;
    font-size: 0.78rem;
    justify-content: center;
    line-height: 1.2;
    min-height: 34px;
    padding: 6px 10px;
    white-space: nowrap;
}

.graham-document-tab {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 999px;
    color: var(--graham-page-blue-dark);
    font-weight: 800;
    padding: 9px 16px;
    text-decoration: none;
}

.graham-document-tab.is-active,
.graham-document-tab:hover,
.graham-document-tab:focus-visible {
    background: var(--graham-page-blue);
    border-color: var(--graham-page-blue);
    color: #fff;
}

.graham-document-table-wrap {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 12px;
    overflow: hidden;
}

.graham-document-table {
    border: 0;
    border-collapse: collapse;
    margin: 0;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.graham-document-table th,
.graham-document-table td {
    border: 0;
    border-bottom: 1px solid var(--graham-page-line);
    padding: 13px 12px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.graham-document-table th {
    background: var(--graham-page-blue-dark);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: normal;
}

.graham-document-table tbody tr:last-child td {
    border-bottom: 0;
}

.graham-document-table td:nth-last-child(-n+2),
.graham-document-lines td:nth-last-child(-n+2),
.graham-document-lines th:nth-last-child(-n+2) {
    text-align: right;
    white-space: nowrap;
}

.graham-document-lines {
    font-size: 0.8rem;
    min-width: 0;
}

.graham-document-lines th,
.graham-document-lines td {
    padding: 10px 6px;
}

.graham-document-lines .graham-col-item {
    width: 14%;
}

.graham-document-lines .graham-col-image {
    width: 10%;
}

.graham-document-lines .graham-col-description {
    width: 26%;
}

.graham-document-lines .graham-col-small {
    width: 7%;
}

.graham-document-lines .graham-col-price {
    width: 12.5%;
}

.graham-document-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.graham-document-lines a {
    color: var(--graham-page-blue-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.graham-quote-product-image img {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 7px;
    display: block;
    height: auto;
    max-width: 72px;
    object-fit: contain;
    width: 100%;
}

.graham-document-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 20px 0;
}

.graham-document-pagination .page-numbers {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 7px;
    min-width: 40px;
    padding: 8px 10px;
    text-align: center;
}

.graham-document-pagination .current {
    background: var(--graham-page-blue);
    color: #fff;
}

.graham-documents-sync-note {
    color: var(--graham-page-muted);
    font-size: 0.85rem;
    margin: 16px 0 0;
}

.graham-document-price-note {
    background: #fff8e7;
    border-left: 4px solid #e7a615;
    border-radius: 8px;
    color: #60450a;
    margin: 18px 0 0;
    padding: 12px 14px;
}

.graham-document-status {
    background: #edf6fc;
    border-radius: 999px;
    color: var(--graham-page-blue-dark);
    font-weight: 800;
    padding: 9px 13px;
}

.graham-document-meta {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
    overflow: hidden;
}

.graham-document-addresses {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 18px;
}

.graham-document-addresses > div {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 10px;
    min-width: 0;
    padding: 14px;
}

.graham-document-addresses h3 {
    color: var(--graham-page-blue-dark);
    font-size: 0.82rem;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.graham-document-addresses span {
    display: block;
    overflow-wrap: anywhere;
}

.graham-document-meta > div {
    background: #f4f8fb;
    border: 1px solid var(--graham-page-line);
    min-width: 0;
    padding: 12px 14px;
}

.graham-document-meta dt {
    color: var(--graham-page-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.graham-document-meta dd {
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.graham-document-totals {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 10px;
    margin: 18px 0 0 auto;
    max-width: 420px;
    overflow: hidden;
}

.graham-document-totals > div {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 10px 14px;
}

.graham-document-grand-total {
    background: var(--graham-page-blue-dark);
    color: #fff;
    font-size: 1.08rem;
}

.graham-purchase-report {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 12px;
    margin: 0 0 20px;
    padding: 18px;
}

.graham-purchase-report-heading h3,
.graham-purchase-report-heading p {
    margin: 0;
}

.graham-purchase-report-heading h3 {
    color: var(--graham-page-blue-dark);
    margin: 3px 0 5px;
}

.graham-purchase-report-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(140px, 1fr)) auto auto;
    margin: 16px 0 0;
}

.graham-purchase-report-form label,
.graham-purchase-report-form label span {
    display: block;
}

.graham-purchase-report-form label span {
    color: var(--graham-page-muted);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.graham-purchase-report-form input[type="date"] {
    box-sizing: border-box;
    min-height: 42px;
    width: 100%;
}

.graham-purchase-report-totals {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 16px 0;
}

.graham-purchase-report-totals > div {
    background: var(--graham-page-soft);
    border: 1px solid var(--graham-page-line);
    border-radius: 9px;
    display: grid;
    gap: 3px;
    padding: 12px;
}

.graham-purchase-report-table {
    font-size: 0.82rem;
}

.graham-purchase-report-table th,
.graham-purchase-report-table td {
    padding: 9px 7px;
}

.graham-purchase-report-table th:nth-child(1) { width: 14%; }
.graham-purchase-report-table th:nth-child(2) { width: 30%; }
.graham-purchase-report-table th:nth-child(3) { width: 8%; }
.graham-purchase-report-table th:nth-child(4) { width: 12%; }
.graham-purchase-report-table th:nth-child(5) { width: 10%; }
.graham-purchase-report-table th:nth-child(6) { width: 9%; }
.graham-purchase-report-table th:nth-child(7) { width: 17%; }

.graham-report-sort {
    align-items: center;
    color: #fff;
    display: inline-flex;
    gap: 5px;
    text-decoration: none;
}

.graham-report-sort:hover,
.graham-report-sort:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.graham-report-sort-direction {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    padding: 2px 4px;
}

/* Switch the wide document tables to readable cards before a narrow desktop,
   tablet, or phone view can squeeze the labels and action buttons together. */
@media (max-width: 1024px) {
    .graham-document-table td.graham-quote-product-image.has-no-product-image {
        display: none;
    }

    .graham-documents-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .graham-documents-heading .button {
        justify-content: center;
        width: 100%;
    }

    .graham-document-letterhead {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .graham-document-logo {
        flex-basis: auto;
        min-height: 0;
    }

    .graham-document-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-document-addresses {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-document-table-wrap {
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .graham-document-table,
    .graham-document-table tbody,
    .graham-document-table tr,
    .graham-document-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .graham-document-table colgroup {
        display: none;
    }

    .graham-document-table thead {
        display: none;
    }

    .graham-document-table tr {
        background: #fff;
        border: 1px solid var(--graham-page-line);
        border-radius: 10px;
        margin-bottom: 12px;
        overflow: hidden;
        padding: 8px 12px;
    }

    .graham-document-table td,
    .graham-document-table td:nth-last-child(-n+2) {
        align-items: start;
        border-bottom: 1px solid var(--graham-page-line);
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.2fr);
        padding: 9px 0;
        text-align: left;
        white-space: normal;
    }

    .graham-document-table td::before {
        color: var(--graham-page-muted);
        content: attr(data-title);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .graham-document-list-table td:last-child {
        border-bottom: 0;
        display: block;
    }

    .graham-document-list-table td:last-child::before {
        display: none;
    }

    .graham-document-list-table td:last-child .button {
        justify-content: center;
        width: 100%;
    }

    .graham-document-list-table td:nth-last-child(2),
    .graham-open-orders-table td:last-child {
        display: block;
    }

    .graham-document-list-table td:nth-last-child(2)::before,
    .graham-open-orders-table td:last-child::before {
        display: block;
        margin-bottom: 6px;
    }

    .graham-document-list-table td:nth-last-child(2) .graham-pod-request-form,
    .graham-document-list-table td:nth-last-child(2) .graham-proof-of-delivery-link,
    .graham-open-orders-table td:last-child .graham-pod-request-form,
    .graham-open-orders-table td:last-child .graham-proof-of-delivery-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .graham-document-totals {
        max-width: none;
    }

    .graham-document-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .graham-purchase-report-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-purchase-report-form .button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .graham-document-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-document-tabs {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-document-tab {
        text-align: center;
    }

    .graham-purchase-report-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media print {
    .graham-document-detail .graham-document-price-note,
    .graham-document-detail > p:first-child,
    .graham-document-actions,
    .graham-purchase-report,
    .graham-account-page .woocommerce-MyAccount-navigation,
    .graham-site-header,
    .graham-site-footer {
        display: none !important;
    }

    .graham-account-page .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
    }

    .graham-document-table-wrap {
        overflow: visible;
    }

    .graham-document-detail {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}

.graham-linked-business-account {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-left: 5px solid var(--graham-page-green);
    border-radius: 10px;
    box-sizing: border-box;
    margin: 0 0 20px;
    max-width: 100%;
    padding: clamp(16px, 2.5vw, 24px);
}

.graham-linked-business-account h2 {
    color: var(--graham-page-blue-dark);
    margin: 0 0 12px;
}

.graham-linked-business-account p {
    margin: 0 0 10px;
    overflow-wrap: break-word;
}

.graham-linked-business-account p:last-child {
    margin-bottom: 0;
}

.graham-linked-account-catalog-status {
    background: #effaf2;
    border-radius: 8px;
    color: #087a36;
    font-weight: 700;
    padding: 10px 12px;
}

.graham-account-representative {
    align-items: center;
    background: #f2f7fb;
    border-left: 4px solid var(--graham-page-blue);
    display: grid;
    gap: 3px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 18px 0;
    padding: 14px 16px;
}

.graham-account-representative p,
.graham-account-representative strong {
    grid-column: 1;
    margin: 0;
}

.graham-account-representative-label {
    color: #526a7a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.graham-account-representative strong {
    color: var(--graham-page-blue-dark);
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.graham-account-representative .graham-account-representative-contact {
    align-items: center;
    align-self: center;
    display: inline-flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-content: center;
    margin: 0;
    min-height: 40px;
    white-space: normal;
}

@media (max-width: 560px) {
    .graham-account-representative {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-account-representative .graham-account-representative-contact {
        grid-column: 1;
        grid-row: auto;
        margin-top: 9px;
        width: 100%;
    }
}

.graham-page-design-active,
.graham-page-design-active .wp-site-blocks {
    background: #f7fafc;
}

.graham-page-design-active .wp-site-blocks > footer.wp-block-template-part,
.graham-page-design-active footer#colophon,
.graham-page-design-active footer.site-footer:not(.graham-site-footer) {
    display: none !important;
}

.graham-home-page .wp-site-blocks main,
.graham-about-page .wp-site-blocks main,
.graham-contact-page .wp-site-blocks main,
.graham-help-centre-page-active .wp-site-blocks main,
.graham-customer-access-page-active .wp-site-blocks main,
.graham-account-application-page-active .wp-site-blocks main {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.graham-home-page .entry-content,
.graham-home-page .wp-block-post-content,
.graham-about-page .entry-content,
.graham-about-page .wp-block-post-content,
.graham-contact-page .entry-content,
.graham-contact-page .wp-block-post-content,
.graham-help-centre-page-active .entry-content,
.graham-help-centre-page-active .wp-block-post-content {
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.graham-customer-access-page-active .entry-content,
.graham-customer-access-page-active .wp-block-post-content {
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.graham-home-page .wp-block-post-title,
.graham-about-page .wp-block-post-title,
.graham-contact-page .wp-block-post-title,
.graham-help-centre-page-active .wp-block-post-title,
.graham-customer-access-page-active .wp-block-post-title,
.graham-account-application-page-active .wp-block-post-title,
.graham-cart-page .wp-block-post-title,
.graham-checkout-page .wp-block-post-title,
.graham-account-page .wp-block-post-title,
.graham-policy-page .wp-block-post-title,
.graham-home-page .entry-title,
.graham-about-page .entry-title,
.graham-contact-page .entry-title,
.graham-help-centre-page-active .entry-title,
.graham-customer-access-page-active .entry-title,
.graham-account-application-page-active .entry-title,
.graham-cart-page .entry-title,
.graham-checkout-page .entry-title,
.graham-account-page .entry-title,
.graham-policy-page .entry-title {
    display: none !important;
}

.graham-page,
.graham-page *,
.graham-functional-banner,
.graham-functional-banner *,
.graham-site-footer,
.graham-site-footer * {
    box-sizing: border-box;
}

.graham-page {
    color: var(--graham-page-ink);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.graham-page-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
    width: calc(100% - 64px);
}

.graham-page-section {
    padding: 72px 0;
}

.graham-page-kicker {
    color: var(--graham-page-green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.2;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.graham-page h1,
.graham-page h2,
.graham-page h3,
.graham-functional-banner h1,
.graham-site-footer h2 {
    color: var(--graham-page-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.graham-page h1 {
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.graham-page h2 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.graham-page.graham-customer-access .graham-customer-access-intro h1 {
    color: #fff;
    font-size: 2.4rem;
    letter-spacing: 0;
    line-height: 1.12;
}

@media (max-width: 600px) {
    .graham-page.graham-customer-access .graham-customer-access-intro h1 {
        font-size: 1.85rem;
    }
}

.graham-page p,
.graham-page span {
    line-height: 1.65;
}

.graham-page-heading {
    margin-bottom: 30px;
    max-width: 740px;
}

.graham-page-heading h2 {
    margin: 0 0 10px;
}

.graham-page-heading > span {
    color: var(--graham-page-muted);
    display: block;
}

.graham-page-icon {
    fill: currentColor;
    height: 24px;
    width: 24px;
}

.graham-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.graham-button,
.graham-page-design-active .wc-block-components-button,
.graham-page-design-active .woocommerce a.button,
.graham-page-design-active .woocommerce button.button,
.graham-page-design-active .woocommerce input.button {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.graham-button:hover,
.graham-button:focus-visible,
.graham-page-design-active .wc-block-components-button:hover,
.graham-page-design-active .woocommerce a.button:hover,
.graham-page-design-active .woocommerce button.button:hover,
.graham-page-design-active .woocommerce input.button:hover {
    transform: translateY(-1px);
}

.graham-button-primary,
.graham-page-design-active .wc-block-components-button,
.graham-page-design-active .woocommerce a.button,
.graham-page-design-active .woocommerce button.button,
.graham-page-design-active .woocommerce input.button {
    background: var(--graham-page-green) !important;
    color: #fff !important;
}

.graham-button-primary:hover,
.graham-button-primary:focus-visible,
.graham-page-design-active .wc-block-components-button:hover,
.graham-page-design-active .woocommerce a.button:hover,
.graham-page-design-active .woocommerce button.button:hover,
.graham-page-design-active .woocommerce input.button:hover {
    background: var(--graham-page-green-dark) !important;
}

.graham-button-secondary {
    background: #fff;
    border-color: var(--graham-page-blue);
    color: var(--graham-page-blue);
}

.graham-button-secondary:hover,
.graham-button-secondary:focus-visible {
    background: #edf6fc;
}

.graham-button-light {
    background: #fff;
    color: var(--graham-page-blue-dark);
}

.graham-button-outline-light {
    border-color: #fff;
    color: #fff;
}

.graham-home-hero {
    background: linear-gradient(118deg, #e9f6ff 0%, #f1fbf5 100%);
    border-bottom: 1px solid #d8e8ee;
    overflow: hidden;
    padding: 78px 0;
    position: relative;
}

.graham-home-hero::after {
    background: rgba(30, 170, 82, 0.1);
    border-radius: 999px;
    content: "";
    height: 420px;
    position: absolute;
    right: -150px;
    top: -210px;
    width: 420px;
}

.graham-home-hero-inner {
    align-items: center;
    display: grid;
    gap: 72px;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    position: relative;
    z-index: 1;
}

.graham-home-hero-copy h1 {
    margin: 0 0 20px;
    max-width: 850px;
}

.graham-home-hero-copy > p:not(.graham-page-kicker) {
    color: var(--graham-page-muted);
    font-size: 1.08rem;
    margin: 0 0 26px;
    max-width: 690px;
}

.graham-home-search-card {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    box-shadow: var(--graham-page-shadow);
    padding: 30px;
}

.graham-home-search-card > span {
    color: var(--graham-page-green-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.graham-home-search-card h2 {
    font-size: 1.55rem;
    margin: 6px 0 18px;
}

.graham-home-search-card > p {
    color: var(--graham-page-muted);
    font-size: 0.83rem;
    margin: 13px 0 0;
}

.graham-home-product-search {
    align-items: stretch;
    border: 1px solid #bbccd8;
    border-radius: 9px;
    display: flex;
    margin: 0;
    overflow: hidden;
}

.graham-home-product-search:focus-within {
    border-color: var(--graham-page-blue);
    box-shadow: 0 0 0 3px rgba(7, 93, 168, 0.13);
}

.graham-home-product-search input {
    border: 0;
    box-shadow: none;
    flex: 1;
    font-size: 0.95rem;
    min-width: 0;
    outline: 0;
    padding: 13px 14px;
}

.graham-home-product-search button {
    align-items: center;
    background: var(--graham-page-blue);
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 0.8rem;
    font-weight: 800;
    gap: 8px;
    padding: 0 16px;
    text-transform: uppercase;
}

.graham-department-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.graham-department-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 14px;
    color: var(--graham-page-ink);
    display: grid;
    gap: 14px;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    min-height: 116px;
    padding: 18px;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.graham-department-card:hover,
.graham-department-card:focus-visible {
    border-color: #a6cadf;
    box-shadow: 0 12px 32px rgba(20, 59, 88, 0.1);
    transform: translateY(-3px);
}

.graham-department-icon {
    align-items: center;
    background: #eaf5fb;
    border-radius: 12px;
    color: var(--graham-page-blue);
    display: flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.graham-department-icon .graham-page-icon {
    height: 28px;
    width: 28px;
}

.graham-department-copy strong,
.graham-department-copy small {
    display: block;
}

.graham-department-copy strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

.graham-department-copy small {
    color: var(--graham-page-green-dark);
    font-size: 0.72rem;
    font-weight: 750;
    margin-top: 4px;
}

.graham-section-action {
    margin-top: 24px;
}

.graham-text-link,
.graham-section-action a {
    align-items: center;
    color: var(--graham-page-blue);
    display: inline-flex;
    font-weight: 800;
    gap: 6px;
    text-decoration: none;
}

.graham-home-help,
.graham-about-process,
.graham-contact-form-section {
    background: #eef5f9;
}

.graham-help-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-help-card {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    padding: 30px;
}

.graham-help-card > .graham-page-icon {
    color: var(--graham-page-blue);
    height: 34px;
    width: 34px;
}

.graham-help-card h2 {
    font-size: 1.35rem;
    margin: 18px 0 10px;
}

.graham-help-card p {
    color: var(--graham-page-muted);
    margin: 0 0 18px;
}

.graham-help-card a {
    color: var(--graham-page-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.graham-home-product-loop ul.products {
    display: grid !important;
    gap: 20px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin: 0 !important;
}

.graham-home-product-loop ul.products::before,
.graham-home-product-loop ul.products::after {
    display: none !important;
}

.graham-home-product-loop ul.products li.product {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 14px;
    float: none !important;
    margin: 0 !important;
    padding: 16px !important;
    width: auto !important;
}

.graham-home-product-loop ul.products li.product img {
    aspect-ratio: 1;
    background: #fff;
    object-fit: contain;
    width: 100%;
}

.graham-contact-strip {
    background: var(--graham-page-blue);
    color: #fff;
    padding: 44px 0;
}

.graham-contact-strip > div {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.graham-contact-strip .graham-page-kicker,
.graham-contact-strip h2,
.graham-contact-strip span {
    color: #fff;
}

.graham-contact-strip h2 {
    margin: 0 0 6px;
}

.graham-page-hero,
.graham-functional-banner {
    background: linear-gradient(118deg, #eef8ff 0%, #f1fbf5 100%);
    border-bottom: 1px solid #d9e8ee;
    padding: 64px 0;
}

.graham-page-hero h1,
.graham-functional-banner h1 {
    margin: 0 0 12px;
}

.graham-page-hero > div > span,
.graham-functional-banner span {
    color: var(--graham-page-muted);
    display: block;
    font-size: 1.02rem;
    max-width: 760px;
}

.graham-functional-banner-inner {
    margin: 0 auto;
    max-width: 1320px;
    width: calc(100% - 64px);
}

.graham-functional-banner-inner > p {
    color: var(--graham-page-green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.graham-functional-banner h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.graham-about-intro {
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.graham-about-intro h2 {
    margin: 0;
}

.graham-rich-copy p {
    color: var(--graham-page-muted);
    font-size: 1.02rem;
    margin: 0 0 18px;
}

.graham-process-grid {
    counter-reset: none;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.graham-process-grid li {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    padding: 28px;
}

.graham-process-grid li > span {
    align-items: center;
    background: var(--graham-page-blue);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.graham-process-grid h3 {
    font-size: 1.2rem;
    margin: 18px 0 8px;
}

.graham-process-grid p {
    color: var(--graham-page-muted);
    margin: 0;
}

.graham-about-contact-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    box-shadow: var(--graham-page-shadow);
    display: flex;
    gap: 48px;
    justify-content: space-between;
    padding: 42px;
}

.graham-about-contact-card h2 {
    margin: 0 0 10px;
}

.graham-about-contact-card p:not(.graham-page-kicker) {
    color: var(--graham-page-muted);
    margin: 0;
}

/* About Graham: company story adapted from the Graham information sheet. */
.graham-about-hero {
    align-items: flex-end;
    color: #fff;
    display: flex;
    min-height: 440px;
    overflow: hidden;
    position: relative;
}

.graham-about-hero picture,
.graham-about-hero picture img,
.graham-about-hero-shade {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.graham-about-hero picture img {
    object-fit: cover;
    object-position: center 56%;
}

.graham-about-hero-shade {
    background: rgba(5, 44, 75, 0.72);
}

.graham-about-hero .graham-page-container {
    padding-bottom: 54px;
    padding-top: 54px;
    position: relative;
    z-index: 1;
}

.graham-about-hero .graham-page-kicker,
.graham-about-hero h1,
.graham-about-hero span {
    color: #fff;
}

.graham-about-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 16px;
    max-width: 900px;
}

.graham-about-hero .graham-page-container > span {
    display: block;
    font-size: 1.12rem;
    line-height: 1.55;
    max-width: 720px;
}

.graham-about-facts {
    background: #0b5f9f;
    color: #fff;
}

.graham-about-facts > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-about-facts p {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 20px 28px;
}

.graham-about-facts p:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.graham-about-facts strong {
    color: #fff;
    font-size: 1.2rem;
}

.graham-about-facts span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.graham-about-story {
    display: grid;
    gap: 60px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.graham-about-story h2 {
    margin: 0;
}

.graham-about-approach {
    background: #eef5f9;
}

.graham-about-pillar-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-about-pillar-grid article {
    border-top: 4px solid #159447;
    padding-top: 20px;
}

.graham-about-pillar-grid article > span {
    align-items: center;
    background: #0b66ad;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.graham-about-pillar-grid h3 {
    font-size: 1.18rem;
    margin: 14px 0 8px;
}

.graham-about-pillar-grid p {
    color: var(--graham-page-muted);
    margin: 0;
}

.graham-about-departments {
    background: #fff;
}

.graham-about-department-links {
    border-bottom: 1px solid var(--graham-page-line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-about-department-links a {
    align-items: center;
    border-top: 1px solid var(--graham-page-line);
    color: #123e65;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 14px;
    text-decoration: none;
}

.graham-about-department-links a:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--graham-page-line);
}

.graham-about-department-links a:hover,
.graham-about-department-links a:focus-visible {
    background: #edf7f1;
    color: #0d7432;
}

.graham-about-service {
    background: #eef5f9;
}

.graham-about-service > div {
    align-items: center;
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.graham-about-service picture {
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
}

.graham-about-service picture img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.graham-about-service h2 {
    margin: 0 0 14px;
}

.graham-about-service p:not(.graham-page-kicker) {
    color: var(--graham-page-muted);
    margin: 0 0 16px;
}

.graham-about-service .graham-button {
    margin-top: 8px;
}

.graham-about .graham-about-contact-card {
    border-radius: 6px;
}

/* Searchable public Help Centre. */
.graham-help-centre-hero {
    background: #eef5f9;
    border-bottom: 1px solid #cddfe9;
    padding: 44px 0 36px;
}

.graham-help-centre-hero h1 {
    letter-spacing: 0;
    margin: 0 0 8px;
}

.graham-help-centre-hero > div > p:not(.graham-page-kicker) {
    color: var(--graham-page-muted);
    margin: 0;
}

.graham-help-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 24px;
    max-width: 820px;
}

.graham-help-search input[type="search"] {
    background: #fff;
    border: 2px solid #0b66ad;
    border-radius: 5px 0 0 5px;
    box-sizing: border-box;
    color: #183d58;
    font-size: 1rem;
    min-height: 48px;
    padding: 10px 14px;
    width: 100%;
}

.graham-help-search button {
    background: #0b66ad;
    border: 2px solid #0b66ad;
    border-radius: 0 5px 5px 0;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 18px;
}

.graham-help-search input[type="search"]:focus-visible,
.graham-help-search button:focus-visible,
.graham-help-filters button:focus-visible {
    outline: 3px solid rgba(20, 143, 61, 0.28);
    outline-offset: 2px;
}

.graham-help-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.graham-help-filters button {
    background: #fff;
    border: 1px solid #a9c4d4;
    border-radius: 5px;
    color: #123e65;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    min-height: 34px;
    padding: 6px 11px;
}

.graham-help-filters button[aria-pressed="true"] {
    background: #148f3d;
    border-color: #148f3d;
    color: #fff;
}

.graham-help-results-heading {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.graham-help-results-heading h2 {
    margin: 0;
}

.graham-help-results-heading > p {
    color: #587184;
    font-size: 0.84rem;
    font-weight: 800;
    margin: 0;
}

.graham-help-guide-list {
    border-bottom: 1px solid var(--graham-page-line);
}

.graham-help-guide {
    border-top: 1px solid var(--graham-page-line);
}

.graham-help-guide[hidden] {
    display: none;
}

.graham-help-guide summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 34px;
    list-style: none;
    padding: 19px 4px;
}

.graham-help-guide summary::-webkit-details-marker {
    display: none;
}

.graham-help-guide summary > span:first-child {
    display: grid;
    gap: 3px;
}

.graham-help-guide summary small {
    color: #148f3d;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.graham-help-guide summary strong {
    color: #123e65;
    font-size: 1.05rem;
}

.graham-help-guide summary em {
    color: var(--graham-page-muted);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 400;
}

.graham-help-guide-toggle {
    align-items: center;
    background: #0b66ad;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.graham-help-guide[open] .graham-help-guide-toggle {
    background: #536574;
    font-size: 0;
}

.graham-help-guide[open] .graham-help-guide-toggle::after {
    content: "\2212";
    font-size: 1.15rem;
}

.graham-help-guide-body {
    border-left: 4px solid #159447;
    margin: 0 0 20px 4px;
    max-width: 920px;
    padding: 4px 20px 4px 24px;
}

.graham-help-guide-visuals {
    display: grid;
    gap: 18px;
    margin: 4px 0 20px;
    max-width: 860px;
    min-width: 0;
}

.graham-help-guide-figure {
    background: #fff;
    border: 1px solid #bfd3df;
    border-radius: 6px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}

.graham-help-guide-figure--portrait {
    max-width: 460px;
}

.graham-help-guide-image {
    background: #eaf2f7;
    line-height: 0;
    position: relative;
}

.graham-help-guide-image img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.graham-help-image-marker {
    appearance: none;
    align-items: center;
    background: var(--graham-help-callout, #0b66ad);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(10, 45, 70, 0.34);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 0.72rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: box-shadow 150ms ease, transform 150ms ease;
    width: 28px;
    z-index: 2;
}

.graham-help-image-marker:is(:hover, :focus-visible, .is-active) {
    box-shadow: 0 0 0 3px #fff, 0 0 0 8px var(--graham-help-callout, #0b66ad), 0 0 24px 9px var(--graham-help-callout, #0b66ad);
    outline: 0;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 4;
}

.graham-help-guide-figure figcaption {
    border-top: 1px solid #d2e1e9;
    color: #36566a;
    padding: 12px 14px 13px;
}

.graham-help-guide-figure figcaption > p {
    font-size: 0.84rem;
    margin: 0 0 9px;
}

.graham-help-guide-figure figcaption > .graham-help-marker-hint {
    color: #5a7281;
    font-size: 0.74rem;
    font-weight: 650;
}

.graham-help-guide-body .graham-help-marker-key {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.graham-help-guide-body .graham-help-marker-key li {
    margin: 0;
    padding: 0;
}

.graham-help-marker-direction {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #c8d8e1;
    border-left: 4px solid var(--graham-help-callout, #0b66ad);
    border-radius: 4px;
    color: #294c63;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    gap: 7px;
    line-height: 1.25;
    margin: 0;
    min-height: 34px;
    padding: 5px 9px 5px 6px;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.graham-help-marker-direction:is(:hover, :focus-visible, .is-active) {
    border-color: var(--graham-help-callout, #0b66ad);
    box-shadow: 0 0 0 3px var(--graham-help-callout, #0b66ad);
    outline: 0;
    transform: translateY(-1px);
}

.graham-help-marker-number {
    align-items: center;
    background: var(--graham-help-callout, #0b66ad);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 20px;
    font-size: 0.66rem;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    line-height: 1;
    width: 20px;
}

.graham-help-marker-label {
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .graham-help-image-marker,
    .graham-help-marker-direction {
        transition: none;
    }
}

.graham-help-guide-body ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.graham-help-guide-body li {
    color: #294c63;
    margin-bottom: 8px;
    padding-left: 4px;
}

.graham-help-guide-body > p {
    background: #edf7f1;
    border-radius: 4px;
    color: #315b42;
    margin: 0;
    padding: 10px 12px;
}

.graham-help-guide-facts {
    border-bottom: 1px solid #d7e4eb;
    margin: 0 0 16px;
}

.graham-help-guide-facts > div {
    border-top: 1px solid #d7e4eb;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
    padding: 10px 2px;
}

.graham-help-guide-facts dt {
    color: #0b66ad;
    font-weight: 800;
}

.graham-help-guide-facts dd {
    color: #486679;
    margin: 0;
}

.graham-help-guide-action {
    align-items: center;
    background: #0b66ad;
    border-radius: 5px;
    color: #fff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 9px;
    margin-top: 12px;
    min-height: 38px;
    padding: 7px 13px;
    text-decoration: none;
}

.graham-help-guide-action:hover,
.graham-help-guide-action:focus-visible {
    background: #084f87;
    color: #fff;
}

.graham-help-guide-action:focus-visible {
    outline: 3px solid rgba(20, 143, 61, 0.28);
    outline-offset: 2px;
}

.graham-help-guide-action span {
    font-size: 1.1rem;
    line-height: 1;
}

.graham-help-no-results {
    border: 1px dashed #9eb7c6;
    padding: 26px;
    text-align: center;
}

.graham-help-no-results h2 {
    margin: 0 0 8px;
}

.graham-help-no-results p {
    color: var(--graham-page-muted);
    margin: 0;
}

.graham-help-contact {
    background: #0b5f9f;
    color: #fff;
    padding: 38px 0;
}

.graham-help-contact > div {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.graham-help-contact .graham-page-kicker,
.graham-help-contact h2,
.graham-help-contact p {
    color: #fff;
}

.graham-help-contact h2 {
    margin: 0 0 5px;
}

.graham-help-contact p:not(.graham-page-kicker) {
    margin: 0;
}

.graham-help-contact .graham-button-secondary {
    background: #fff;
    border-color: #fff;
    color: #0b5f9f;
}

.graham-contact-card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-warehouse-section {
    background: #eef5f9;
}

.graham-warehouse-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-warehouse-card {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(16, 52, 80, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
}

.graham-warehouse-card h3 {
    font-size: 1.25rem;
    margin: 8px 0 10px;
}

.graham-warehouse-card .graham-warehouse-type {
    color: var(--graham-page-blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 18px 0 0;
    text-transform: uppercase;
}

.graham-warehouse-address {
    color: var(--graham-page-ink);
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
}

.graham-warehouse-contact {
    border-top: 1px solid var(--graham-page-line);
    display: grid;
    gap: 7px;
    margin-top: 18px;
    padding-top: 16px;
}

.graham-warehouse-contact a,
.graham-warehouse-contact span {
    color: var(--graham-page-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.graham-warehouse-contact a:hover,
.graham-warehouse-contact a:focus-visible,
.graham-warehouse-address:hover,
.graham-warehouse-address:focus-visible {
    color: var(--graham-page-blue);
}

.graham-warehouse-map {
    align-items: center;
    color: var(--graham-page-blue);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 4px;
    margin-top: auto;
    padding-top: 20px;
    text-decoration: none;
}

.graham-contact-card {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 14px;
    min-height: 220px;
    padding: 26px;
}

.graham-contact-card-icon {
    align-items: center;
    background: #eaf5fb;
    border-radius: 10px;
    color: var(--graham-page-blue);
    display: flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.graham-contact-card h3 {
    font-size: 1.1rem;
    margin: 18px 0 8px;
}

.graham-contact-card p {
    color: var(--graham-page-muted);
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}

.graham-contact-card a {
    align-items: center;
    color: var(--graham-page-blue);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 4px;
    text-decoration: none;
}

.graham-contact-form-layout {
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.graham-contact-form-intro h2 {
    margin: 0 0 14px;
}

.graham-contact-form-intro > p:not(.graham-page-kicker) {
    color: var(--graham-page-muted);
}

.graham-contact-response-note {
    border-left: 4px solid var(--graham-page-green);
    font-size: 0.88rem;
    padding-left: 14px;
}

.graham-contact-form-card {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    box-shadow: 0 12px 34px rgba(16, 52, 80, 0.08);
    padding: 32px;
}

.graham-form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.graham-contact-form p {
    margin: 0 0 18px;
}

.graham-contact-form label {
    color: var(--graham-page-ink);
    display: block;
    font-size: 0.85rem;
    font-weight: 750;
    margin-bottom: 6px;
}

.graham-contact-form input,
.graham-contact-form select,
.graham-contact-form textarea,
.graham-account-application-form textarea,
.graham-page-design-active .wc-block-components-text-input input,
.graham-page-design-active .wc-blocks-components-select .wc-blocks-components-select__select,
.graham-page-design-active .woocommerce input.input-text,
.graham-page-design-active .woocommerce select,
.graham-page-design-active .woocommerce textarea {
    background: #fff;
    border: 1px solid #bfcfd9;
    border-radius: 8px;
    box-shadow: none;
    color: var(--graham-page-ink);
    font-size: 0.95rem;
    min-height: 46px;
    padding: 11px 12px;
    width: 100%;
}

.graham-contact-form textarea,
.graham-page-design-active .woocommerce textarea {
    min-height: 140px;
    resize: vertical;
}

.graham-contact-form input:focus,
.graham-contact-form select:focus,
.graham-contact-form textarea:focus,
.graham-account-application-form input:focus,
.graham-account-application-form select:focus,
.graham-account-application-form textarea:focus,
.graham-page-design-active input:focus,
.graham-page-design-active select:focus,
.graham-page-design-active textarea:focus {
    border-color: var(--graham-page-blue);
    box-shadow: 0 0 0 3px rgba(7, 93, 168, 0.12);
    outline: 0;
}

.graham-form-honeypot {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.graham-form-notice {
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 13px 15px;
}

.graham-form-notice.is-success {
    background: #e8f8ee;
    color: #0b7132;
}

.graham-form-notice.is-error {
    background: #fff0f0;
    color: #9b2424;
}

.graham-account-intro-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.graham-account-intro-grid h2 {
    margin: 0;
}

.graham-account-form-section {
    background: #eef5f9;
}

.graham-account-form-wrap {
    max-width: 1180px;
}

.graham-account-application-form {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    box-shadow: var(--graham-page-shadow);
    padding: clamp(20px, 3vw, 32px);
}

.graham-account-application-form fieldset {
    border: 0;
    border-bottom: 1px solid var(--graham-page-line);
    margin: 0 0 22px;
    padding: 0 0 16px;
}

.graham-account-application-form fieldset:last-of-type {
    border-bottom: 0;
}

.graham-account-application-form legend {
    color: var(--graham-page-ink);
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0 0 12px;
    padding: 0;
}

.graham-account-application-form fieldset h3 {
    color: var(--graham-page-blue-dark);
    font-size: 0.92rem;
    margin: 15px 0 9px;
}

.graham-account-application-form p {
    margin: 0 0 12px;
}

.graham-account-application-form .graham-form-grid {
    gap: 10px 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graham-account-application-form .graham-form-grid > p {
    margin: 0;
}

.graham-account-application-form label:not(.graham-consent-field) {
    color: var(--graham-page-ink);
    display: block;
    font-size: 0.85rem;
    font-weight: 750;
    margin-bottom: 4px;
}

.graham-account-application-form input:not([type="checkbox"]),
.graham-account-application-form select,
.graham-account-application-form textarea {
    background: #fff;
    border: 1px solid #bfcfd9;
    border-radius: 8px;
    box-shadow: none;
    color: var(--graham-page-ink);
    font-size: 0.95rem;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.graham-account-application-form input[required]:not([type="checkbox"]):not([readonly]),
.graham-account-application-form select[required],
.graham-account-application-form textarea[required] {
    background: #effaf2;
    border-color: #9fcdb0;
}

.graham-account-application-form textarea {
    min-height: 76px;
    resize: vertical;
}

.graham-form-full {
    grid-column: 1 / -1;
}

.graham-fieldset-note,
.graham-application-privacy {
    color: var(--graham-page-muted);
    font-size: 0.85rem;
}

.graham-application-declaration {
    background: #f3f8fb;
    border-left: 4px solid var(--graham-page-blue);
    color: var(--graham-page-ink);
    padding: 12px 14px;
}

.graham-application-terms {
    background: #f4f8fb;
    border: 1px solid #d6e2ea;
    border-radius: 10px;
    margin: 0 0 14px;
    padding: 14px;
}

.graham-application-terms h3 {
    margin-top: 0 !important;
}

.graham-application-terms p:last-child {
    margin-bottom: 0;
}

.graham-signature-field {
    margin: 10px 0 16px;
}

#graham-signature-pad {
    background: #fff;
    border: 2px solid #9eb7c8;
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    height: 150px;
    max-width: 100%;
    touch-action: none;
    width: 100%;
}

#graham-signature-pad:focus {
    border-color: var(--graham-page-blue);
    box-shadow: 0 0 0 3px rgba(7, 93, 168, 0.12);
    outline: 0;
}

.graham-signature-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.graham-signature-error {
    color: #9b2424;
    font-size: 0.84rem;
    font-weight: 700;
}

.graham-consent-field {
    align-items: flex-start;
    background: #f5faf7;
    border: 1px solid #cfe8d8;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
}

.graham-consent-field input {
    flex: 0 0 auto;
    margin-top: 5px;
}

.graham-consent-field span {
    color: var(--graham-page-ink);
    font-size: 0.88rem;
    line-height: 1.5;
}

.graham-account-submit {
    min-width: 240px;
}

.graham-cart-page .wp-site-blocks main,
.graham-checkout-page .wp-site-blocks main,
.graham-account-page .wp-site-blocks main,
.graham-policy-page .wp-site-blocks main,
.graham-cart-page main.wp-block-group,
.graham-checkout-page main.wp-block-group,
.graham-account-page main.wp-block-group,
.graham-policy-page main.wp-block-group {
    box-sizing: border-box;
    margin: 0 auto !important;
    max-width: 1320px !important;
    padding: 48px 32px 80px !important;
    width: 100% !important;
}

/*
 * Keep functional WooCommerce pages inside the device viewport. The theme's
 * main wrapper is 100% wide, so its horizontal padding must be included in
 * that width. The body guard only catches accidental decorative overflow;
 * tables that intentionally scroll retain their own overflow container.
 */
body.graham-cart-page,
body.graham-checkout-page,
body.graham-account-page,
body.graham-policy-page {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.graham-page-design-active .wp-block-woocommerce-cart,
.graham-page-design-active .wp-block-woocommerce-checkout,
.graham-page-design-active .woocommerce-MyAccount-content,
.graham-page-design-active .woocommerce-form-login,
.graham-page-design-active .woocommerce-form-register {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    box-shadow: 0 10px 30px rgba(16, 52, 80, 0.06);
}

.graham-page-design-active .wp-block-woocommerce-cart,
.graham-page-design-active .wp-block-woocommerce-checkout {
    box-sizing: border-box;
    max-width: 100%;
    padding: 24px !important;
    width: 100%;
}

.graham-page-design-active .wp-block-woocommerce-cart *,
.graham-page-design-active .wp-block-woocommerce-checkout * {
    box-sizing: border-box;
}

.graham-page-design-active .wc-block-components-sidebar-layout {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

/* Keep checkout focused: account addresses and the order summary should fit without a tall form wall. */
.graham-checkout-page .wp-site-blocks main,
.graham-checkout-page main.wp-block-group {
    max-width: 1180px !important;
    padding: 30px 24px 64px !important;
}

.graham-checkout-page .wp-block-woocommerce-checkout {
    padding: 18px !important;
}

.graham-checkout-page .wc-block-checkout__main {
    min-width: 0;
    padding-right: 3% !important;
}

.graham-checkout-page .wc-block-components-checkout-step {
    margin-bottom: 18px;
}

.graham-checkout-page .wc-block-components-checkout-step__heading {
    margin-bottom: 10px;
}

.graham-checkout-page .wc-block-components-order-summary-item__description,
.graham-checkout-page .wc-block-components-order-summary-item__total-price {
    min-width: 0;
}

.graham-checkout-page .wc-block-components-order-summary-item__description {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.graham-checkout-page .wc-block-components-order-summary-item {
    box-sizing: border-box;
    grid-template-columns: 60px minmax(0, 1fr) minmax(64px, auto);
    column-gap: 10px;
    width: 100%;
}

.graham-checkout-page .wc-block-components-order-summary-item__image {
    width: 60px;
}

.graham-checkout-page .wc-block-components-order-summary-item__description > *,
.graham-checkout-page .wc-block-components-order-summary-item__description p,
.graham-checkout-page .wc-block-components-product-metadata {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.graham-checkout-page .wc-block-components-order-summary-item__total-price {
    justify-self: end;
    max-width: 82px;
    text-align: right;
}

.graham-checkout-page .wc-block-components-order-summary-item__total-price .wc-block-components-product-price {
    align-items: flex-end;
    justify-content: flex-end;
}

.graham-checkout-page .wc-block-components-product-price {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 7px;
}

.graham-checkout-page .wc-block-components-sale-badge {
    font-size: .7rem;
    line-height: 1.2;
    margin: 2px 0;
    max-width: 100%;
    padding: 3px 5px;
    position: static;
    white-space: normal;
}

@media (max-width: 480px) {
    .graham-checkout-page .wc-block-components-order-summary-item {
        grid-template-columns: 52px minmax(0, 1fr) minmax(58px, auto);
        column-gap: 8px;
    }

    .graham-checkout-page .wc-block-components-order-summary-item__image {
        width: 52px;
    }

    .graham-checkout-page .wc-block-components-order-summary-item__description {
        font-size: 12px;
        line-height: 1.28;
    }

    .graham-checkout-page .wc-block-components-order-summary-item__total-price {
        max-width: 68px;
        font-size: 12px;
    }

    .graham-checkout-page .wc-block-components-sale-badge {
        font-size: 9px;
        padding: 2px 4px;
    }
}

.graham-page-design-active .wc-block-components-sidebar,
.graham-page-design-active .wc-block-cart__totals-title,
.graham-page-design-active .wc-block-components-totals-wrapper {
    background: #f7fafc;
}

.graham-page-design-active .wc-block-components-order-summary-item__image > img,
.graham-page-design-active .wc-block-cart-item__image img {
    background: #fff;
    object-fit: contain;
}

.graham-page-design-active .woocommerce-MyAccount-navigation ul {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 12px;
    display: block;
    gap: 0;
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 8px;
}

.graham-page-design-active .woocommerce-MyAccount-navigation li {
    margin: 0;
}

.graham-page-design-active .woocommerce-MyAccount-navigation a {
    border-radius: 7px;
    color: var(--graham-page-ink);
    display: block;
    font-weight: 700;
    padding: 11px 13px;
    text-decoration: none;
}

.graham-page-design-active .woocommerce-MyAccount-navigation .is-active a,
.graham-page-design-active .woocommerce-MyAccount-navigation a:hover {
    background: var(--graham-page-blue);
    color: #fff;
}

.graham-page-design-active .woocommerce-MyAccount-content,
.graham-page-design-active .woocommerce-form-login,
.graham-page-design-active .woocommerce-form-register {
    padding: 28px;
}

.graham-account-page .woocommerce,
.graham-account-page .woocommerce * {
    box-sizing: border-box;
}

body.logged-in.graham-account-page .woocommerce {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    max-width: 100%;
    width: 100%;
}

/* WooCommerce's legacy clearfix pseudo-elements become unintended grid items. */
body.logged-in.graham-account-page .woocommerce::before,
body.logged-in.graham-account-page .woocommerce::after {
    content: none !important;
    display: none !important;
}

body.logged-in.graham-account-page .woocommerce > .woocommerce-notices-wrapper,
body.logged-in.graham-account-page .woocommerce > .woocommerce-message,
body.logged-in.graham-account-page .woocommerce > .woocommerce-info,
body.logged-in.graham-account-page .woocommerce > .woocommerce-error {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
}

/* Customer invitation success notice */
body.logged-in.graham-account-page .woocommerce > .woocommerce-message,
body.logged-in.graham-account-page .woocommerce > .woocommerce-notices-wrapper .woocommerce-message {
    background: #138f3d !important;
    border: 1px solid #0d7130 !important;
    border-left: 0 !important;
    border-radius: 6px;
    color: #fff !important;
    padding: 12px 16px !important;
}

body.logged-in.graham-account-page .woocommerce > .woocommerce-message::before,
body.logged-in.graham-account-page .woocommerce > .woocommerce-notices-wrapper .woocommerce-message::before {
    color: #fff !important;
}

.graham-account-page .woocommerce-MyAccount-navigation,
.graham-account-page .woocommerce-MyAccount-content {
    float: none !important;
    margin: 0 !important;
    max-width: 100%;
    min-width: 0;
    width: auto !important;
}

.graham-account-page .woocommerce-MyAccount-content {
    overflow-wrap: anywhere;
}

.graham-account-page .woocommerce-MyAccount-content > :first-child,
.graham-account-page .woocommerce-form-login > :first-child,
.graham-account-page .woocommerce-form-register > :first-child {
    margin-top: 0;
}

.graham-account-page .woocommerce-MyAccount-content > :last-child,
.graham-account-page .woocommerce-form-login > :last-child,
.graham-account-page .woocommerce-form-register > :last-child {
    margin-bottom: 0;
}

.graham-account-page .woocommerce form,
.graham-account-page .woocommerce fieldset,
.graham-account-page .woocommerce .form-row,
.graham-account-page .woocommerce input,
.graham-account-page .woocommerce select,
.graham-account-page .woocommerce textarea {
    max-width: 100%;
}

.graham-account-page .woocommerce input.input-text,
.graham-account-page .woocommerce select,
.graham-account-page .woocommerce textarea {
    min-height: 44px;
    width: 100%;
}

.graham-account-page .woocommerce fieldset {
    border: 1px solid var(--graham-page-line);
    border-radius: 10px;
    margin: 24px 0;
    min-width: 0;
    padding: 18px;
}

.graham-account-page .woocommerce fieldset legend {
    color: var(--graham-page-blue-dark);
    font-weight: 800;
    padding: 0 8px;
}

.graham-account-page .woocommerce .u-columns,
.graham-account-page .woocommerce .woocommerce-Addresses {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
}

/* WooCommerce clearfix pseudo-elements must not become phantom grid cells. */
.graham-account-page .woocommerce .u-columns::before,
.graham-account-page .woocommerce .u-columns::after,
.graham-account-page .woocommerce .woocommerce-Addresses::before,
.graham-account-page .woocommerce .woocommerce-Addresses::after {
    content: none !important;
    display: none !important;
}

.graham-account-page .woocommerce .u-column1,
.graham-account-page .woocommerce .u-column2,
.graham-account-page .woocommerce .woocommerce-Address {
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    width: auto !important;
}

.graham-account-page .woocommerce .woocommerce-Address {
    background: #f7fafc;
    border: 1px solid var(--graham-page-line);
    border-radius: 10px;
    padding: 18px !important;
}

.graham-account-page .woocommerce .woocommerce-Address-title {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: space-between;
}

.graham-account-page .woocommerce .woocommerce-Address-title h2,
.graham-account-page .woocommerce .woocommerce-Address-title h3,
.graham-account-page .woocommerce .woocommerce-Address-title a {
    float: none !important;
    margin-top: 0;
    overflow-wrap: anywhere;
}

.graham-account-page .woocommerce table {
    max-width: 100%;
    width: 100%;
}

.graham-account-page .woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.graham-account-page .woocommerce-orders-table__cell-order-actions .button {
    margin: 0;
}

@media (max-width: 900px) {
    .graham-account-application-form .graham-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.logged-in.graham-account-page .woocommerce {
        gap: 16px;
        grid-template-columns: minmax(0, 1fr);
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .graham-account-page .woocommerce-MyAccount-navigation,
    .graham-account-page .woocommerce-MyAccount-content {
        align-self: stretch;
        justify-self: stretch;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .graham-account-page .woocommerce-MyAccount-content > section,
    .graham-account-page .woocommerce-MyAccount-content > .graham-linked-business-account,
    .graham-account-page .woocommerce-MyAccount-content > .woocommerce-order-details,
    .graham-account-page .woocommerce-MyAccount-content > .woocommerce-customer-details,
    .graham-account-page .graham-saved-lists-page,
    .graham-account-page .graham-documents,
    .graham-account-page .graham-purchase-report,
    .graham-account-page .graham-team-access,
    .graham-account-page .graham-address-grid,
    .graham-account-page .graham-view-as-company,
    .graham-account-page .graham-product-links-account {
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .graham-account-page .woocommerce-MyAccount-navigation ul {
        display: grid;
        gap: 4px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-account-page .woocommerce-MyAccount-navigation a {
        height: 100%;
    }
}

/* Stack account pairs before their fields become cramped on tablets. */
@media (max-width: 820px) {
    .graham-account-page .woocommerce .u-columns,
    .graham-account-page .woocommerce .woocommerce-Addresses {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-account-page .woocommerce .form-row-first,
    .graham-account-page .woocommerce .form-row-last {
        float: none !important;
        width: 100% !important;
    }
}

.graham-page-design-active .woocommerce-message,
.graham-page-design-active .woocommerce-info,
.graham-page-design-active .woocommerce-error,
.graham-page-design-active .wc-block-components-notice-banner {
    border-radius: 8px;
}

.graham-policy-page .entry-content,
.graham-policy-page .wp-block-post-content {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: var(--graham-page-radius);
    color: var(--graham-page-ink);
    line-height: 1.7;
    padding: clamp(24px, 5vw, 54px);
}

.graham-site-footer {
    background: #075b9d;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    position: relative;
    width: 100%;
    z-index: 5;
}

.graham-footer-accent {
    background: var(--graham-page-green);
    height: 7px;
}

.graham-footer-grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(250px, 1.35fr) minmax(190px, 1fr) minmax(150px, 0.7fr) minmax(190px, 0.9fr);
    padding-bottom: 46px;
    padding-top: 46px;
}

.graham-footer-logo {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    overflow: visible;
    width: 300px;
}

.graham-footer-logo-image {
    aspect-ratio: 623 / 196.8;
    display: block;
    filter: brightness(0) invert(1);
    height: auto !important;
    max-height: none !important;
    max-width: 300px !important;
    object-fit: contain;
    object-position: left center;
    overflow: visible;
    width: 100%;
}

.graham-footer-logo-text {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
}

.graham-footer-brand p,
.graham-footer-column p {
    color: #dcecf7;
    font-size: 0.86rem;
    line-height: 1.65;
    margin: 16px 0 0;
    max-width: 330px;
}

.graham-footer-column h2 {
    color: #fff;
    font-size: 0.84rem;
    letter-spacing: 0;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.graham-footer-column a {
    color: #fff;
    display: block;
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.graham-footer-column a strong,
.graham-footer-column a span {
    display: block;
}

.graham-footer-column a span {
    color: #dcecf7;
    font-size: 0.76rem;
    font-weight: 400;
    margin-top: 2px;
}

.graham-footer-column a:hover,
.graham-footer-column a:focus-visible {
    color: #bdeecb;
}

.graham-footer-bottom {
    background: #064a80;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.graham-footer-bottom > div {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    min-height: 58px;
}

.graham-footer-bottom p {
    color: #dcecf7;
    font-size: 0.76rem;
    margin: 0;
}

.graham-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.graham-footer-bottom nav a {
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.graham-footer-bottom nav a.graham-footer-app-link {
    background: #1eaa52;
    border-radius: 999px;
    color: #fff;
    padding: 5px 11px;
}

.graham-footer-bottom nav a.graham-footer-app-link:hover,
.graham-footer-bottom nav a.graham-footer-app-link:focus-visible {
    background: #bdeecb;
    color: #043d6c;
}

@media (max-width: 1100px) {
    .graham-home-hero-inner {
        gap: 38px;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    }

    .graham-department-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .graham-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .graham-page-container,
    .graham-functional-banner-inner {
        width: calc(100% - 32px);
    }

    .graham-page-section {
        padding: 52px 0;
    }

    .graham-home-hero {
        padding: 54px 0;
    }

    .graham-home-hero-inner,
    .graham-about-intro,
    .graham-about-story,
    .graham-about-service > div,
    .graham-contact-form-layout,
    .graham-account-intro-grid {
        grid-template-columns: 1fr;
    }

    .graham-home-hero-inner,
    .graham-about-intro,
    .graham-contact-form-layout,
    .graham-account-intro-grid {
        gap: 34px;
    }

    .graham-help-grid,
    .graham-process-grid,
    .graham-about-pillar-grid,
    .graham-contact-card-grid,
    .graham-warehouse-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-home-product-loop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .graham-contact-strip > div,
    .graham-about-contact-card,
    .graham-help-contact > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .graham-about-service > div {
        gap: 30px;
    }

    .graham-about-department-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-about-department-links a:not(:nth-child(3n + 1)) {
        border-left: 0;
    }

    .graham-about-department-links a:nth-child(even) {
        border-left: 1px solid var(--graham-page-line);
    }
}

@media (max-width: 560px) {
    .graham-page-container,
    .graham-functional-banner-inner {
        width: calc(100% - 24px);
    }

    .graham-page-section {
        padding: 38px 0;
    }

    .graham-home-hero {
        padding: 40px 0;
    }

    .graham-page h1 {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .graham-home-search-card,
    .graham-contact-form-card,
    .graham-account-application-form,
    .graham-help-card,
    .graham-process-grid li,
    .graham-about-contact-card {
        padding: 22px;
    }

    .graham-account-application-form {
        padding: 18px;
    }

    .graham-account-application-form .graham-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-department-grid,
    .graham-help-grid,
    .graham-process-grid,
    .graham-about-pillar-grid,
    .graham-contact-card-grid,
    .graham-warehouse-grid,
    .graham-form-grid,
    .graham-footer-grid {
        grid-template-columns: 1fr;
    }

    .graham-about-hero {
        min-height: 390px;
    }

    .graham-about-hero .graham-page-container {
        padding-bottom: 34px;
        padding-top: 34px;
    }

    .graham-about-hero h1 {
        font-size: 2.55rem;
    }

    .graham-about-facts > div {
        grid-template-columns: 1fr;
    }

    .graham-about-facts p,
    .graham-about-facts p:last-child {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        padding: 14px 2px;
    }

    .graham-about-facts p:first-child {
        border-top: 0;
    }

    .graham-about-department-links {
        grid-template-columns: 1fr;
    }

    .graham-about-department-links a:nth-child(even) {
        border-left: 0;
    }

    .graham-help-centre-hero {
        padding: 30px 0 24px;
    }

    .graham-help-search {
        grid-template-columns: minmax(0, 1fr) 70px;
    }

    .graham-help-search input[type="search"] {
        font-size: 0.9rem;
        min-width: 0;
    }

    .graham-help-search button {
        padding: 0 9px;
    }

    .graham-help-filters {
        flex-wrap: nowrap;
        margin-left: -12px;
        margin-right: -12px;
        overflow-x: auto;
        padding: 0 12px 5px;
    }

    .graham-help-filters button {
        flex: 0 0 auto;
    }

    .graham-help-results-heading {
        align-items: flex-start;
        display: grid;
        gap: 7px;
    }

    .graham-help-guide summary {
        padding: 16px 2px;
    }

    .graham-help-guide-body {
        margin-left: 2px;
        padding: 2px 10px 2px 17px;
    }

    .graham-help-guide-visuals {
        gap: 14px;
        margin-bottom: 17px;
    }

    .graham-help-image-marker {
        font-size: 0.64rem;
        height: 24px;
        width: 24px;
    }

    .graham-help-guide-figure figcaption {
        padding: 10px 11px 11px;
    }

    .graham-help-guide-body .graham-help-marker-key {
        display: grid;
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .graham-help-guide-body .graham-help-marker-key li {
        min-width: 0;
    }

    .graham-help-marker-direction {
        font-size: 0.74rem;
        min-height: 40px;
        width: 100%;
    }

    .graham-help-guide-facts > div {
        gap: 3px;
        grid-template-columns: 1fr;
    }

    .graham-help-guide-action {
        justify-content: space-between;
        width: 100%;
    }

    .graham-footer-grid {
        gap: 22px 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 28px;
        padding-top: 30px;
    }

    .graham-footer-brand {
        grid-column: 1 / -1;
    }

    .graham-footer-brand p,
    .graham-footer-locations,
    .graham-footer-hours {
        display: none;
    }

    .graham-footer-logo-image {
        max-width: 220px !important;
    }

    .graham-footer-logo {
        width: 220px;
    }

    .graham-footer-column h2 {
        margin-bottom: 9px;
    }

    .graham-footer-column a {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .graham-footer-phone {
        font-size: 0.9rem !important;
        font-weight: 800;
    }

    .graham-footer-bottom nav {
        gap: 9px 14px;
    }

    .graham-home-product-search button {
        font-size: 0;
        min-width: 48px;
    }

    .graham-home-product-search button .graham-page-icon {
        height: 21px;
        width: 21px;
    }

    .graham-contact-strip {
        padding: 34px 0;
    }

    .graham-functional-banner,
    .graham-page-hero {
        padding: 42px 0;
    }

    .graham-cart-page .wp-site-blocks main,
    .graham-checkout-page .wp-site-blocks main,
    .graham-account-page .wp-site-blocks main,
    .graham-policy-page .wp-site-blocks main,
    .graham-cart-page main.wp-block-group,
    .graham-checkout-page main.wp-block-group,
    .graham-account-page main.wp-block-group,
    .graham-policy-page main.wp-block-group {
        padding: 28px 12px 54px !important;
    }

    .graham-page-design-active .wp-block-woocommerce-cart,
    .graham-page-design-active .wp-block-woocommerce-checkout {
        padding: 12px !important;
    }

    .graham-cart-page .wc-block-cart,
    .graham-cart-page .wc-block-cart-items,
    .graham-cart-page .wc-block-cart-items__row,
    .graham-cart-page .wc-block-cart-item__product,
    .graham-cart-page .wc-block-cart-item__wrap,
    .graham-cart-page .wc-block-components-product-name {
        max-width: 100%;
        min-width: 0;
    }

    .graham-cart-page .wc-block-components-product-name {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .graham-page-design-active .woocommerce-MyAccount-content,
    .graham-page-design-active .woocommerce-form-login,
    .graham-page-design-active .woocommerce-form-register {
        border-radius: 10px;
        padding: 16px;
    }

    .graham-account-page .woocommerce-MyAccount-navigation ul {
        border-radius: 10px;
        gap: 3px;
        padding: 5px;
    }

    .graham-account-page .woocommerce-MyAccount-navigation a {
        font-size: 0.86rem;
        line-height: 1.25;
        padding: 9px 8px;
        text-align: center;
    }

    .graham-account-page .woocommerce fieldset {
        margin: 18px 0;
        padding: 14px;
    }

    .graham-account-page .woocommerce .u-columns,
    .graham-account-page .woocommerce .woocommerce-Addresses {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-account-page .woocommerce .form-row-first,
    .graham-account-page .woocommerce .form-row-last {
        float: none !important;
        width: 100% !important;
    }

    .graham-account-page .woocommerce table.shop_table,
    .graham-account-page .woocommerce table.woocommerce-orders-table {
        display: block;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .graham-footer-bottom > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 14px;
        padding-top: 14px;
    }
}

/*
 * My Account uses several legacy WooCommerce tables and floated notice
 * buttons. On narrow phones those desktop rules leave only a few characters
 * per line. Convert the affected areas into readable stacked cards while
 * preserving WooCommerce's normal endpoints and links.
 */
@media (max-width: 700px) {
    .graham-account-page .woocommerce-MyAccount-content {
        min-width: 0;
        overflow: visible;
        overflow-wrap: break-word;
        padding: clamp(10px, 3vw, 14px);
        word-break: normal;
    }

    .graham-account-page .woocommerce-MyAccount-content > .woocommerce-info,
    .graham-account-page .woocommerce-MyAccount-content > .woocommerce-message,
    .graham-account-page .woocommerce-notices-wrapper .woocommerce-info,
    .graham-account-page .woocommerce-notices-wrapper .woocommerce-message {
        align-items: stretch;
        display: flex !important;
        flex-direction: column;
        min-width: 0;
        overflow-wrap: break-word;
        padding: 14px !important;
        word-break: normal;
    }

    .graham-account-page .woocommerce-MyAccount-content > .woocommerce-info::before,
    .graham-account-page .woocommerce-MyAccount-content > .woocommerce-message::before,
    .graham-account-page .woocommerce-notices-wrapper .woocommerce-info::before,
    .graham-account-page .woocommerce-notices-wrapper .woocommerce-message::before {
        display: none !important;
    }

    .graham-account-page .woocommerce-info .button,
    .graham-account-page .woocommerce-message .button {
        align-items: center;
        display: flex !important;
        float: none !important;
        justify-content: center;
        margin: 12px 0 0 !important;
        max-width: 100%;
        order: 2;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table {
        border: 0 !important;
        display: block;
        overflow: visible !important;
        width: 100%;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table thead {
        display: none !important;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table tbody,
    .graham-account-page .woocommerce table.woocommerce-orders-table tr {
        display: block;
        width: 100%;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table tr.woocommerce-orders-table__row {
        background: #fff;
        border: 1px solid var(--graham-page-line);
        border-radius: 9px;
        margin: 0 0 12px;
        overflow: hidden;
        padding: 8px 12px;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table td {
        align-items: start;
        border: 0 !important;
        border-bottom: 1px solid #e3ebf1 !important;
        display: grid !important;
        gap: 10px;
        grid-template-columns: minmax(78px, 0.8fr) minmax(0, 1.2fr);
        line-height: 1.4;
        overflow-wrap: break-word;
        padding: 9px 0 !important;
        text-align: left !important;
        word-break: normal;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table td::before {
        float: none !important;
        font-weight: 800;
        line-height: 1.4;
        margin: 0;
        text-align: left;
        width: auto;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table td:last-child {
        border-bottom: 0 !important;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
        display: block !important;
        padding-top: 12px !important;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before {
        display: none !important;
    }

    .graham-account-page .woocommerce table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button {
        display: flex;
        justify-content: center;
        margin: 0;
        width: 100%;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details {
        border: 0 !important;
        display: block;
        overflow: visible !important;
        width: 100%;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details thead {
        display: none !important;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tbody,
    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tfoot {
        display: block;
        width: 100%;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tr {
        display: block;
        width: 100%;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tbody tr.order_item {
        background: #fff;
        border: 1px solid var(--graham-page-line);
        border-radius: 9px;
        margin-bottom: 10px;
        padding: 12px;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tbody td {
        border: 0 !important;
        display: block;
        line-height: 1.45;
        overflow-wrap: break-word;
        padding: 0 !important;
        text-align: left !important;
        word-break: normal;
        width: 100%;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tbody td.product-total {
        color: var(--graham-page-blue-dark);
        font-weight: 800;
        margin-top: 8px;
        white-space: normal;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tfoot tr {
        background: #f7fafc;
        border: 1px solid var(--graham-page-line);
        border-radius: 8px;
        margin: 0 0 8px;
        padding: 10px 12px;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tfoot th,
    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tfoot td {
        border: 0 !important;
        display: block;
        line-height: 1.4;
        overflow-wrap: break-word;
        padding: 0 !important;
        text-align: left !important;
        word-break: normal;
        width: 100%;
    }

    .graham-account-page .woocommerce-order-details table.woocommerce-table--order-details tfoot td {
        margin-top: 3px;
    }

    .graham-account-page .woocommerce-customer-details .woocommerce-columns,
    .graham-account-page .woocommerce-customer-details .col2-set {
        display: grid !important;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .graham-account-page .woocommerce-customer-details .woocommerce-columns::before,
    .graham-account-page .woocommerce-customer-details .woocommerce-columns::after,
    .graham-account-page .woocommerce-customer-details .col2-set::before,
    .graham-account-page .woocommerce-customer-details .col2-set::after {
        content: none !important;
        display: none !important;
    }

    .graham-account-page .woocommerce-customer-details .woocommerce-column,
    .graham-account-page .woocommerce-customer-details .col-1,
    .graham-account-page .woocommerce-customer-details .col-2 {
        float: none !important;
        margin: 0 !important;
        min-width: 0;
        width: 100% !important;
    }

    .graham-account-page .woocommerce-customer-details address {
        line-height: 1.45;
        overflow-wrap: break-word;
        padding: 12px !important;
        word-break: normal;
    }
}

/* Customer document previous/next browsing. */
.graham-document-detail-toolbar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 18px;
}

.graham-document-detail-toolbar > p {
    margin: 0;
}

.graham-document-view-nav {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: min(100%, 320px);
}

.graham-document-view-nav-bottom {
    margin: 18px 0 0;
    width: 100%;
}

.graham-document-view-nav-slot {
    display: flex;
    min-width: 0;
}

.graham-document-view-nav-next {
    justify-content: flex-end;
}

.graham-document-nav-button {
    align-items: center;
    display: inline-flex !important;
    gap: 8px;
    justify-content: center;
    line-height: 1.15;
    min-height: 44px;
    min-width: 126px;
    text-align: center;
}

.graham-document-nav-button small {
    display: block;
    font-size: 0.72em;
    font-weight: 600;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .graham-document-detail-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .graham-document-view-nav {
        width: 100%;
    }

    .graham-document-nav-button {
        width: 100%;
    }
}

@media print {
    .graham-document-detail-toolbar,
    .graham-document-view-nav {
        display: none !important;
    }
}

/* 0.10.12: compact account navigation and aligned document controls. */
.graham-account-page .woocommerce-MyAccount-navigation ul {
    border-radius: 10px;
    padding: 4px !important;
}

.graham-account-page .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
}

.graham-account-page .woocommerce-MyAccount-navigation li + li {
    border-top: 1px solid #edf2f6;
}

.graham-account-page .woocommerce-MyAccount-navigation a {
    border-radius: 6px;
    font-size: 0.94rem;
    line-height: 1.2;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
}

.graham-document-detail-toolbar {
    margin-bottom: 10px;
}

.graham-document-action-bar {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-areas: "previous download next";
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 0 0 18px;
    width: 100%;
}

.graham-document-action-slot {
    align-items: stretch;
    display: flex;
    min-width: 0;
}

.graham-document-action-previous {
    grid-area: previous;
    justify-content: flex-start;
}

.graham-document-action-download {
    grid-area: download;
    justify-content: center;
}

.graham-document-action-next {
    grid-area: next;
    justify-content: flex-end;
}


.graham-document-nav-button,
.graham-document-pdf-button {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    flex-direction: column;
    font-weight: 700 !important;
    gap: 7px;
    justify-content: center;
    line-height: 1.15 !important;
    min-height: 0;
    min-width: 86px;
    padding: 2px 6px !important;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.graham-document-nav-button:hover,
.graham-document-nav-button:focus-visible,
.graham-document-pdf-button:hover,
.graham-document-pdf-button:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    opacity: 0.96;
    transform: translateY(-1px);
}

.graham-document-nav-button-blue,
.graham-document-pdf-button {
    color: var(--graham-text-color) !important;
}

.graham-document-control-circle {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 76px;
    justify-content: center;
    width: 76px;
    box-shadow: 0 6px 14px rgba(13, 54, 86, 0.18);
}

.graham-document-nav-button-blue .graham-document-control-circle {
    background: var(--graham-page-blue);
}

.graham-document-pdf-button .graham-document-control-circle {
    background: var(--graham-page-green);
    box-shadow: 0 6px 14px rgba(18, 131, 60, 0.2);
}

.graham-document-nav-button-blue:hover .graham-document-control-circle,
.graham-document-nav-button-blue:focus-visible .graham-document-control-circle {
    background: var(--graham-page-blue-dark);
}

.graham-document-pdf-button:hover .graham-document-control-circle,
.graham-document-pdf-button:focus-visible .graham-document-control-circle {
    background: var(--graham-page-green-dark);
}

.graham-document-nav-arrow {
    align-items: center;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    letter-spacing: -0.12em;
    line-height: 0.8;
    margin-left: -0.12em;
    transform: scaleX(1.18) scaleY(1.12);
}

.graham-document-nav-copy {
    color: var(--graham-text-color);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 0;
}

.graham-document-nav-copy small,
.graham-document-nav-button small {
    color: #6d7882;
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 2px;
    opacity: 1;
    overflow-wrap: anywhere;
}

.graham-document-pdf-icon {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 2.35rem;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    line-height: 1;
}

.graham-document-view-nav .graham-document-nav-button {
    min-height: 0;
}

@media (max-width: 900px) {
    .graham-account-page .woocommerce-MyAccount-navigation li + li {
        border-top: 0;
    }

    .graham-account-page .woocommerce-MyAccount-navigation ul {
        gap: 3px;
    }
}

@media (max-width: 650px) {
    .graham-document-action-bar {
        gap: 8px;
        grid-template-areas:
            "download download"
            "previous next";
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .graham-document-pdf-button,
    .graham-document-nav-button {
        width: 100%;
    }

    .graham-document-control-circle {
        height: 64px;
        width: 64px;
    }

    .graham-document-nav-arrow {
        font-size: 2.45rem;
        height: 36px;
    }

    .graham-document-pdf-icon {
        font-size: 2rem;
        height: 30px;
    }
}

@media print {
    .graham-document-action-bar {
        display: none !important;
    }
}

.graham-document-action-bar .graham-document-nav-button {
    min-width: 86px;
}

@media (max-width: 650px) {
    .graham-document-action-bar .graham-document-nav-button {
        min-width: 0;
    }
}

/* 0.10.14: compact functional pages, consistent secondary controls, price gate, and assisted ordering. */
.graham-functional-banner {
    padding: 34px 0;
}

.graham-functional-banner h1 {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    margin-bottom: 7px;
}

.graham-functional-banner span {
    font-size: 0.92rem;
    line-height: 1.45;
}

.graham-functional-banner-inner > p {
    font-size: 0.68rem;
    margin-bottom: 5px;
}

/* Account, cart and checkout are working screens, so use a more compact masthead. */
.graham-account-page .graham-functional-banner,
.graham-cart-page .graham-functional-banner,
.graham-checkout-page .graham-functional-banner {
    padding: 22px 0;
}

.graham-account-page .graham-functional-banner h1,
.graham-cart-page .graham-functional-banner h1,
.graham-checkout-page .graham-functional-banner h1 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.graham-account-page .graham-header-branding-inner,
.graham-cart-page .graham-header-branding-inner,
.graham-checkout-page .graham-header-branding-inner {
    min-height: 82px;
    padding-bottom: 8px;
    padding-top: 8px;
}

.graham-account-page .graham-header-logo-image,
.graham-cart-page .graham-header-logo-image,
.graham-checkout-page .graham-header-logo-image {
    max-height: 64px;
    width: clamp(210px, 17vw, 270px) !important;
}

/* Smaller, cleaner controls throughout working pages. Add to Cart remains deliberately prominent. */
.graham-page-design-active .woocommerce a.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.graham-page-design-active .woocommerce button.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.graham-page-design-active .woocommerce input.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.graham-page-design-active .wc-block-components-button:not(.wc-block-components-product-button__button),
.graham-page-design-active .graham-button:not(.graham-add-to-cart),
.graham-document-nav-button,
.graham-document-pdf-button {
    border-radius: 7px !important;
    font-size: 0.82rem !important;
    line-height: 1.15 !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
}

.graham-page-design-active .woocommerce .add_to_cart_button,
.graham-page-design-active .woocommerce .single_add_to_cart_button,
.graham-page-design-active .wc-block-components-product-button__button {
    min-height: 46px !important;
    padding: 11px 18px !important;
}

.graham-page-design-active .woocommerce p + .button,
.graham-page-design-active .woocommerce .button + .button,
.graham-page-design-active .woocommerce .button + p,
.graham-page-design-active .woocommerce .button + div,
.graham-page-design-active .woocommerce div + .button,
.graham-page-actions,
.graham-document-actions,
.graham-document-action-bar,
.graham-purchase-report-form {
    gap: max(5px, 0.45rem);
}

.graham-document-action-bar {
    gap: 8px;
}

.graham-document-action-bar .graham-document-nav-button,
.graham-document-action-bar .graham-document-pdf-button {
    min-width: 150px;
}

.graham-document-nav-arrow {
    font-size: 1.55rem !important;
    line-height: 0.85 !important;
}

.graham-documents-heading {
    margin-bottom: 14px;
    padding: 14px 16px;
}

.graham-documents-heading h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.graham-document-detail {
    padding: clamp(14px, 2vw, 22px);
}

/* Public price gate. */
.graham-login-to-view-price,
.graham-price-access-required {
    color: var(--graham-page-blue-dark) !important;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.graham-login-to-view-price:hover,
.graham-login-to-view-price:focus-visible {
    color: var(--graham-page-blue) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.graham-login-to-order {
    background: var(--graham-page-blue) !important;
    color: #fff !important;
}

.graham-login-to-order:hover,
.graham-login-to-order:focus-visible {
    background: var(--graham-page-blue-dark) !important;
    color: #fff !important;
}

/* Administrator assisted-order session banner. */
body.graham-impersonating-customer::after {
    border: 3px solid #e0442e;
    box-sizing: border-box;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 2147483000;
}

.graham-impersonation-banner {
    align-items: center;
    background: #17324a;
    border-bottom: 2px solid var(--graham-page-green);
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-wrap: nowrap;
    font-family: Arial, Helvetica, sans-serif;
    gap: 8px;
    height: 34px;
    justify-content: center;
    min-height: 34px;
    overflow: hidden;
    padding: 3px 12px;
    position: sticky;
    top: var(--graham-account-bar-offset, 0px);
    z-index: 999999;
}

.graham-impersonation-banner strong,
.graham-impersonation-banner span {
    line-height: 1.25;
}

.graham-impersonation-banner a {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 5px;
    box-sizing: border-box;
    color: #17324a;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    min-height: 24px;
    padding: 4px 8px;
    text-decoration: none;
}

.graham-impersonation-banner a:hover,
.graham-impersonation-banner a:focus-visible {
    background: #eef7ff;
    color: #064b88;
}

.graham-customer-sync-request-form {
    margin: 0;
}

.graham-impersonation-banner button.graham-customer-sync-request {
    background: var(--graham-page-green);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    min-height: 24px;
    padding: 4px 8px;
}

.graham-impersonation-banner button.graham-customer-sync-request:hover,
.graham-impersonation-banner button.graham-customer-sync-request:focus-visible {
    background: #168d3a;
}

.graham-impersonation-banner--staged {
    gap: 8px;
}

.graham-preview-summary {
    align-items: center;
    display: flex;
    gap: 7px;
    min-width: 0;
}

.graham-preview-summary > strong {
    font-size: 0.72rem;
    white-space: nowrap;
}

.graham-preview-message {
    font-size: 0.75rem;
    max-width: min(62vw, 760px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graham-impersonation-banner[data-graham-sync-state="syncing"] .graham-preview-message::before,
.graham-impersonation-banner[data-graham-sync-state="delayed"] .graham-preview-message::before,
.graham-impersonation-banner[data-graham-sync-state="complete"] .graham-preview-message::before,
.graham-impersonation-banner[data-graham-sync-state="status-error"] .graham-preview-message::before {
    background: #70d6ff;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 7px;
    margin-right: 6px;
    vertical-align: 1px;
    width: 7px;
}

.graham-impersonation-banner[data-graham-sync-state="syncing"] .graham-preview-message::before {
    animation: graham-sync-pulse 1.25s ease-in-out infinite;
}

.graham-impersonation-banner[data-graham-sync-state="complete"] .graham-preview-message::before {
    background: #57db78;
}

.graham-impersonation-banner[data-graham-sync-state="delayed"] .graham-preview-message::before,
.graham-impersonation-banner[data-graham-sync-state="status-error"] .graham-preview-message::before {
    background: #ffd166;
}

@keyframes graham-sync-pulse {
    0%, 100% { opacity: 0.42; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1); }
}

.graham-preview-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.graham-impersonation-banner--staged .graham-preview-actions > a,
.graham-impersonation-banner--staged button.graham-customer-sync-request,
.graham-impersonation-banner--active .graham-preview-actions > a {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    font-size: 0.75rem;
    height: 24px;
    justify-content: center;
    line-height: 1;
    min-height: 24px;
    padding: 4px 8px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .graham-functional-banner {
        padding: 22px 0;
    }

    .graham-functional-banner-inner {
        width: calc(100% - 32px);
    }

    .graham-account-page .graham-header-branding-inner,
    .graham-cart-page .graham-header-branding-inner,
    .graham-checkout-page .graham-header-branding-inner {
        min-height: 0;
    }

    .graham-impersonation-banner {
        gap: 5px;
        justify-content: space-between;
        padding: 3px 6px;
    }

    .graham-preview-summary > strong {
        display: none;
    }

    .graham-preview-message {
        font-size: 0.74rem;
        max-width: none;
    }

    .graham-impersonation-banner--staged .graham-preview-actions > a,
    .graham-impersonation-banner--staged button.graham-customer-sync-request,
    .graham-impersonation-banner--active .graham-preview-actions > a {
        min-height: 24px;
        padding: 4px 7px;
    }
}

.graham-page-design-active .woocommerce a.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.graham-page-design-active .woocommerce button.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.graham-page-design-active .woocommerce input.button:not(.add_to_cart_button):not(.single_add_to_cart_button) {
    margin-bottom: 5px !important;
    margin-right: 5px !important;
    margin-top: 5px !important;
}

.graham-document-action-bar .button,
.graham-document-actions .button,
.graham-document-view-nav .button,
.graham-account-page .woocommerce-orders-table__cell-order-actions .button {
    margin: 0 !important;
}

/* 0.10.15: full-screen invoice and quote viewer with in-place document navigation. */
html.graham-document-viewer-open,
body.graham-document-viewer-open {
    overflow: hidden !important;
}

.graham-document-viewer {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 999999;
}

.graham-document-viewer.is-open {
    display: block;
}

.graham-document-viewer-backdrop {
    background: rgba(7, 31, 52, 0.88);
    inset: 0;
    position: absolute;
}

.graham-document-viewer-panel {
    background: #eef3f7;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    inset: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 100%;
}

.graham-document-viewer-toolbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d8e2ea;
    box-shadow: 0 2px 8px rgba(16, 52, 80, 0.12);
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    justify-content: space-between;
    min-height: 58px;
    padding: 7px 14px 7px 18px;
    position: relative;
    z-index: 4;
}

.graham-document-viewer-title {
    color: var(--graham-page-blue-dark);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graham-document-viewer-tools {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.graham-document-viewer-download,
.graham-document-viewer-close,
.graham-document-viewer-nav {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    text-decoration: none !important;
}

.graham-document-viewer-download {
    background: var(--graham-page-green);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(18, 131, 60, 0.18);
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    height: 44px;
    line-height: 1;
    width: 48px;
}

.graham-document-viewer-download:hover,
.graham-document-viewer-download:focus-visible {
    background: var(--graham-page-green-dark);
    color: #fff !important;
}

.graham-document-viewer-close {
    background: #e9eef2;
    border-radius: 8px;
    color: #243b4d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    height: 44px;
    line-height: 1;
    padding: 0;
    width: 48px;
}

.graham-document-viewer-close:hover,
.graham-document-viewer-close:focus-visible {
    background: #dce5eb;
    color: #102f46;
}

.graham-document-viewer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 18px clamp(58px, 7vw, 94px) 28px;
    scroll-behavior: smooth;
}

.graham-document-viewer-body > .graham-document-detail {
    margin: 0 auto;
    max-width: 1320px;
    width: 100%;
}

.graham-document-viewer-nav {
    background: var(--graham-page-blue);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(7, 93, 168, 0.28);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3.15rem;
    font-weight: 900;
    height: 104px;
    line-height: 0.8;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-42%);
    width: 54px;
    z-index: 5;
}

.graham-document-viewer-nav:hover,
.graham-document-viewer-nav:focus-visible {
    background: var(--graham-page-blue-dark);
    color: #fff;
}

.graham-document-viewer-nav[hidden] {
    display: none !important;
}

.graham-document-viewer-prev {
    left: 10px;
}

.graham-document-viewer-next {
    right: 10px;
}

.graham-document-viewer-loading {
    background: #fff;
    border: 1px solid var(--graham-page-line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 52, 80, 0.16);
    color: var(--graham-page-blue-dark);
    font-weight: 800;
    left: 50%;
    padding: 14px 20px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
}

.graham-document-viewer-loading[hidden] {
    display: none !important;
}

.graham-document-viewer-body .graham-document-detail-toolbar,
.graham-document-viewer-body .graham-document-action-bar,
.graham-document-viewer-body .graham-document-view-nav-bottom {
    display: none !important;
}

@media (max-width: 720px) {
    .graham-document-viewer-toolbar {
        min-height: 54px;
        padding: 5px 8px 5px 12px;
    }

    .graham-document-viewer-download,
    .graham-document-viewer-close {
        height: 42px;
        width: 44px;
    }

    .graham-document-viewer-body {
        padding: 12px 44px 22px;
    }

    .graham-document-viewer-nav {
        border-radius: 10px;
        font-size: 2.45rem;
        height: 86px;
        width: 38px;
    }

    .graham-document-viewer-prev {
        left: 3px;
    }

    .graham-document-viewer-next {
        right: 3px;
    }
}

/* 0.10.50: padded cart totals for classic templates and WooCommerce blocks. */
body.woocommerce-cart .cart-collaterals {
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    box-sizing: border-box;
    float: none !important;
    margin-left: auto;
    max-width: 520px;
    min-width: 0;
    overflow: hidden;
    padding: 18px 20px;
    width: min(100%, 520px) !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
    margin: 0 0 12px;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
    box-sizing: border-box;
    table-layout: fixed;
    width: 100%;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 11px 9px;
    vertical-align: top;
    white-space: normal;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
    width: 42%;
}

body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    text-align: right;
    width: 58%;
}

body.woocommerce-cart .cart-collaterals .cart_totals ul,
body.woocommerce-cart .cart-collaterals .cart_totals li,
body.woocommerce-cart .cart-collaterals .cart_totals label,
body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-Price-amount {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout,
body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

body.woocommerce-cart .wc-block-cart__sidebar {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
    border: 1px solid var(--graham-page-line);
    border-radius: 12px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 8px 18px 14px;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

body.woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Defensive phone containment for the Graham storefront and WooCommerce UI. */
@media (max-width: 700px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    body .wp-site-blocks,
    body main,
    body .entry-content,
    body .woocommerce,
    body .woocommerce-page,
    body .graham-page,
    body .graham-page-container,
    body .wc-block-cart,
    body .wc-block-checkout,
    body .wc-block-components-sidebar-layout,
    body .wc-block-components-main,
    body .wc-block-components-sidebar {
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body .woocommerce :where(div, section, article, header, footer, form, fieldset, table, tbody, tr, th, td, ul, ol, li),
    body :where(.wc-block-cart, .wc-block-checkout) :where(div, section, article, form, fieldset, table, ul, ol, li) {
        box-sizing: border-box;
        min-width: 0;
    }

    body .woocommerce :where(h1, h2, h3, h4, p, a, span, strong, small, label, legend, th, td, dt, dd),
    body :where(.wc-block-cart, .wc-block-checkout) :where(h1, h2, h3, h4, p, a, span, strong, small, label, legend, th, td) {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    body .woocommerce :where(img, video, canvas, iframe),
    body :where(.wc-block-cart, .wc-block-checkout) :where(img, video, canvas, iframe) {
        height: auto;
        max-width: 100% !important;
    }

    body .woocommerce :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button),
    body :where(.wc-block-cart, .wc-block-checkout) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button) {
        box-sizing: border-box;
        max-width: 100%;
    }

    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart-collaterals .cart_totals {
        display: block;
        margin-left: 0;
        padding: 13px 12px;
        width: 100% !important;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
    body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
        padding: 9px 6px;
    }

    body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
        padding: 6px 12px 12px;
    }
}

@supports not (overflow: clip) {
    @media (max-width: 700px) {
        html,
        body {
            overflow-x: hidden;
        }
    }
}

@media (max-width: 460px) {
    .graham-document-viewer-title {
        font-size: 0.88rem;
    }

    .graham-document-viewer-body {
        padding-left: 37px;
        padding-right: 37px;
    }

    .graham-document-viewer-nav {
        background: rgba(7, 93, 168, 0.94);
        font-size: 2.1rem;
        height: 74px;
        width: 33px;
    }
}

@media print {
    .graham-document-viewer {
        display: none !important;
    }
}


/* Full-width document focus mode for invoice/quote detail pages. */
body.graham-document-focus-mode {
    background: #eef3f7 !important;
}

body.graham-document-focus-mode .graham-functional-banner,
body.graham-document-focus-mode .woocommerce-MyAccount-navigation,
body.graham-document-focus-mode .wp-block-post-title,
body.graham-document-focus-mode .entry-title,
body.graham-document-focus-mode .page-header,
body.graham-document-focus-mode .entry-header,
body.graham-document-focus-mode .graham-site-footer {
    display: none !important;
}

body.graham-document-focus-mode .woocommerce,
body.graham-document-focus-mode .woocommerce-account .woocommerce,
body.graham-document-focus-mode .woocommerce-MyAccount-content,
body.graham-document-focus-mode main,
body.graham-document-focus-mode .site-main,
body.graham-document-focus-mode .entry-content,
body.graham-document-focus-mode .wp-block-post-content,
body.graham-document-focus-mode .wp-site-blocks main {
    box-sizing: border-box;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: none !important;
    width: 100% !important;
}

/* Remove the normal My Account two-column grid while a document is open. */
body.graham-document-focus-mode .woocommerce,
body.graham-document-focus-mode.woocommerce-account .woocommerce,
body.graham-document-focus-mode .woocommerce-account .woocommerce {
    align-items: initial !important;
    display: block !important;
    grid-template-columns: 1fr !important;
}

body.graham-document-focus-mode main,
body.graham-document-focus-mode .site-main,
body.graham-document-focus-mode .entry-content,
body.graham-document-focus-mode .wp-block-post-content,
body.graham-document-focus-mode .wp-site-blocks main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.graham-document-focus-mode .woocommerce-MyAccount-content {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    padding: 16px 18px 42px !important;
    width: 100% !important;
}

body.graham-document-focus-mode .graham-document-detail {
    background: #fff;
    border: 1px solid #d4dfe7;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(31, 53, 70, 0.12);
    box-sizing: border-box;
    margin: 0 auto 24px;
    max-width: 1280px;
    min-height: 0;
    overflow: hidden;
    padding: 18px 24px 28px;
    width: calc(100% - 24px);
}

body.graham-document-focus-mode .graham-document-detail > * {
    max-width: 100%;
}

body.graham-document-focus-mode .graham-document-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.graham-document-focus-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--graham-page-line);
    display: flex;
    justify-content: space-between;
    margin: -2px 0 10px;
    min-height: 50px;
    padding: 0 0 10px;
}

.graham-document-focus-back {
    align-items: center;
    color: var(--graham-page-blue-dark);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 8px;
    text-decoration: none;
}

.graham-document-focus-back-arrow {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.graham-document-focus-close {
    align-items: center;
    background: #eef3f7;
    border: 1px solid #cad8e3;
    border-radius: 8px;
    color: #17324a;
    display: inline-flex;
    font-size: 1.75rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 40px;
}

.graham-document-focus-close:hover,
.graham-document-focus-close:focus-visible {
    background: #dfe9f1;
    color: #0a4f85;
}

body.graham-document-focus-mode .graham-document-action-bar {
    margin-top: 4px;
}

@media (max-width: 760px) {
    body.graham-document-focus-mode .woocommerce-MyAccount-content {
        padding: 8px 4px 24px !important;
    }

    body.graham-document-focus-mode .graham-document-detail {
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 10px;
        width: calc(100% - 8px);
    }

    .graham-document-focus-toolbar {
        min-height: 44px;
    }

    .graham-document-focus-close {
        height: 38px;
        width: 38px;
    }
}

/* 0.10.19: site-wide compact secondary buttons. Add to Cart stays prominent. */
.graham-page-design-active .woocommerce a.button:not(.add_to_cart_button):not(.single_add_to_cart_button):not(.ajax_add_to_cart),
.graham-page-design-active .woocommerce button.button:not(.add_to_cart_button):not(.single_add_to_cart_button):not(.ajax_add_to_cart),
.graham-page-design-active .woocommerce input.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.graham-page-design-active .wc-block-components-button:not(.wc-block-components-product-button__button),
.graham-page-design-active .graham-button:not(.graham-add-to-cart),
.graham-page-design-active a.graham-button:not(.graham-add-to-cart),
.graham-document-nav-button,
.graham-document-pdf-button {
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    line-height: 1.12 !important;
    min-height: 34px !important;
    padding: 5px 10px !important;
}

.graham-page-design-active .woocommerce a.button:not(.add_to_cart_button):not(.single_add_to_cart_button):not(.ajax_add_to_cart),
.graham-page-design-active .woocommerce button.button:not(.add_to_cart_button):not(.single_add_to_cart_button):not(.ajax_add_to_cart),
.graham-page-design-active .woocommerce input.button:not(.add_to_cart_button):not(.single_add_to_cart_button) {
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

.graham-page-design-active .woocommerce .add_to_cart_button,
.graham-page-design-active .woocommerce .single_add_to_cart_button,
.graham-page-design-active .woocommerce .ajax_add_to_cart,
.graham-page-design-active .wc-block-components-product-button__button {
    border-radius: 8px !important;
    font-size: 0.86rem !important;
    min-height: 46px !important;
    padding: 11px 18px !important;
}

.graham-document-action-bar,
.graham-document-detail-toolbar,
.graham-page-actions,
.graham-purchase-report-form,
.graham-account-page .woocommerce-orders-table__cell-order-actions {
    gap: 5px !important;
}

.graham-document-action-bar .graham-document-nav-button,
.graham-document-action-bar .graham-document-pdf-button {
    min-width: 138px;
}

.graham-document-nav-arrow {
    font-size: 1.45rem !important;
}

/* Price messaging. */
.graham-login-to-view-price,
.graham-price-access-required {
    font-size: 0.82rem !important;
}

.graham-large-order-price-note {
    color: #667b8b;
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 4px;
}


/* 0.10.22: solid document navigation icons based on the approved reference. */
.graham-document-action-bar .graham-document-nav-button,
.graham-document-action-bar .graham-document-pdf-button {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #344451 !important;
    min-width: 92px !important;
    padding: 3px 6px !important;
}

.graham-document-control-circle {
    background: #c8c9cc !important;
    box-shadow: none !important;
    height: 72px !important;
    transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
    width: 72px !important;
}

.graham-document-nav-button-blue:hover .graham-document-control-circle,
.graham-document-nav-button-blue:focus-visible .graham-document-control-circle {
    background: #31439b !important;
    box-shadow: 0 4px 10px rgba(49, 67, 155, 0.2) !important;
    transform: translateY(-1px);
}

.graham-document-pdf-button:hover .graham-document-control-circle,
.graham-document-pdf-button:focus-visible .graham-document-control-circle {
    background: #17883f !important;
    box-shadow: 0 4px 10px rgba(23, 136, 63, 0.2) !important;
    transform: translateY(-1px);
}

.graham-document-nav-arrow,
.graham-document-pdf-icon {
    color: transparent !important;
    font-size: 0 !important;
    height: 40px !important;
    line-height: 0 !important;
    margin: 0 !important;
    position: relative;
    transform: none !important;
    width: 40px !important;
}

.graham-document-nav-arrow::before,
.graham-document-pdf-icon::before {
    background: #fff;
    content: "";
    display: block;
    height: 40px;
    width: 40px;
}

/* Solid block arrow, matching the supplied reference. */
.graham-document-action-previous .graham-document-nav-arrow::before,
.graham-document-view-nav-previous .graham-document-nav-arrow::before {
    clip-path: polygon(0 50%, 43% 7%, 43% 29%, 100% 29%, 100% 71%, 43% 71%, 43% 93%);
}

.graham-document-action-next .graham-document-nav-arrow::before,
.graham-document-view-nav-next .graham-document-nav-arrow::before {
    clip-path: polygon(100% 50%, 57% 7%, 57% 29%, 0 29%, 0 71%, 57% 71%, 57% 93%);
}

.graham-document-pdf-icon::before {
    clip-path: polygon(29% 0, 71% 0, 71% 57%, 93% 57%, 50% 100%, 7% 57%, 29% 57%);
}

.graham-document-nav-copy {
    background: transparent !important;
    color: #344451 !important;
    font-size: 0.82rem !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
}

.graham-document-nav-copy small,
.graham-document-nav-button small {
    color: #7b858c !important;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

.graham-document-nav-button:hover .graham-document-nav-copy,
.graham-document-nav-button:focus-visible .graham-document-nav-copy,
.graham-document-pdf-button:hover .graham-document-nav-copy,
.graham-document-pdf-button:focus-visible .graham-document-nav-copy {
    color: #344451 !important;
}

@media (max-width: 650px) {
    .graham-document-control-circle {
        height: 62px !important;
        width: 62px !important;
    }

    .graham-document-nav-arrow,
    .graham-document-pdf-icon,
    .graham-document-nav-arrow::before,
    .graham-document-pdf-icon::before {
        height: 34px !important;
        width: 34px !important;
    }
}


/* 0.10.23: compact in-heading document controls based on the supplied reference. */
body.graham-document-focus-mode .graham-documents-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.graham-document-heading-side {
    align-items: flex-end;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
}

body.graham-document-focus-mode .graham-document-action-bar {
    align-items: flex-start;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    gap: 12px !important;
    grid-template-areas: none !important;
    grid-template-columns: none !important;
    justify-content: flex-end;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

body.graham-document-focus-mode .graham-document-action-slot {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    min-width: 0;
}

body.graham-document-focus-mode .graham-document-action-bar .graham-document-nav-button,
body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    flex-direction: column;
    gap: 4px !important;
    justify-content: flex-start;
    min-height: 0 !important;
    min-width: 54px !important;
    padding: 0 !important;
    width: 54px !important;
}

body.graham-document-focus-mode .graham-document-control-circle {
    background: #cfd2d5 !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 52px !important;
    margin: 0 !important;
    width: 52px !important;
}

body.graham-document-focus-mode .graham-document-nav-arrow,
body.graham-document-focus-mode .graham-document-pdf-icon,
body.graham-document-focus-mode .graham-document-nav-arrow::before,
body.graham-document-focus-mode .graham-document-pdf-icon::before {
    height: 29px !important;
    width: 29px !important;
}

body.graham-document-focus-mode .graham-document-nav-copy {
    background: transparent !important;
    color: #42505b !important;
    font-size: 0.66rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

body.graham-document-focus-mode .graham-document-action-bar .graham-document-nav-button:hover,
body.graham-document-focus-mode .graham-document-action-bar .graham-document-nav-button:focus-visible,
body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button:hover,
body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
}

body.graham-document-focus-mode .graham-document-action-bar .graham-document-nav-button:hover .graham-document-control-circle,
body.graham-document-focus-mode .graham-document-action-bar .graham-document-nav-button:focus-visible .graham-document-control-circle {
    background: #31439b !important;
}

body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button:hover .graham-document-control-circle,
body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button:focus-visible .graham-document-control-circle {
    background: #17883f !important;
}

body.graham-document-focus-mode .graham-document-actions {
    margin: 0;
    min-height: 0;
}

@media (max-width: 700px) {
    body.graham-document-focus-mode .graham-documents-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .graham-document-heading-side {
        align-items: flex-end;
        margin-left: auto;
    }

    body.graham-document-focus-mode .graham-document-action-bar {
        gap: 9px !important;
    }

    body.graham-document-focus-mode .graham-document-action-bar .graham-document-nav-button,
    body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button {
        min-width: 48px !important;
        width: 48px !important;
    }

    body.graham-document-focus-mode .graham-document-control-circle {
        height: 46px !important;
        width: 46px !important;
    }

    body.graham-document-focus-mode .graham-document-nav-arrow,
    body.graham-document-focus-mode .graham-document-pdf-icon,
    body.graham-document-focus-mode .graham-document-nav-arrow::before,
    body.graham-document-focus-mode .graham-document-pdf-icon::before {
        height: 25px !important;
        width: 25px !important;
    }

    body.graham-document-focus-mode .graham-document-nav-copy {
        font-size: 0.61rem !important;
    }

    /* The generated PDF is the readable invoice format on a phone. */
    body.graham-document-focus-mode .graham-document-detail.has-mobile-pdf > :not(.graham-document-detail-toolbar):not(.graham-documents-heading):not(script) {
        display: none !important;
    }

    body.graham-document-focus-mode .graham-document-detail {
        margin-left: 2px !important;
        margin-right: 2px !important;
        max-width: calc(100% - 4px) !important;
        padding: 2px !important;
    }

    body.graham-document-focus-mode .graham-documents-heading {
        align-items: stretch;
        flex-direction: column;
        margin: 0 !important;
        padding: 8px 2px 12px !important;
    }

    body.graham-document-focus-mode .graham-document-letterhead {
        align-items: flex-start;
        gap: 8px;
    }

    body.graham-document-focus-mode .graham-document-logo {
        flex-basis: 112px;
        min-height: 40px;
    }

    body.graham-document-focus-mode .graham-document-logo-image {
        max-height: 48px;
        max-width: 112px;
    }

    body.graham-document-focus-mode .graham-document-heading-side {
        align-items: stretch;
        margin: 4px 0 0;
        width: 100%;
    }

    body.graham-document-focus-mode .graham-document-action-bar {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
        width: 100% !important;
    }

    body.graham-document-focus-mode .graham-document-action-previous {
        grid-area: auto !important;
        grid-column: 1;
    }

    body.graham-document-focus-mode .graham-document-action-download {
        grid-area: auto !important;
        grid-column: 2;
        width: 100%;
    }

    body.graham-document-focus-mode .graham-document-action-next {
        grid-area: auto !important;
        grid-column: 3;
    }

    body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button {
        background: #075b9d !important;
        border-radius: 6px !important;
        color: #fff !important;
        flex-direction: row;
        gap: 8px !important;
        justify-content: center;
        min-height: 46px !important;
        width: 100% !important;
    }

    body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button .graham-document-control-circle {
        background: transparent !important;
        height: 24px !important;
        width: 24px !important;
    }

    body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button .graham-document-pdf-icon,
    body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button .graham-document-pdf-icon::before {
        height: 20px !important;
        width: 20px !important;
    }

    body.graham-document-focus-mode .graham-document-action-bar .graham-document-pdf-button .graham-document-nav-copy {
        color: #fff !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
    }
}


/* 0.10.29: customer favorites and reusable saved lists. */
.graham-product-save-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
    position: relative;
}

.graham-product-save-actions form {
    margin: 0;
}

.graham-save-link,
.graham-add-list-menu > summary.graham-save-link {
    align-items: center;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    color: #4a5f71 !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    gap: 4px;
    line-height: 1.15 !important;
    min-height: 0 !important;
    padding: 4px 5px !important;
    text-decoration: none !important;
}

.graham-save-link:hover,
.graham-save-link:focus-visible,
.graham-add-list-menu[open] > summary.graham-save-link {
    background: #f0f5f8 !important;
    color: var(--graham-page-blue, #1269a7) !important;
}

.graham-favorite-button.is-saved {
    color: #16853d !important;
}

.graham-add-list-menu {
    position: relative;
}

.graham-add-list-menu > summary {
    list-style: none;
}

.graham-add-list-menu > summary::-webkit-details-marker {
    display: none;
}

.graham-add-list-panel {
    background: #fff;
    border: 1px solid #d8e2e9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 45, 68, 0.14);
    left: 0;
    min-width: 220px;
    padding: 8px;
    position: absolute;
    top: calc(100% + 4px);
    z-index: 50;
}

.graham-add-list-panel form {
    align-items: center;
    display: flex;
    gap: 5px;
}

.graham-add-list-panel select {
    font-size: 0.82rem;
    min-width: 0;
    padding: 5px 7px;
    width: 145px;
}

.graham-add-list-panel .button {
    padding: 5px 8px !important;
}

.graham-create-list-link {
    display: block;
    font-size: 0.79rem;
    font-weight: 700;
    margin-top: 7px;
    text-decoration: none;
}

.graham-saved-lists-page {
    min-width: 0;
}

.graham-saved-lists-header {
    align-items: end;
    border-bottom: 1px solid #e2e9ee;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.graham-saved-lists-header h2,
.graham-saved-list-toolbar h3 {
    margin: 0;
}

.graham-eyebrow {
    color: #16853d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.graham-create-list-form {
    align-items: end;
    display: flex;
    gap: 6px;
    margin: 0;
}

.graham-create-list-form label {
    display: grid;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 3px;
}

.graham-create-list-form input,
.graham-saved-list-manage input {
    min-height: 34px;
    padding: 5px 8px;
}

.graham-saved-lists-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.graham-saved-list-tab {
    align-items: center;
    background: #f4f7f9;
    border: 1px solid #dce5eb;
    border-radius: 7px;
    color: #24435a;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 750;
    gap: 7px;
    padding: 6px 9px;
    text-decoration: none !important;
}

.graham-saved-list-tab small {
    background: #fff;
    border-radius: 999px;
    min-width: 20px;
    padding: 1px 5px;
    text-align: center;
}

.graham-saved-list-tab.is-active {
    background: var(--graham-page-blue, #1269a7);
    border-color: var(--graham-page-blue, #1269a7);
    color: #fff;
}

.graham-saved-list-tab.is-active small {
    color: #24435a;
}

.graham-saved-list-toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 12px;
}

.graham-saved-list-toolbar p {
    color: #6c7d89;
    font-size: 0.78rem;
    margin: 2px 0 0;
}

.graham-saved-list-manage,
.graham-saved-list-manage form,
.graham-saved-product-actions {
    align-items: center;
    display: flex;
    gap: 6px;
}

.graham-saved-list-manage form,
.graham-saved-product-actions form {
    margin: 0;
}

.graham-saved-products-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.graham-saved-product-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 9px;
}

.graham-saved-product-image {
    align-items: center;
    display: flex;
    height: 86px;
    justify-content: center;
}

.graham-saved-product-image img {
    height: 100% !important;
    max-height: 86px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    width: 100% !important;
}

.graham-saved-product-copy {
    min-width: 0;
}

.graham-saved-product-sku {
    color: #16853d;
    font-size: 0.7rem;
    font-weight: 800;
    margin: 0 0 2px;
}

.graham-saved-product-card h4 {
    font-size: 0.9rem;
    line-height: 1.25;
    margin: 0 0 4px;
}

.graham-saved-product-card h4 a {
    color: #183b54;
    text-decoration: none;
}

.graham-saved-product-price {
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.graham-saved-list-empty,
.graham-quoted-empty-state {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

@media (max-width: 720px) {
    .graham-saved-lists-header,
    .graham-saved-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .graham-create-list-form,
    .graham-saved-list-manage {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .graham-create-list-form label {
        flex: 1 1 180px;
    }

    .graham-saved-products-grid {
        grid-template-columns: 1fr;
    }

    .graham-saved-product-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
        padding: 7px;
    }

    .graham-saved-product-image {
        height: 72px;
    }

    .graham-saved-product-image img {
        max-height: 72px !important;
    }

    .graham-add-list-panel {
        left: auto;
        right: 0;
    }
}

/* 0.10.74: visible list picker, usual quantities, and one-click list ordering. */
.graham-add-list-panel {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    min-width: min(320px, calc(100vw - 32px));
    padding: 12px;
}

.graham-add-list-panel .graham-add-list-form {
    align-items: end;
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) 82px auto;
}

.graham-add-list-choice,
.graham-add-list-quantity {
    display: grid;
    font-size: 0.73rem;
    font-weight: 750;
    gap: 4px;
    min-width: 0;
}

.graham-add-list-panel select,
.graham-add-list-panel input[type="number"] {
    box-sizing: border-box;
    font-size: 0.82rem;
    min-height: 36px;
    min-width: 0;
    padding: 5px 7px;
    width: 100%;
}

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

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

.graham-saved-list-defaults {
    align-items: end;
    background: #f5f9fb;
    border: 1px solid #d9e5eb;
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr) minmax(220px, 1.3fr) auto;
    margin: 0 0 12px;
    padding: 12px;
}

.graham-saved-list-defaults-heading,
.graham-saved-list-defaults label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.graham-saved-list-defaults-heading small,
.graham-saved-list-order-form small {
    color: #607383;
    font-size: 0.76rem;
    line-height: 1.35;
}

.graham-saved-list-defaults label > span {
    font-size: 0.75rem;
    font-weight: 750;
}

.graham-saved-list-defaults input,
.graham-saved-list-defaults select {
    box-sizing: border-box;
    min-height: 38px;
    min-width: 0;
    width: 100%;
}

.graham-saved-list-order-form {
    align-items: center;
    background: #eef7f1;
    border: 1px solid #cfe5d6;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 10px 12px;
}

.graham-saved-list-order-form > div:first-child {
    display: grid;
    gap: 2px;
}

.graham-saved-list-order-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.graham-saved-product-card {
    grid-template-columns: 44px 92px minmax(0, 1fr);
    max-width: none;
    min-width: 0;
    width: 100%;
}

.graham-saved-product-card.has-no-product-image {
    grid-template-columns: 44px minmax(0, 1fr);
}

.graham-saved-product-check {
    align-items: center;
    align-self: stretch;
    background: #f4f8fa;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    font-size: 0.66rem;
    font-weight: 750;
    gap: 5px;
    justify-content: center;
    padding: 4px;
}

.graham-saved-product-check input {
    height: 18px;
    margin: 0;
    width: 18px;
}

.graham-saved-product-quantity {
    align-items: center;
    display: flex;
    font-size: 0.74rem;
    font-weight: 750;
    gap: 6px;
    margin: 0 0 8px;
}

.graham-saved-product-quantity input {
    box-sizing: border-box;
    min-height: 34px;
    padding: 4px 7px;
    width: 88px;
}

@media (max-width: 980px) {
    .graham-saved-list-defaults {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .graham-add-list-panel .graham-add-list-form,
    .graham-saved-list-defaults {
        grid-template-columns: 1fr;
    }

    .graham-add-list-panel .graham-add-list-form .button,
    .graham-saved-list-defaults .button,
    .graham-saved-list-order-buttons,
    .graham-saved-list-order-buttons .button {
        width: 100%;
    }

    .graham-saved-list-order-form {
        align-items: stretch;
        flex-direction: column;
    }

    .graham-saved-product-card {
        grid-template-columns: 38px 70px minmax(0, 1fr);
    }

    .graham-saved-product-card.has-no-product-image {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .graham-saved-product-image {
        height: 68px;
    }
}

/* 0.10.53: keep mobile cart totals inside the available column. */
@media (max-width: 700px) {
    body.woocommerce-cart .wc-block-cart,
    body.woocommerce-cart .wc-block-components-sidebar-layout,
    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
    body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart-collaterals .cart_totals,
    body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
        overflow: hidden;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-cart .wc-block-components-totals-item {
        align-items: start;
        box-sizing: border-box;
        display: grid !important;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    body.woocommerce-cart .wc-block-components-totals-item__label,
    body.woocommerce-cart .wc-block-components-totals-item__value {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    body.woocommerce-cart .wc-block-components-totals-item__value {
        justify-self: end;
        text-align: right;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        overflow: hidden;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* 0.10.94: make the complete My Account wrapper chain fill mobile screens. */
@media (max-width: 900px) {
    body.graham-account-page .wp-site-blocks,
    body.graham-account-page .site,
    body.graham-account-page #content,
    body.graham-account-page #primary,
    body.graham-account-page .site-content,
    body.graham-account-page .site-content > .col-full,
    body.graham-account-page .site-content > .container,
    body.graham-account-page .site-content > .wrap,
    body.graham-account-page .ast-container,
    body.graham-account-page .content-area,
    body.graham-account-page .site-main,
    body.graham-account-page main,
    body.graham-account-page main > article,
    body.graham-account-page main .wp-block-group,
    body.graham-account-page main .wp-block-group__inner-container,
    body.graham-account-page main .is-layout-constrained,
    body.graham-account-page main .wp-block-post,
    body.graham-account-page article.type-page,
    body.graham-account-page .entry-content,
    body.graham-account-page .wp-block-post-content {
        align-self: stretch !important;
        box-sizing: border-box !important;
        float: none !important;
        flex: 1 1 100% !important;
        inline-size: 100% !important;
        justify-self: stretch !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-inline-size: none !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.logged-in.graham-account-page .woocommerce {
        align-self: stretch !important;
        display: grid !important;
        float: none !important;
        grid-template-columns: minmax(0, 1fr) !important;
        inline-size: 100% !important;
        justify-self: stretch !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-inline-size: none !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-account-page .woocommerce-MyAccount-navigation,
    body.graham-account-page .woocommerce-MyAccount-content {
        align-self: stretch !important;
        float: none !important;
        grid-column: 1 / -1 !important;
        inline-size: 100% !important;
        justify-self: stretch !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-inline-size: none !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-account-page .woocommerce-MyAccount-navigation ul,
    body.graham-account-page .woocommerce-MyAccount-content > section,
    body.graham-account-page .woocommerce-MyAccount-content > div,
    body.graham-account-page .graham-view-as-company,
    body.graham-account-page .graham-product-links-account,
    body.graham-account-page .graham-saved-lists-page,
    body.graham-account-page .graham-team-access,
    body.graham-account-page .graham-documents {
        box-sizing: border-box !important;
        inline-size: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-inline-size: none !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* 0.10.96: keep signed-in My Account tiles within 5px of phone edges. */
@media (max-width: 700px) {
    body.logged-in.graham-account-page .woocommerce {
        box-sizing: border-box !important;
        inline-size: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-inline-size: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* 0.12.43: calmer saved-list workspace with compact optional controls. */
.graham-saved-lists-page{color:#183b54}
.graham-saved-lists-page .graham-saved-lists-header{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;padding:24px;background:#f5f9fc;border:1px solid #dce5eb;border-radius:14px;margin-bottom:22px}
.graham-saved-intro{color:#607383;font-size:14px;line-height:1.5;margin:8px 0 0}
.graham-saved-lists-page .graham-create-list-form{justify-content:flex-start;gap:12px;align-items:end;flex-wrap:wrap}
.graham-saved-lists-page .graham-create-list-form label{flex:1 1 220px;max-width:420px;font-size:13px;gap:6px}
.graham-saved-lists-page :is(input:not([type=checkbox]),select){border:1px solid #b8cbd8;background:#fff;border-radius:7px;padding:10px;min-height:44px;font-size:16px;max-width:100%;box-sizing:border-box}
.graham-saved-lists-page .button{border-radius:7px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;font-size:13px;line-height:1.4;font-weight:650;white-space:normal;text-align:center}
.graham-saved-lists-page .graham-saved-lists-tabs{flex-wrap:wrap;overflow:visible;gap:8px;margin-bottom:24px}
.graham-saved-lists-page .graham-saved-list-tab{padding:10px 14px;border-radius:22px;max-width:100%;overflow-wrap:anywhere}
.graham-saved-lists-page .graham-saved-list-toolbar{padding:0 0 16px;border-bottom:1px solid #e5edf2;margin-bottom:16px}
.graham-list-manage-panel summary,.graham-list-preferences summary{cursor:pointer;color:#075b9d;font-size:14px;font-weight:650;padding:12px 0}
.graham-list-manage-panel .graham-saved-list-manage{flex-wrap:wrap;padding:10px 0;gap:12px}.graham-saved-lists-page .graham-saved-list-manage form{flex-wrap:wrap}
.graham-list-preferences{border:1px solid #dce5eb;background:#fff;border-radius:10px;padding:0 16px;margin-bottom:20px}

/* 0.13.65: stable, understated My Account navigation without delayed JS changes. */
body.logged-in.graham-account-page .woocommerce {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) !important;
}

body.graham-account-page .woocommerce-MyAccount-navigation ul {
    background: #fff !important;
    border: 1px solid #d8e3ea !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(16, 52, 80, 0.05);
    display: block !important;
    overflow: hidden !important;
    padding: 6px !important;
}

/* 0.13.287: keep the checkout escape hatch close to, but quieter than, Place Order. */
body.graham-checkout-page .graham-checkout-place-order-actions {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
}

body.graham-checkout-page .graham-checkout-edit-cart-link {
    align-self: center;
    color: #075d9d;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 9px auto 0;
    padding: 1px 2px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    width: fit-content;
}

body.graham-checkout-page .graham-checkout-edit-cart-link:hover,
body.graham-checkout-page .graham-checkout-edit-cart-link:focus-visible {
    color: #0b4a76;
    outline: 2px solid rgba(7, 93, 157, 0.22);
    outline-offset: 3px;
}

body.graham-account-page .woocommerce-MyAccount-navigation li,
body.graham-account-page .woocommerce-MyAccount-navigation li + li {
    border: 0 !important;
    margin: 0 !important;
}

body.graham-account-page .woocommerce-MyAccount-navigation li + li {
    border-top: 1px solid #edf2f6 !important;
}

body.graham-account-page .woocommerce-MyAccount-navigation a {
    background: transparent;
    border-left: 3px solid transparent;
    border-radius: 5px;
    color: #284960;
    display: block !important;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.28;
    min-height: 0 !important;
    padding: 9px 10px !important;
    text-align: left !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.graham-account-page .woocommerce-MyAccount-navigation a:hover,
body.graham-account-page .woocommerce-MyAccount-navigation a:focus-visible {
    background: #f1f7fb;
    color: var(--graham-page-blue-dark);
}

body.graham-account-page .woocommerce-MyAccount-navigation a:focus-visible {
    outline: 2px solid var(--graham-page-blue);
    outline-offset: 1px;
}

body.graham-account-page .woocommerce-MyAccount-navigation .is-active a {
    background: #e8f3f9 !important;
    border-left-color: var(--graham-page-blue) !important;
    color: var(--graham-page-blue-dark) !important;
    font-weight: 700;
}

@media (max-width: 900px) {
    body.logged-in.graham-account-page .woocommerce {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.graham-account-page .woocommerce-MyAccount-navigation ul {
        display: grid !important;
        gap: 3px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.graham-account-page .woocommerce-MyAccount-navigation li + li {
        border-top: 0 !important;
    }

    body.graham-account-page .woocommerce-MyAccount-navigation a {
        height: 100%;
        padding: 9px 10px !important;
    }
}

@media (max-width: 420px) {
    body.graham-account-page .woocommerce-MyAccount-navigation ul {
        display: block !important;
    }

    body.graham-account-page .woocommerce-MyAccount-navigation li + li {
        border-top: 1px solid #edf2f6 !important;
    }
}
.graham-list-preferences summary small{font-weight:400;color:#607383;margin-left:8px}
.graham-saved-lists-page .graham-saved-list-defaults{grid-template-columns:repeat(2,minmax(0,1fr));background:transparent;border:0;padding:8px 0 16px;margin:0;gap:16px}
.graham-saved-lists-page .graham-saved-list-defaults-heading{grid-column:1/-1}
.graham-saved-lists-page .graham-saved-list-order-form{padding:18px;background:#f1f8f4;gap:18px;margin:0 0 20px;flex-wrap:wrap}
.graham-saved-lists-page .graham-saved-products-grid{grid-template-columns:1fr;gap:14px}
.graham-saved-lists-page .graham-saved-product-card{box-sizing:border-box;padding:18px;gap:18px;grid-template-columns:44px 100px minmax(0,1fr);border-radius:12px;box-shadow:0 3px 12px #183b5405}
.graham-saved-lists-page .graham-saved-product-card.has-no-product-image{grid-template-columns:44px minmax(0,1fr)}
.graham-saved-lists-page .graham-saved-product-card h4{font-size:16px;line-height:1.4;margin:5px 0 8px}
.graham-saved-lists-page .graham-saved-product-price{color:#075b9d;font-size:17px}
.graham-saved-lists-page .graham-saved-product-actions{flex-wrap:wrap;gap:10px}
.graham-saved-lists-page :is(button,a,input,select,summary):focus-visible{outline:2px solid #075b9d;outline-offset:3px}
@media(max-width:600px){.graham-saved-lists-page .graham-saved-lists-header{padding:16px}.graham-saved-lists-page .graham-saved-product-card{grid-template-columns:30px 65px minmax(0,1fr);padding:12px;gap:10px}.graham-saved-lists-page .graham-saved-product-card.has-no-product-image{grid-template-columns:30px minmax(0,1fr)}.graham-saved-lists-page .graham-saved-product-card h4{font-size:14px}.graham-saved-lists-page .graham-saved-list-defaults{grid-template-columns:1fr}.graham-list-preferences summary small{display:block;margin:4px 0 0}.graham-saved-lists-page .graham-saved-list-order-buttons{justify-content:stretch;flex-direction:column;width:100%}.graham-saved-lists-page .graham-saved-list-order-buttons .button{width:100%}}
.graham-saved-lists-page .button{background:#fff;border:1px solid #b8cbd8;color:#075b9d;box-shadow:none;text-decoration:none}
.graham-saved-lists-page .graham-create-list-form .button{background:#075b9d;border-color:#075b9d;color:#fff}
.graham-list-source-actions{align-items:end;display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.graham-create-list-from-cart{align-items:end;display:flex;flex-wrap:wrap;gap:8px;margin:0}.graham-create-list-from-cart label{display:grid;gap:4px;font-size:12px;font-weight:700}.graham-list-source-actions small{color:#60778a;flex-basis:100%}.graham-list-from-order{background:#fff!important}
.graham-saved-lists-page .graham-saved-list-order-buttons .button.alt{background:#19a653;border-color:#19a653;color:#fff}
.graham-saved-lists-page .button:hover{filter:brightness(.96)}

/* 0.13.237: stock-level ordering and customer recurring orders. */
.graham-stock-levels {
    border-top: 1px solid #e2eaf0;
    margin: 10px 0;
    padding-top: 8px;
}

.graham-stock-levels > summary {
    color: #075b9d;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 750;
    padding: 4px 0;
}

.graham-stock-level-fields {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(90px, 130px)) minmax(80px, auto);
    padding-top: 8px;
}

.graham-stock-level-fields label,
.graham-stock-order-quantity {
    display: grid;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 4px;
}

.graham-saved-lists-page .graham-stock-level-fields input {
    min-height: 36px;
    padding: 6px 8px;
}

.graham-stock-order-quantity strong {
    align-items: center;
    background: #eaf6ef;
    border: 1px solid #b9ddc8;
    border-radius: 6px;
    color: #0d7133;
    display: flex;
    font-size: 1rem;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
}

.graham-recurring-orders {
    background: #fff;
    border: 1px solid #d8e3ea;
    border-radius: 8px;
    margin-top: 22px;
    overflow: hidden;
}

.graham-recurring-orders > summary {
    align-items: center;
    background: #f8fbfd;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    min-height: 58px;
    padding: 12px 16px;
}

.graham-recurring-orders > summary::-webkit-details-marker {
    display: none;
}

.graham-recurring-orders > summary > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.graham-recurring-orders > summary small,
.graham-recurring-form-heading small,
.graham-recurring-card header small,
.graham-recurring-auto small,
.graham-recurring-flow small,
.graham-recurring-section-heading small,
.graham-recurring-actions-heading small,
.graham-recurring-settings > summary small {
    color: #607383;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.4;
}

.graham-recurring-count {
    align-items: center;
    background: #e9f3f8;
    border-radius: 999px;
    color: #075b9d;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    min-width: 28px;
}

.graham-recurring-body {
    border-top: 1px solid #e5edf2;
    padding: 16px;
}

.graham-recurring-intro {
    color: #4e6575;
    margin: 0 0 12px;
}

.graham-recurring-flow {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.graham-recurring-flow li {
    align-items: flex-start;
    background: #f7fafc;
    border: 1px solid #e1e9ee;
    border-radius: 6px;
    display: flex;
    gap: 9px;
    min-width: 0;
    padding: 10px;
}

.graham-recurring-flow li > span {
    align-items: center;
    background: #075b9d;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 0.75rem;
    font-weight: 800;
    height: 24px;
    justify-content: center;
}

.graham-recurring-flow li:nth-child(2) > span {
    background: #16834a;
}

.graham-recurring-flow li:nth-child(3) > span {
    background: #9a6500;
}

.graham-recurring-flow li > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.graham-recurring-flow strong {
    color: #15344c;
    font-size: 0.82rem;
    line-height: 1.25;
}

.graham-recurring-warning {
    background: #fff7e6;
    border-left: 4px solid #d78a00;
    color: #684500;
    margin: 10px 0;
    padding: 10px 12px;
}

.graham-recurring-create,
.graham-recurring-edit {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.graham-recurring-create {
    background: #f7fafc;
    border: 1px solid #dce6ec;
    border-radius: 8px;
    padding: 14px;
}

.graham-recurring-form-heading,
.graham-recurring-auto {
    grid-column: 1 / -1;
}

.graham-recurring-form-heading,
.graham-recurring-section-heading,
.graham-recurring-actions-heading {
    display: grid;
    gap: 2px;
}

.graham-recurring-kicker {
    color: #14823f;
    font-size: 0.68rem;
    font-weight: 850;
}

.graham-recurring-section-heading {
    border-top: 1px solid #e4ebf0;
    margin-top: 18px;
    padding-top: 16px;
}

.graham-recurring-create > label:not(.graham-recurring-auto),
.graham-recurring-edit > label:not(.graham-recurring-auto) {
    display: grid;
    font-size: 0.75rem;
    font-weight: 750;
    gap: 4px;
    min-width: 0;
}

.graham-recurring-create input[type="date"],
.graham-recurring-create input[type="number"],
.graham-recurring-create input[type="email"],
.graham-recurring-edit input[type="date"],
.graham-recurring-edit input[type="number"],
.graham-recurring-edit input[type="email"] {
    border: 1px solid #b9cbd7;
    border-radius: 5px;
    min-height: 40px;
    padding: 7px 9px;
    width: 100%;
}

.graham-recurring-field-label {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    justify-content: flex-start;
    min-width: 0;
}

.graham-recurring-inline {
    align-items: center;
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(60px, 90px) auto;
}

.graham-recurring-inline em {
    color: #526a7b;
    font-size: 0.78rem;
    font-style: normal;
}

.graham-recurring-auto {
    align-items: start;
    background: #eef7f1;
    border-radius: 7px;
    display: flex;
    gap: 9px;
    padding: 10px;
}

.graham-recurring-auto input {
    height: 18px;
    margin: 2px 0 0;
    width: 18px;
}

.graham-recurring-auto span {
    display: grid;
    gap: 2px;
}

.graham-recurring-auto .graham-recurring-field-label {
    display: inline-flex;
    justify-self: start;
}

.graham-recurring-help {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
}

.graham-recurring-help-button {
    align-items: center;
    background: #fff;
    border: 1px solid #0b66ad;
    border-radius: 50%;
    color: #0b66ad;
    cursor: help;
    display: inline-flex;
    font-size: 0.65rem;
    font-weight: 850;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-height: 18px;
    padding: 0;
    width: 18px;
}

.graham-recurring-help-button:hover,
.graham-recurring-help-button:focus-visible {
    background: #0b66ad;
    color: #fff;
    outline: 2px solid rgba(11, 102, 173, 0.2);
    outline-offset: 2px;
}

.graham-recurring-help-text {
    background: #15344c;
    border-radius: 4px;
    bottom: calc(100% + 7px);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 550;
    left: 0;
    line-height: 1.4;
    opacity: 0;
    padding: 8px 9px;
    pointer-events: none;
    position: absolute;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    visibility: hidden;
    white-space: normal;
    width: min(250px, calc(100vw - 32px));
    z-index: 40;
}

.graham-recurring-help:hover .graham-recurring-help-text,
.graham-recurring-help:focus-within .graham-recurring-help-text {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.graham-recurring-create > label:nth-of-type(n+3) .graham-recurring-help-text,
.graham-recurring-edit > label:nth-of-type(n+3) .graham-recurring-help-text {
    left: auto;
    right: 0;
}

.graham-recurring-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.graham-recurring-card {
    border: 1px solid #dce5eb;
    border-radius: 8px;
    padding: 14px;
}

.graham-recurring-card.is-selected {
    border-color: #168bc0;
    box-shadow: 0 0 0 2px rgba(22, 139, 192, 0.12);
}

.graham-recurring-card > header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.graham-recurring-card > header > div {
    display: grid;
    gap: 2px;
}

.graham-recurring-badges {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    justify-content: flex-end;
}

.graham-recurring-mode {
    background: #e8f2f8;
    border-radius: 999px;
    color: #075b9d;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 8px;
}

.graham-recurring-status {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 8px;
}

.graham-recurring-status.is-active {
    background: #e5f6eb;
    color: #0c7535;
}

.graham-recurring-status.is-paused {
    background: #edf1f4;
    color: #61717e;
}

.graham-recurring-settings {
    border-bottom: 1px solid #e5edf2;
    border-top: 1px solid #e5edf2;
    margin: 0;
    padding: 0;
}

.graham-recurring-settings > summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 1px 12px;
    grid-template-columns: 1fr auto;
    list-style: none;
    padding: 10px 2px;
}

.graham-recurring-settings > summary::-webkit-details-marker {
    display: none;
}

.graham-recurring-settings > summary::after {
    color: #075b9d;
    content: "+";
    font-size: 1.2rem;
    font-weight: 800;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.graham-recurring-settings[open] > summary::after {
    content: "−";
}

.graham-recurring-settings > summary span {
    color: #075b9d;
    font-size: 0.8rem;
    font-weight: 800;
}

.graham-recurring-settings > summary small {
    grid-column: 1;
}

.graham-recurring-edit {
    padding: 12px 0 14px;
}

.graham-recurring-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    padding-top: 12px;
}

.graham-recurring-actions-heading {
    flex: 1 0 100%;
    margin-bottom: 2px;
}

.graham-recurring-actions form {
    margin: 0;
}

.graham-recurring-orders .button.graham-recurring-button {
    align-items: center;
    border-radius: 5px !important;
    box-shadow: 0 1px 2px rgba(16, 45, 67, 0.16);
    display: inline-flex;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px !important;
}

.graham-recurring-orders .graham-recurring-button.is-create,
.graham-recurring-orders .graham-recurring-button.is-review,
.graham-recurring-orders .graham-recurring-button.is-resume {
    background: #148f3d !important;
    border-color: #148f3d !important;
    color: #fff !important;
}

.graham-recurring-orders .graham-recurring-button.is-save {
    background: #0b66ad !important;
    border-color: #0b66ad !important;
    color: #fff !important;
}

.graham-recurring-orders .graham-recurring-button.is-skip {
    background: #b86a00 !important;
    border-color: #b86a00 !important;
    color: #fff !important;
}

.graham-recurring-orders .graham-recurring-button.is-pause {
    background: #536574 !important;
    border-color: #536574 !important;
    color: #fff !important;
}

.graham-recurring-orders .graham-recurring-button.is-delete {
    background: #b7352f !important;
    border-color: #b7352f !important;
    color: #fff !important;
}

.graham-recurring-orders .graham-recurring-button:hover,
.graham-recurring-orders .graham-recurring-button:focus-visible {
    filter: brightness(0.94);
    outline: 2px solid rgba(7, 91, 157, 0.18);
    outline-offset: 2px;
}

.graham-recurring-last-order {
    font-size: 0.8rem;
    margin: 10px 0 0;
}

@media (max-width: 980px) {
    .graham-recurring-create,
    .graham-recurring-edit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-recurring-flow {
        grid-template-columns: 1fr;
    }

    .graham-recurring-create > label:nth-of-type(odd) .graham-recurring-help-text,
    .graham-recurring-edit > label:nth-of-type(odd) .graham-recurring-help-text,
    .graham-recurring-auto .graham-recurring-help-text {
        left: 0;
        right: auto;
    }

    .graham-recurring-create > label:nth-of-type(even) .graham-recurring-help-text,
    .graham-recurring-edit > label:nth-of-type(even) .graham-recurring-help-text {
        left: auto;
        right: 0;
    }
}

@media (max-width: 600px) {
    .graham-stock-level-fields,
    .graham-recurring-create,
    .graham-recurring-edit {
        grid-template-columns: 1fr;
    }

    .graham-recurring-form-heading,
    .graham-recurring-auto {
        grid-column: auto;
    }

    .graham-recurring-body,
    .graham-recurring-card,
    .graham-recurring-create {
        padding: 10px;
    }

    .graham-recurring-orders > summary {
        padding: 10px 12px;
    }

    .graham-recurring-card > header {
        align-items: flex-start;
        gap: 8px;
    }

    .graham-recurring-badges {
        justify-content: flex-end;
    }

    .graham-recurring-create > label .graham-recurring-help-text,
    .graham-recurring-edit > label .graham-recurring-help-text,
    .graham-recurring-auto .graham-recurring-help-text {
        left: 0;
        right: auto;
    }

    .graham-recurring-actions,
    .graham-recurring-actions form,
    .graham-recurring-actions .button,
    .graham-recurring-create > .button,
    .graham-recurring-edit > .button {
        width: 100%;
    }
}

/* 0.13.51: retain the polished sign-in CTA on product loops outside the shop archive. */
body.graham-page-design-active .woocommerce a.button.graham-login-to-order,
.graham-home-product-loop a.button.graham-login-to-order,
.graham-price-gated-order a.button.graham-login-to-order {
    align-items: center !important;
    background: var(--graham-page-blue, #075da8) !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: #fff !important;
    display: flex !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    margin: 8px 0 5px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    text-align: center !important;
    text-decoration: none !important;
    width: 100% !important;
}

body.graham-page-design-active .woocommerce a.button.graham-login-to-order:hover,
body.graham-page-design-active .woocommerce a.button.graham-login-to-order:focus-visible,
.graham-home-product-loop a.button.graham-login-to-order:hover,
.graham-home-product-loop a.button.graham-login-to-order:focus-visible,
.graham-price-gated-order a.button.graham-login-to-order:hover,
.graham-price-gated-order a.button.graham-login-to-order:focus-visible {
    background: var(--graham-page-blue-dark, #064677) !important;
    color: #fff !important;
    text-decoration: none !important;
}

body.graham-page-design-active .woocommerce a.button.graham-login-to-order:focus-visible,
.graham-home-product-loop a.button.graham-login-to-order:focus-visible,
.graham-price-gated-order a.button.graham-login-to-order:focus-visible {
    outline: 3px solid #8fd5ff !important;
    outline-offset: 2px;
}

/* 0.13.83: grouped account navigation with a compact mobile accordion. */
body.graham-account-page .woocommerce-MyAccount-navigation.graham-account-nav-enhanced {
    background: #fff;
    border: 1px solid #d8e3ea;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(16, 52, 80, 0.05);
    overflow: hidden;
}

body.graham-account-page .graham-account-nav-mobile-toggle {
    display: none;
}

body.graham-account-page .graham-account-nav-group {
    border-bottom: 1px solid #e5edf2;
}

body.graham-account-page .graham-account-nav-group > summary {
    align-items: center;
    color: #123c59;
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1.1;
    list-style: none;
    min-height: 34px;
    padding: 7px 12px;
    white-space: nowrap;
}

body.graham-account-page .graham-account-nav-group > summary::-webkit-details-marker {
    display: none;
}

body.graham-account-page .graham-account-nav-group > summary::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: '';
    height: 7px;
    margin-left: 12px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
    width: 7px;
}

body.graham-account-page .graham-account-nav-group[open] > summary {
    background: #f5f9fc;
}

body.graham-account-page .graham-account-nav-group[open] > summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

body.graham-account-page .graham-account-nav-enhanced :is(.graham-account-nav-links, .graham-account-nav-logout) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 8px 7px !important;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-links li + li,
body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-logout li + li {
    border-top: 1px solid #edf2f6 !important;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-links a,
body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-logout a {
    border-left: 3px solid transparent;
    border-radius: 5px;
    color: #36566c;
    display: block !important;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.3;
    padding: 8px 9px 8px 15px !important;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-links .is-active a {
    background: #e8f3f9 !important;
    border-left-color: #0872b8 !important;
    color: #073d65 !important;
    font-weight: 600;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-subgroup {
    border-top: 1px solid #e5edf2;
    margin: 0 8px;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-subgroup > summary {
    color: #173f5d;
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 700;
    list-style: none;
    line-height: 1.1;
    padding: 7px 7px 6px 12px;
    white-space: nowrap;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-subgroup > summary::-webkit-details-marker {
    display: none;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-subgroup > summary::after {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: '';
    display: inline-block;
    height: 5px;
    margin: 0 0 3px 8px;
    transform: rotate(45deg);
    width: 5px;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-subgroup[open] > summary::after {
    transform: rotate(225deg) translate(-1px, -1px);
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-links--nested {
    padding: 0 0 5px 7px !important;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-logout {
    padding-bottom: 6px !important;
    padding-top: 6px !important;
}

body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-logout a {
    color: #6a3c3c;
}

body.graham-account-page .graham-account-nav-group > summary:focus-visible,
body.graham-account-page .graham-account-nav-mobile-toggle:focus-visible {
    outline: 2px solid #0872b8;
    outline-offset: -3px;
}

/* 0.13.85: customer-curated purchased items by synchronized ship-to location. */
.graham-location-items-page{color:#183b54}.graham-location-items-page *{box-sizing:border-box}
.graham-location-items-header{background:#f4f9fc;border:1px solid #d7e5ed;border-radius:8px;margin-bottom:18px;padding:20px}.graham-location-items-header h2{font-size:1.65rem;margin:3px 0 7px}.graham-location-items-header p:last-child{color:#577083;margin:0;max-width:760px}
.graham-location-items-tabs{display:flex;gap:7px;margin:0 0 18px;overflow-x:auto;padding:2px}.graham-location-items-tab{background:#fff;border:1px solid #c8d8e2;border-radius:6px;color:#174a6b;flex:0 0 auto;font-size:.86rem;font-weight:650;padding:9px 12px;text-decoration:none}.graham-location-items-tab.is-active{background:#0868a8;border-color:#0868a8;color:#fff}
.graham-location-items-location{align-items:end;background:#f7fafc;border:1px solid #d8e4eb;border-radius:7px;display:flex;margin:0 0 16px;max-width:560px;padding:10px}.graham-location-items-location label{display:grid;gap:4px;width:100%}.graham-location-items-location label>span{color:#536d80;font-size:.7rem;font-weight:750;text-transform:uppercase}.graham-location-items-location select{background:#fff;border:1px solid #b8cad6;border-radius:5px;font-size:.86rem;min-height:40px;padding:7px 32px 7px 9px;width:100%}
.graham-location-items-toolbar{align-items:end;border-bottom:1px solid #dce6ec;display:flex;gap:16px;justify-content:space-between;margin-bottom:14px;padding:0 0 14px}.graham-location-items-toolbar h3{font-size:1.25rem;margin:2px 0 3px}.graham-location-items-toolbar p{margin:0}.graham-location-items-toolbar>div>p:last-child{color:#607383;font-size:.84rem}
.graham-location-items-page .button{align-items:center;border-radius:6px;display:inline-flex;font-size:.82rem;font-weight:700;justify-content:center;line-height:1.2;min-height:38px;padding:8px 12px;text-decoration:none}.graham-location-items-page .button.alt{background:#19a653;border-color:#19a653;color:#fff}
.graham-location-items-add{background:#fff;border:1px solid #d7e3ea;border-radius:8px;margin-bottom:16px;padding:0 14px}.graham-location-items-add>summary{color:#075b9d;cursor:pointer;font-size:.9rem;font-weight:700;padding:13px 0}.graham-location-items-add>form{border-top:1px solid #e7eef2;padding:14px 0}.graham-location-items-add label{display:block;font-size:.78rem;font-weight:700;margin-bottom:5px}.graham-location-items-add form>div{display:flex;gap:8px}.graham-location-items-add input[type=search]{border:1px solid #b8cad6;border-radius:6px;font-size:16px;min-height:40px;padding:8px 10px;width:min(460px,100%)}
.graham-location-item-results{border-top:1px solid #e7eef2;padding:4px 0 12px}.graham-location-item-results article{align-items:center;border-bottom:1px solid #edf2f5;display:flex;gap:12px;justify-content:space-between;padding:10px 0}.graham-location-item-results article>div{display:grid;gap:2px;min-width:0}.graham-location-item-results small{color:#607383}.graham-location-item-added{color:#168044;font-size:.78rem;font-weight:700}
.graham-location-items-filters{align-items:end;background:#f7fafc;border:1px solid #d8e4eb;border-radius:7px;display:grid;gap:8px;grid-template-columns:minmax(170px,1.2fr) repeat(3,minmax(125px,1fr)) auto auto;margin:0 0 12px;padding:10px}.graham-location-items-filters label{display:grid;gap:4px}.graham-location-items-filters label>span{color:#536d80;font-size:.7rem;font-weight:750;text-transform:uppercase}.graham-location-items-filters input[type=search],.graham-location-items-filters select{border:1px solid #b8cad6;border-radius:5px;font-size:.82rem;min-height:38px;padding:6px 8px;width:100%}.graham-location-items-filters select{padding-right:28px}.graham-location-items-result-count{color:#587082;font-size:.78rem;padding:0 4px 10px;white-space:nowrap}
.graham-location-items-orderbar{align-items:center;background:#eff8f3;border-radius:7px;display:flex;gap:12px;justify-content:space-between;margin-bottom:12px;padding:10px 12px}.graham-location-items-orderbar>div{align-items:center;display:flex;gap:10px}.graham-location-items-orderbar span{font-size:.84rem}.graham-location-items-selection{display:flex;gap:5px}.graham-location-items-selection .button{background:#fff;min-height:30px;padding:5px 8px}
.graham-location-items-grid{display:grid;gap:10px}.graham-location-item-card{align-items:center;background:#fff;border:1px solid #d8e3ea;border-radius:8px;display:grid;gap:12px;grid-template-columns:28px 72px minmax(0,1fr) 76px auto;padding:11px}.graham-location-item-check{align-items:center;display:flex;justify-content:center}.graham-location-item-check input{height:18px;margin:0;width:18px}.graham-location-item-image{align-items:center;aspect-ratio:1;display:flex;justify-content:center}.graham-location-item-image img{height:100%;object-fit:contain;width:100%}.graham-location-item-copy{min-width:0}.graham-location-item-meta{align-items:center;display:flex;flex-wrap:wrap;gap:6px}.graham-location-item-copy small{color:#63798a;font-size:.72rem}.graham-location-item-group{border-radius:999px;color:#17425e;font-size:.66rem;font-weight:750;line-height:1;padding:5px 7px}.graham-location-item-group--0{background:#dceef9}.graham-location-item-group--1{background:#daf2df;color:#176036}.graham-location-item-group--2{background:#fff0c7;color:#6b4d00}.graham-location-item-group--3{background:#eee4f8;color:#563b72}.graham-location-item-group--4{background:#f9dfdf;color:#7b3030}.graham-location-item-group--5{background:#dfe9e8;color:#315854}.graham-location-item-copy h4{font-size:.9rem;line-height:1.3;margin:4px 0}.graham-location-item-copy h4 a{color:#123e5d;text-decoration:none}.graham-location-item-purchased{color:#617687;font-size:.72rem;margin:0 0 3px}.graham-location-item-price{color:#075b9d;font-size:.88rem;font-weight:700}.graham-location-item-quantity{display:grid;font-size:.72rem;font-weight:700;gap:3px}.graham-location-item-quantity input{border:1px solid #b8cad6;border-radius:5px;font-size:16px;min-height:38px;padding:6px;width:72px}.graham-location-item-actions form{margin:0}.graham-location-item-actions .button{background:#fff;border-color:#d4a6a6;color:#8d3030}
.graham-location-items-pages{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:16px 0}.graham-location-items-pages a{align-items:center;border:1px solid #c7d7e1;border-radius:5px;color:#075b9d;display:flex;font-size:.82rem;font-weight:700;height:34px;justify-content:center;text-decoration:none;width:34px}.graham-location-items-pages a.is-current{background:#075b9d;border-color:#075b9d;color:#fff}
.graham-location-items-empty{background:#f7f9fa;border-left:4px solid #2eae61;border-radius:5px;padding:16px 18px}.graham-location-items-empty p{color:#607383;margin:5px 0 0}
@media(max-width:700px){.graham-location-items-header{padding:15px}.graham-location-items-header h2{font-size:1.35rem}.graham-location-items-toolbar{align-items:flex-start;flex-direction:column}.graham-location-items-filters{grid-template-columns:1fr 1fr}.graham-location-items-filters .graham-location-items-list-search,.graham-location-items-filters label:last-of-type{grid-column:1 / -1}.graham-location-items-result-count{padding-bottom:8px}.graham-location-items-orderbar{align-items:stretch;flex-direction:column}.graham-location-items-orderbar>div{align-items:flex-start;flex-direction:column;gap:6px}.graham-location-items-orderbar>.button{width:100%}.graham-location-item-card{align-items:start;gap:8px;grid-template-columns:24px 58px minmax(0,1fr);padding:9px}.graham-location-item-quantity{grid-column:2}.graham-location-item-actions{grid-column:3;justify-self:end}.graham-location-item-actions .button{min-height:34px;padding:7px 10px}.graham-location-items-add form>div{align-items:stretch;flex-direction:column}.graham-location-items-add input[type=search]{width:100%}.graham-location-item-results article{align-items:flex-start}.graham-location-items-tabs{margin-left:-2px;margin-right:-2px}}

/* 0.13.121: use the full phone width for My Items and keep its location picker compact. */
@media(max-width:700px){body.graham-my-items-page main.wp-block-group{padding-left:5px!important;padding-right:5px!important}body.graham-my-items-page .entry-content,body.graham-my-items-page .wp-block-post-content{padding-left:5px!important;padding-right:5px!important}body.graham-my-items-page .woocommerce-MyAccount-content,body.graham-account-page .woocommerce-MyAccount-content:has(.graham-location-items-page){float:none!important;grid-column:1/-1!important;inline-size:100%!important;margin:0!important;max-width:none!important;padding:5px!important;width:100%!important}body.graham-my-items-page .graham-location-items-page,body.graham-my-items-page .graham-location-items-grid,body.graham-my-items-page .graham-location-item-card,body.graham-account-page .woocommerce-MyAccount-content:has(.graham-location-items-page) .graham-location-items-page,body.graham-account-page .woocommerce-MyAccount-content:has(.graham-location-items-page) .graham-location-items-grid,body.graham-account-page .woocommerce-MyAccount-content:has(.graham-location-items-page) .graham-location-item-card{box-sizing:border-box;max-width:none!important;width:100%!important}.graham-location-items-location{max-width:none;padding:8px;width:100%}.graham-location-items-location select{min-height:38px}.graham-location-item-card{grid-template-columns:22px 64px minmax(0,1fr);padding:8px}.graham-location-item-quantity input{width:64px}.graham-location-items-header{padding:12px}.graham-location-items-filters{gap:6px;padding:8px}}

/* 0.13.371: consistent quantities and compact row actions across account tools. */
.graham-location-item-card {
    align-items: end;
}

.graham-location-item-copy,
.graham-location-item-check,
.graham-location-item-image {
    align-self: center;
}

.graham-location-item-quantity {
    align-self: end;
    margin: 0;
}

.graham-location-item-quantity input {
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    width: 72px;
}

.graham-location-item-actions {
    align-items: center;
    align-self: end;
    display: flex;
    height: 38px;
    justify-content: center;
}

.graham-saved-lists-page :is(.graham-saved-product-quantity, .graham-saved-product-uom) {
    align-self: end;
}

.graham-saved-lists-page :is(.graham-saved-product-quantity input, .graham-saved-product-uom select, .graham-saved-product-par-order input, .graham-saved-product-par-readonly strong) {
    height: 38px;
    min-height: 38px;
}

@media(max-width:700px) {
    .graham-location-item-card {
        align-items: start;
    }

    .graham-location-item-quantity,
    .graham-location-item-actions {
        align-self: end;
    }
}

/* 0.13.241: polished, responsive My Items list-creation toolbar. */
.graham-location-items-orderbar{background:#f5f9fc;border:1px solid #d6e3eb;box-shadow:0 3px 12px rgba(24,59,84,.05);padding:11px 12px}
.graham-location-items-select-tools{align-items:center;display:flex;gap:14px;min-width:0}
.graham-location-items-selection-status{display:grid;gap:2px;min-width:120px}
.graham-location-items-selection-status strong{color:#183b54;font-size:.82rem;line-height:1.2}
.graham-location-items-selection-status span{color:#60798a;font-size:.72rem;line-height:1.2}
.graham-location-items-submit-actions{align-items:center;display:flex;gap:8px;justify-content:flex-end}
.graham-location-items-submit-actions>.button,.graham-location-items-list-maker>summary{gap:6px;white-space:nowrap}
.graham-location-items-submit-actions .dashicons{font-size:17px;height:17px;line-height:17px;width:17px}
.graham-location-items-submit-actions button:disabled{cursor:not-allowed;filter:none;opacity:.45}
.graham-location-items-list-maker{position:relative}
.graham-location-items-list-maker>summary{background:#fff;border-color:#aac2d1;color:#075b9d;cursor:pointer;list-style:none}
.graham-location-items-list-maker>summary::-webkit-details-marker{display:none}
.graham-location-items-list-maker[open]>summary{background:#eaf4fb;border-color:#075b9d}
.graham-location-items-list-maker-panel{background:#fff;border:1px solid #bfd2de;border-radius:8px;box-shadow:0 12px 28px rgba(24,59,84,.18);display:grid;gap:12px;padding:14px;position:absolute;right:0;top:calc(100% + 7px);width:min(400px,calc(100vw - 24px));z-index:20}
.graham-location-items-list-maker-panel header{align-items:center;border-bottom:1px solid #e3ebf0;display:flex;justify-content:space-between;padding-bottom:9px}
.graham-location-items-list-maker-panel header strong{color:#183b54;font-size:.95rem}
.graham-location-items-list-maker-close{align-items:center;background:transparent;border:0;border-radius:50%;color:#526d80;cursor:pointer;display:flex;font-size:24px;height:32px;justify-content:center;line-height:1;padding:0;width:32px}
.graham-location-items-list-maker-close:hover{background:#edf4f8;color:#183b54}
.graham-location-items-list-maker-panel label{display:grid;gap:4px;min-width:0}
.graham-location-items-list-maker-panel label>span{color:#536d80;font-size:.7rem;font-weight:750;text-transform:uppercase}
.graham-location-items-list-maker-panel input{border:1px solid #aebfca;border-radius:6px;font-size:16px;min-height:42px;padding:7px 9px;width:100%}
.graham-location-items-list-maker-panel input:focus{border-color:#075b9d;box-shadow:0 0 0 2px rgba(7,91,157,.12);outline:0}
.graham-location-items-list-maker-actions{display:flex;gap:8px;justify-content:flex-end}
.graham-location-items-list-maker-actions .button{min-width:104px}
@media(max-width:980px){.graham-location-items-orderbar{align-items:stretch;flex-wrap:wrap}.graham-location-items-select-tools{flex:1 1 100%;justify-content:space-between}.graham-location-items-submit-actions{flex:1 1 100%}.graham-location-items-submit-actions>.button{flex:1 1 auto}}
@media(max-width:700px){.graham-location-items-orderbar{gap:10px;padding:10px}.graham-location-items-select-tools{align-items:flex-start;display:grid;gap:8px;grid-template-columns:1fr auto}.graham-location-items-selection{align-self:center}.graham-location-items-selection-status{min-width:0}.graham-location-items-submit-actions{align-items:stretch;display:grid;grid-template-columns:1fr}.graham-location-items-list-maker,.graham-location-items-list-maker>summary,.graham-location-items-submit-actions>.button{width:100%}.graham-location-items-list-maker-panel{box-shadow:none;margin-top:6px;position:relative;right:auto;top:auto;width:100%}.graham-location-items-list-maker-actions{display:grid;grid-template-columns:1fr 1fr}.graham-location-items-list-maker-actions .button{min-width:0;width:100%}}
@media(max-width:420px){.graham-location-items-select-tools{grid-template-columns:1fr}.graham-location-items-selection{width:100%}.graham-location-items-selection .button{flex:1}.graham-location-items-list-maker-actions{grid-template-columns:1fr}}

.graham-document-reorder{align-items:center;background:#eff8f3;border:1px solid #cce7d6;border-radius:7px;display:flex;gap:16px;justify-content:space-between;margin:16px 0;padding:12px 14px}.graham-document-reorder>div{display:grid;gap:3px}.graham-document-reorder small{color:#587082}.graham-document-reorder .button.alt{background:#19a653;border-color:#19a653;color:#fff;white-space:nowrap}@media(max-width:700px){.graham-document-reorder{align-items:stretch;flex-direction:column}.graham-document-reorder .button{width:100%}}
.graham-document-reorder-actions{align-items:center!important;display:flex!important;flex-wrap:wrap;gap:8px!important}.graham-document-reorder-actions form{margin:0}.graham-document-add-list{position:relative}.graham-document-add-list>summary{cursor:pointer;list-style:none}.graham-document-add-list>summary::-webkit-details-marker{display:none}.graham-document-add-list[open]>form{background:#fff;border:1px solid #b8cbd8;border-radius:7px;box-shadow:0 8px 22px #183b5428;display:grid;gap:10px;max-width:none!important;padding:12px;position:absolute;right:0;top:calc(100% + 6px);width:min(300px,calc(100vw - 32px));z-index:20}.graham-document-add-list label{display:grid;gap:4px;font-size:12px;font-weight:700}.graham-document-add-list :is(select,input){box-sizing:border-box;min-height:38px;width:100%}@media(max-width:700px){.graham-document-reorder-actions{align-items:stretch!important;display:grid!important}.graham-document-add-list[open]>form{max-width:100%!important;position:static;width:100%}.graham-list-source-actions,.graham-create-list-from-cart{align-items:stretch;display:grid}.graham-create-list-from-cart .button,.graham-list-from-order{width:100%}}

/* 0.13.381: consistent solid arrows and invoice actions. */
.graham-document-viewer-download > span,
.graham-document-viewer-nav > span {
    background: currentColor;
    display: block;
    font-size: 0;
    height: 28px;
    width: 28px;
}

.graham-document-viewer-download > span {
    clip-path: polygon(28% 0, 72% 0, 72% 56%, 94% 56%, 50% 100%, 6% 56%, 28% 56%);
}

.graham-document-viewer-nav > span {
    height: 34px;
    width: 34px;
}

.graham-document-viewer-prev > span {
    clip-path: polygon(0 50%, 46% 5%, 46% 29%, 100% 29%, 100% 71%, 46% 71%, 46% 95%);
}

.graham-document-viewer-next > span {
    clip-path: polygon(100% 50%, 54% 5%, 54% 29%, 0 29%, 0 71%, 54% 71%, 54% 95%);
}

.graham-order-overview__back > span {
    background: currentColor;
    clip-path: polygon(0 50%, 44% 7%, 44% 30%, 100% 30%, 100% 70%, 44% 70%, 44% 93%);
    display: inline-block;
    font-size: 0;
    height: 14px;
    margin-right: 5px;
    vertical-align: -2px;
    width: 17px;
}

.graham-document-reorder-actions .graham-button {
    box-sizing: border-box;
    min-height: 42px;
    margin: 0 !important;
    padding: 10px 16px !important;
    text-align: center;
    text-decoration: none !important;
}

.graham-document-reorder-actions .graham-document-reorder-cart {
    background: var(--graham-page-green) !important;
    border: 2px solid var(--graham-page-green) !important;
    color: #fff !important;
}

.graham-document-reorder-actions .graham-document-reorder-cart:hover,
.graham-document-reorder-actions .graham-document-reorder-cart:focus-visible {
    background: var(--graham-page-green-dark) !important;
    border-color: var(--graham-page-green-dark) !important;
}

.graham-document-reorder-actions .graham-document-reorder-list {
    background: #fff !important;
    border: 2px solid var(--graham-page-blue) !important;
    color: var(--graham-page-blue) !important;
}

.graham-document-reorder-actions .graham-document-reorder-list:hover,
.graham-document-reorder-actions .graham-document-reorder-list:focus-visible {
    background: #edf6fc !important;
}

@media (max-width: 700px) {
    .graham-document-reorder-actions .graham-button,
    .graham-document-reorder-actions form,
    .graham-document-add-list {
        width: 100%;
    }
}

/* 0.13.86: private customer Safety Data Sheet library. */
.graham-sds-page{color:#183b54}.graham-sds-page *{box-sizing:border-box}.graham-sds-header{align-items:center;background:#f4f9fc;border:1px solid #d7e5ed;border-radius:8px;display:flex;gap:20px;justify-content:space-between;margin-bottom:16px;padding:20px}.graham-sds-header h2{font-size:1.65rem;margin:3px 0 7px}.graham-sds-header p:last-child{color:#577083;margin:0;max-width:700px}.graham-sds-summary{align-items:center;background:#fff;border:1px solid #d5e3eb;border-radius:7px;display:flex;flex:0 0 auto;gap:8px;padding:10px 13px}.graham-sds-summary strong{color:#075b9d;font-size:1.25rem}.graham-sds-summary span{color:#567083;font-size:.78rem}.graham-sds-search{background:#fff;border:1px solid #d7e3ea;border-radius:7px;margin-bottom:13px;padding:12px}.graham-sds-search>label{display:block;font-size:.75rem;font-weight:750;margin-bottom:5px}.graham-sds-search>div{display:flex;gap:7px}.graham-sds-search input{border:1px solid #b8cad6;border-radius:5px;font-size:16px;min-height:40px;padding:8px 10px;width:min(500px,100%)}.graham-sds-page .button{align-items:center;border-radius:6px;display:inline-flex;font-size:.8rem;font-weight:700;justify-content:center;min-height:38px;padding:8px 12px;text-decoration:none}.graham-sds-page .button.alt{background:#19a653;border-color:#19a653;color:#fff}.graham-sds-list{display:grid;gap:9px}.graham-sds-product{align-items:center;background:#fff;border:1px solid #d8e3ea;border-radius:7px;display:grid;gap:12px;grid-template-columns:58px minmax(0,1fr) auto;padding:10px 12px}.graham-sds-product-image{align-items:center;aspect-ratio:1;display:flex;justify-content:center}.graham-sds-product-image img{height:100%;object-fit:contain;width:100%}.graham-sds-product-copy{min-width:0}.graham-sds-product-copy small{color:#607789;font-size:.7rem}.graham-sds-product-copy h3{font-size:.9rem;line-height:1.3;margin:2px 0}.graham-sds-product-copy h3 a{color:#123e5d;text-decoration:none}.graham-sds-unavailable{background:#f1f3f4;border-radius:999px;color:#687783;font-size:.72rem;font-weight:700;padding:7px 10px;white-space:nowrap}.graham-sds-empty{background:#f7f9fa;border-left:4px solid #2eae61;border-radius:5px;padding:16px 18px}.graham-sds-empty p{color:#607383;margin:5px 0 0}.graham-sds-pages{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:16px 0}.graham-sds-pages a{align-items:center;border:1px solid #c7d7e1;border-radius:5px;color:#075b9d;display:flex;font-size:.82rem;font-weight:700;height:34px;justify-content:center;text-decoration:none;width:34px}.graham-sds-pages a.is-current{background:#075b9d;border-color:#075b9d;color:#fff}@media(max-width:700px){.graham-sds-header{align-items:flex-start;flex-direction:column;padding:15px}.graham-sds-header h2{font-size:1.35rem}.graham-sds-summary{padding:7px 10px}.graham-sds-search>div{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.graham-sds-search input{grid-column:1 / -1;width:100%}.graham-sds-product{gap:8px;grid-template-columns:48px minmax(0,1fr);padding:9px}.graham-sds-product>.button,.graham-sds-unavailable{grid-column:1 / -1;text-align:center;width:100%}}

@media (max-width: 900px) {
    body.graham-account-page .woocommerce-MyAccount-navigation.graham-account-nav-enhanced {
        margin-bottom: 12px !important;
    }

    body.graham-account-page .graham-account-nav-mobile-toggle {
        align-items: center;
        background: #fff;
        border: 0;
        color: #123c59;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        min-height: 48px;
        padding: 8px 12px;
        text-align: left;
        width: 100%;
    }

    body.graham-account-page .graham-account-nav-mobile-toggle span:first-child {
        display: grid;
        gap: 1px;
    }

    body.graham-account-page .graham-account-nav-mobile-toggle strong {
        font-size: 0.9rem;
        font-weight: 700;
    }

    body.graham-account-page .graham-account-nav-mobile-toggle small {
        color: #607383;
        font-size: 0.76rem;
        font-weight: 400;
    }

    body.graham-account-page .graham-account-nav-mobile-chevron {
        border-bottom: 2px solid currentColor;
        border-right: 2px solid currentColor;
        height: 8px;
        margin: 0 5px 4px 14px;
        transform: rotate(45deg);
        transition: transform 0.15s ease;
        width: 8px;
    }

    body.graham-account-page .graham-account-nav-enhanced[data-mobile-menu-open="true"] .graham-account-nav-mobile-chevron {
        margin-bottom: -3px;
        transform: rotate(225deg);
    }

    body.graham-account-page .graham-account-nav-enhanced .graham-account-nav-groups {
        border-top: 1px solid #e5edf2;
        display: none;
    }

    body.graham-account-page .graham-account-nav-enhanced[data-mobile-menu-open="true"] .graham-account-nav-groups {
        display: block;
    }
}

/* 0.13.220: use the phone width efficiently throughout My Account. */
@media (max-width: 700px) {
    body.graham-account-page .graham-functional-banner {
        padding-bottom: 14px;
        padding-top: 14px;
    }

    body.graham-account-page .graham-functional-banner h1 {
        margin-bottom: 4px;
    }

    body.graham-account-page main.wp-block-group {
        padding: 8px 5px 32px !important;
    }

    body.graham-account-page .entry-content,
    body.graham-account-page .wp-block-post-content {
        margin-top: 4px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    body.logged-in.graham-account-page .woocommerce {
        gap: 8px !important;
    }

    body.graham-account-page .woocommerce-MyAccount-navigation.graham-account-nav-enhanced {
        margin-bottom: 0 !important;
    }

    body.graham-account-page .woocommerce-MyAccount-content {
        padding: 8px !important;
    }

    body.graham-account-page .woocommerce-MyAccount-content > .graham-linked-business-account,
    body.graham-account-page .woocommerce-MyAccount-content > section:not(.woocommerce-order-details):not(.woocommerce-customer-details) {
        padding: 12px;
    }
}

/* 0.13.239: guided barcode stock counts for target-level saved lists. */
html.graham-stock-count-open {
    overflow: hidden;
}

.graham-start-stock-count {
    gap: 7px;
}

.graham-start-stock-count .dashicons {
    font-size: 18px;
    height: 18px;
    width: 18px;
}

.graham-stock-count[hidden],
.graham-stock-count [hidden] {
    display: none !important;
}

.graham-stock-count {
    align-items: center;
    background: rgba(14, 35, 50, 0.72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 100100;
}

.graham-stock-count__panel {
    background: #fff;
    border: 1px solid #cddce5;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(8, 35, 54, 0.28);
    box-sizing: border-box;
    max-height: calc(100vh - 36px);
    max-width: 820px;
    overflow: auto;
    width: 100%;
}

.graham-stock-count__header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #dbe6ec;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px 13px;
    position: sticky;
    top: 0;
    z-index: 4;
}

.graham-stock-count__header h3,
.graham-stock-count__section-heading h4,
.graham-stock-count__found h4 {
    margin: 0;
}

.graham-stock-count__close {
    align-items: center;
    background: #f2f6f8;
    border: 1px solid #c7d5de;
    border-radius: 50%;
    color: #173f59;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 28px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    width: 38px;
}

.graham-stock-count__progress {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(100px, 1fr);
    padding: 12px 18px 8px;
}

.graham-stock-count__progress strong {
    font-size: 0.82rem;
    white-space: nowrap;
}

.graham-stock-count__progress > div {
    background: #e3ebf0;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.graham-stock-count__progress > div span {
    background: #1bb154;
    display: block;
    height: 100%;
    transition: width 0.18s ease;
    width: 0;
}

.graham-stock-count__steps {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0 18px 12px;
}

.graham-stock-count__steps li {
    border-bottom: 3px solid #d6e1e7;
    color: #6a7c88;
    font-size: 0.76rem;
    font-weight: 750;
    padding: 6px;
    text-align: center;
}

.graham-stock-count__steps li.is-active {
    border-bottom-color: #0871b5;
    color: #075b9d;
}

.graham-stock-count__body {
    padding: 4px 18px 18px;
}

.graham-stock-count__scan-layout {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
}

.graham-stock-count__camera {
    aspect-ratio: 4 / 3;
    background: #101820;
    border-radius: 7px;
    min-height: 210px;
    overflow: hidden;
    position: relative;
}

.graham-stock-count__camera video {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.graham-stock-count__camera > span {
    border: 3px solid #fff;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.22);
    height: 34%;
    left: 12%;
    position: absolute;
    top: 33%;
    width: 76%;
}

.graham-stock-count__scan-controls {
    min-width: 0;
}

.graham-stock-count__status {
    background: #eef5f9;
    border-left: 4px solid #168bc0;
    color: #284c63;
    margin: 0 0 14px;
    min-height: 22px;
    padding: 10px 12px;
}

.graham-stock-count__status[data-state="success"] {
    background: #ebf7ef;
    border-left-color: #1ba84f;
    color: #126a32;
}

.graham-stock-count__status[data-state="error"] {
    background: #fff0ed;
    border-left-color: #d54a38;
    color: #852718;
}

.graham-stock-count__manual {
    display: grid;
    gap: 6px;
    margin: 0 0 10px;
}

.graham-stock-count__manual > label,
.graham-stock-count__found label,
.graham-stock-count__item-quantity {
    font-size: 0.76rem;
    font-weight: 750;
}

.graham-stock-count__manual > div {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.graham-saved-lists-page .graham-stock-count :is(input, button) {
    box-sizing: border-box;
}

.graham-stock-count__camera-retry {
    width: 100%;
}

.graham-stock-count__found {
    align-items: center;
    background: #f3f8fb;
    border: 2px solid #168bc0;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 72px minmax(0, 1fr) 105px auto;
    margin-top: 14px;
    padding: 12px;
}

.graham-stock-count__found-image,
.graham-stock-count__item-image {
    align-items: center;
    background: #fff;
    border: 1px solid #e0e8ed;
    display: flex;
    justify-content: center;
}

.graham-stock-count__found-image {
    height: 72px;
    width: 72px;
}

.graham-stock-count__found-image img,
.graham-stock-count__item-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.graham-stock-count__found p {
    color: #607383;
    font-size: 0.76rem;
    margin: 2px 0;
}

.graham-stock-count__found label {
    display: grid;
    gap: 4px;
}

.graham-stock-count__found input {
    width: 100%;
}

.graham-stock-count__section-heading {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.graham-stock-count__section-heading p {
    color: #5c7282;
    margin: 4px 0 0;
}

.graham-stock-count__remaining,
.graham-stock-count__review {
    border: 1px solid #d8e3ea;
    border-radius: 7px;
    max-height: min(48vh, 430px);
    overflow: auto;
}

.graham-stock-count__remaining-item,
.graham-stock-count__review-item {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e6edf1;
    display: grid;
    gap: 10px;
    grid-template-columns: 52px minmax(0, 1fr) 120px;
    margin: 0;
    padding: 9px;
}

.graham-stock-count__remaining-item:last-child,
.graham-stock-count__review-item:last-child {
    border-bottom: 0;
}

.graham-stock-count__item-image {
    height: 50px;
    width: 50px;
}

.graham-stock-count__item-image .dashicons {
    color: #93a4af;
    font-size: 26px;
    height: 26px;
    width: 26px;
}

.graham-stock-count__item-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.graham-stock-count__item-copy strong {
    color: #173f59;
    font-size: 0.82rem;
    line-height: 1.3;
}

.graham-stock-count__item-copy small {
    color: #607383;
    font-size: 0.72rem;
}

.graham-stock-count__item-quantity {
    display: grid;
    gap: 3px;
}

.graham-stock-count__item-quantity input.is-invalid {
    border-color: #d54a38 !important;
    box-shadow: 0 0 0 2px rgba(213, 74, 56, 0.14);
}

.graham-stock-count__validation {
    background: #fff0ed;
    color: #852718;
    margin: 10px 0 0;
    padding: 9px 11px;
}

.graham-stock-count__review-total {
    background: #edf7f1;
    border-bottom: 1px solid #cfe4d7;
    color: #126a32;
    font-weight: 750;
    margin: 0;
    padding: 10px 12px;
}

.graham-stock-count__review-item.needs-order {
    border-left: 4px solid #1ba84f;
}

.graham-stock-count__review-item.is-stocked {
    border-left: 4px solid #aab8c1;
}

.graham-stock-count__review-values {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(3, auto);
    justify-content: end;
}

.graham-stock-count__review-values > span {
    color: #607383;
    display: grid;
    font-size: 0.68rem;
    text-align: center;
}

.graham-stock-count__review-values > label {
    color: #607383;
    display: grid;
    font-size: 0.68rem;
    gap: 2px;
    margin: 0;
    text-align: center;
}

.graham-stock-count__review-values input {
    box-sizing: border-box;
    color: #0d7133;
    font-weight: 800;
    min-height: 30px;
    padding: 3px 5px;
    text-align: center;
    width: 68px;
}

.graham-stock-count__review-values strong {
    color: #173f59;
    font-size: 0.9rem;
}

.graham-stock-count__footer {
    border-top: 1px solid #e0e8ed;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 13px;
}

.graham-saved-product-card.is-counted {
    border-color: #9fd4b3;
    box-shadow: inset 4px 0 #1ba84f;
}

@media (max-width: 700px) {
    .graham-stock-count {
        align-items: stretch;
        padding: 0;
    }

    .graham-stock-count__panel {
        border: 0;
        border-radius: 0;
        max-height: 100vh;
        max-width: none;
    }

    .graham-stock-count__header {
        padding: 12px;
    }

    .graham-stock-count__progress {
        padding-left: 12px;
        padding-right: 12px;
    }

    .graham-stock-count__steps {
        padding-left: 12px;
        padding-right: 12px;
    }

    .graham-stock-count__body {
        padding: 2px 12px 16px;
    }

    .graham-stock-count__scan-layout {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .graham-stock-count__camera {
        aspect-ratio: 16 / 8;
        min-height: 150px;
    }

    .graham-stock-count__found {
        grid-template-columns: 58px minmax(0, 1fr) 92px;
    }

    .graham-stock-count__found-image {
        height: 58px;
        width: 58px;
    }

    .graham-stock-count__found .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .graham-stock-count__section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .graham-stock-count__remaining,
    .graham-stock-count__review {
        max-height: none;
    }

    .graham-stock-count__remaining-item,
    .graham-stock-count__review-item {
        grid-template-columns: 44px minmax(0, 1fr) 88px;
        padding: 8px 5px;
    }

    .graham-stock-count__item-image {
        height: 42px;
        width: 42px;
    }

    .graham-stock-count__review-values {
        gap: 4px;
        grid-template-columns: 1fr;
    }

    .graham-stock-count__review-values > span {
        grid-template-columns: 1fr auto;
        gap: 4px;
        text-align: left;
    }

    .graham-stock-count__review-values > label {
        align-items: center;
        grid-template-columns: 1fr auto;
        text-align: left;
    }

    .graham-stock-count__footer .button {
        flex: 1 1 145px;
    }
}

/* 0.13.242: clearer par-level ordering and purposeful saved-list actions. */
.graham-saved-lists-page .graham-saved-list-order-form {
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
}

.graham-saved-list-order-group {
    align-content: space-between;
    background: #f7fafc;
    border: 1px solid #d8e3ea;
    border-left: 4px solid #7892a5;
    border-radius: 8px;
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 14px;
}

.graham-saved-list-order-group--par {
    background: #f3f8fb;
    border-color: #c9dce8;
    border-left-color: #0871b5;
}

.graham-saved-list-order-heading {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.graham-saved-list-order-heading > .dashicons {
    align-items: center;
    background: #e6eef3;
    border-radius: 50%;
    color: #38596f;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 18px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.graham-saved-list-order-group--par .graham-saved-list-order-heading > .dashicons {
    background: #dceefa;
    color: #075b9d;
}

.graham-saved-list-order-heading > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.graham-saved-list-order-heading strong {
    color: #173f59;
    font-size: 0.95rem;
    line-height: 1.25;
}

.graham-saved-lists-page .graham-saved-list-order-heading small {
    color: #536c7d;
    font-size: 0.75rem;
    line-height: 1.4;
}

.graham-saved-list-order-group .graham-saved-list-order-buttons {
    justify-content: flex-start;
}

.graham-saved-lists-page .graham-saved-list-order-buttons .button,
.graham-saved-lists-page .graham-saved-product-actions .button {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 750;
    gap: 6px;
    justify-content: center;
    min-height: 39px;
    padding: 7px 12px;
}

.graham-saved-lists-page .graham-saved-list-order-buttons .dashicons {
    font-size: 17px;
    height: 17px;
    width: 17px;
}

.graham-saved-lists-page .graham-action-secondary {
    background: #fff;
    border-color: #8eabba;
    color: #174d70;
}

.graham-saved-lists-page .graham-action-count {
    background: #0871b5;
    border-color: #0871b5;
    color: #fff;
}

.graham-saved-lists-page .graham-action-primary {
    background: #168b43;
    border-color: #168b43;
    color: #fff;
}

.graham-saved-lists-page .graham-action-danger {
    background: #fff;
    border-color: #d6a7a2;
    color: #a22d22;
}

.graham-saved-lists-page :is(.graham-action-count, .graham-action-primary):hover,
.graham-saved-lists-page :is(.graham-action-count, .graham-action-primary):focus-visible {
    color: #fff;
}

.graham-stock-levels {
    background: #f8fafb;
    border: 1px solid #dce6ec;
    border-radius: 7px;
    margin: 11px 0;
    padding: 0;
}

.graham-stock-levels > summary {
    align-items: center;
    display: grid;
    gap: 2px;
    grid-template-columns: minmax(0, 1fr) auto;
    list-style: none;
    padding: 9px 10px;
}

.graham-stock-levels > summary::-webkit-details-marker {
    display: none;
}

.graham-stock-levels > summary::after {
    color: #0871b5;
    content: "+";
    font-size: 1.25rem;
    font-weight: 700;
    grid-column: 2;
    grid-row: 1 / span 2;
    line-height: 1;
}

.graham-stock-levels[open] > summary::after {
    content: "−";
}

.graham-stock-levels > summary > span {
    color: #075b9d;
    font-size: 0.8rem;
    font-weight: 800;
}

.graham-stock-levels > summary > small {
    color: #647a89;
    font-size: 0.7rem;
    font-weight: 500;
}

.graham-stock-level-fields {
    background: #fff;
    border-top: 1px solid #dce6ec;
    padding: 10px;
}

.graham-stock-level-fields label > small,
.graham-stock-order-quantity > small {
    color: #71838f;
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.25;
    min-height: 1.25em;
}

.graham-stock-level-fields label,
.graham-stock-order-quantity {
    min-width: 0;
}

.graham-saved-lists-page .graham-stock-level-fields input {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

@media (max-width: 960px) {
    .graham-saved-lists-page .graham-saved-list-order-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .graham-saved-list-order-group {
        gap: 11px;
        padding: 11px;
    }

    .graham-saved-list-order-heading > .dashicons {
        flex-basis: 30px;
        height: 30px;
        width: 30px;
    }

    .graham-saved-lists-page .graham-saved-list-order-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .graham-saved-lists-page .graham-saved-list-order-buttons .button {
        width: 100%;
    }

    .graham-stock-level-fields {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-stock-order-quantity {
        grid-column: 1 / -1;
    }
}

/* 0.13.243: dedicated par-level editor and UPC list builder. */
.graham-par-dialog[hidden],
.graham-par-dialog [hidden] {
    display: none !important;
}

.graham-par-dialog {
    align-items: center;
    background: rgba(14, 35, 50, 0.72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 100100;
}

.graham-par-dialog__panel {
    background: #fff;
    border: 1px solid #cddce5;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(8, 35, 54, 0.28);
    box-sizing: border-box;
    max-height: calc(100vh - 36px);
    max-width: 760px;
    overflow: auto;
    width: 100%;
}

.graham-par-dialog__header {
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid #dbe6ec;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px 13px;
    position: sticky;
    top: 0;
    z-index: 4;
}

.graham-par-dialog__header h3 {
    color: #173f59;
    margin: 0;
}

.graham-par-dialog__header p:not(.graham-eyebrow) {
    color: #5c7282;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 4px 0 0;
}

.graham-par-dialog__items {
    display: grid;
    max-height: min(62vh, 560px);
    overflow: auto;
    padding: 4px 18px;
}

.graham-par-dialog__item {
    align-items: center;
    border-bottom: 1px solid #e4ebef;
    display: grid;
    gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr) 112px;
    margin: 0;
    padding: 10px 0;
}

.graham-par-dialog__item:last-child {
    border-bottom: 0;
}

.graham-par-dialog__image {
    align-items: center;
    background: #f8fafb;
    border: 1px solid #dce6ec;
    border-radius: 6px;
    display: flex;
    height: 56px;
    justify-content: center;
    overflow: hidden;
    width: 56px;
}

.graham-par-dialog__image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.graham-par-dialog__image .dashicons {
    color: #91a2ad;
    font-size: 27px;
    height: 27px;
    width: 27px;
}

.graham-par-dialog__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.graham-par-dialog__copy strong {
    color: #173f59;
    font-size: 0.82rem;
    line-height: 1.3;
}

.graham-par-dialog__copy small {
    color: #607383;
    font-size: 0.72rem;
}

.graham-par-dialog__quantity {
    display: grid;
    font-size: 0.74rem;
    font-weight: 750;
    gap: 4px;
}

.graham-saved-lists-page .graham-par-dialog__quantity input {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.graham-par-dialog__footer {
    background: #fff;
    border-top: 1px solid #dbe6ec;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 18px;
    position: sticky;
    z-index: 4;
}

.graham-saved-lists-page .graham-par-dialog__footer .button,
.graham-saved-lists-page .graham-par-builder__found .button {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 750;
    gap: 6px;
    justify-content: center;
    min-height: 39px;
    padding: 7px 12px;
}

.graham-par-builder__panel {
    max-width: 820px;
}

.graham-par-builder__body {
    padding: 16px 18px 4px;
}

.graham-par-builder__found {
    align-items: center;
    background: #edf7f1;
    border: 2px solid #2a9c54;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr) 112px auto;
    margin-top: 15px;
    padding: 12px;
}

.graham-par-builder__found .graham-par-dialog__copy small {
    order: 2;
}

.graham-par-builder__found .graham-par-dialog__copy strong {
    order: 1;
}

@media (max-width: 700px) {
    .graham-par-dialog {
        align-items: stretch;
        padding: 0;
    }

    .graham-par-dialog__panel {
        border: 0;
        border-radius: 0;
        max-height: 100vh;
        max-width: none;
    }

    .graham-par-dialog__header {
        padding: 12px;
    }

    .graham-par-dialog__items {
        max-height: none;
        padding: 2px 12px;
    }

    .graham-par-dialog__item {
        gap: 8px;
        grid-template-columns: 46px minmax(0, 1fr) 88px;
        padding: 8px 0;
    }

    .graham-par-dialog__image {
        height: 44px;
        width: 44px;
    }

    .graham-par-dialog__footer {
        padding: 10px 12px;
    }

    .graham-par-dialog__footer .button {
        flex: 1 1 130px;
    }

    .graham-par-builder__body {
        padding: 12px 12px 2px;
    }

    .graham-par-builder__found {
        grid-template-columns: 46px minmax(0, 1fr) 88px;
        padding: 9px;
    }

    .graham-par-builder__found > .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* 0.13.244: compact ordering rows with read-only par levels and order overrides. */
.graham-saved-lists-page .graham-saved-products-grid {
    gap: 7px;
}

.graham-saved-lists-page .graham-saved-product-card {
    border-radius: 7px;
    gap: 10px;
    grid-template-columns: 34px 62px minmax(0, 1fr);
    padding: 9px;
}

.graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
    grid-template-columns: 34px minmax(0, 1fr);
}

.graham-saved-lists-page .graham-saved-product-image {
    height: 58px;
}

.graham-saved-lists-page .graham-saved-product-image img {
    max-height: 58px !important;
}

.graham-saved-lists-page .graham-saved-product-copy {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(170px, 1fr) 112px 230px auto;
}

.graham-saved-lists-page .graham-saved-product-summary {
    min-width: 0;
}

.graham-saved-lists-page .graham-saved-product-card h4 {
    font-size: 0.82rem;
    line-height: 1.25;
    margin: 2px 0 3px;
}

.graham-saved-lists-page .graham-saved-product-price {
    font-size: 0.78rem;
    margin: 0;
}

.graham-saved-lists-page .graham-saved-product-quantity {
    align-items: stretch;
    display: grid;
    gap: 3px;
    margin: 0;
}

.graham-saved-lists-page .graham-saved-product-quantity input {
    min-height: 34px;
    width: 100%;
}

.graham-saved-product-par-order {
    align-items: end;
    display: grid;
    gap: 6px;
    grid-template-columns: 58px repeat(2, minmax(70px, 1fr));
}

.graham-saved-product-par-order label,
.graham-saved-product-par-readonly {
    display: grid;
    font-size: 0.7rem;
    font-weight: 750;
    gap: 3px;
    margin: 0;
}

.graham-saved-product-par-readonly strong {
    align-items: center;
    background: #edf3f6;
    border: 1px solid #cedce4;
    border-radius: 5px;
    color: #24485f;
    display: flex;
    justify-content: center;
    min-height: 34px;
    padding: 4px 7px;
}

.graham-saved-lists-page .graham-saved-product-par-order input {
    box-sizing: border-box;
    min-height: 34px;
    min-width: 0;
    padding: 4px 7px;
    width: 100%;
}

.graham-saved-lists-page .graham-stock-order-quantity input {
    background: #f0faf4;
    border-color: #82c79c;
    color: #0d7133;
    font-weight: 800;
}

.graham-saved-lists-page .graham-saved-product-actions {
    display: grid;
    gap: 5px;
}

.graham-saved-lists-page .graham-saved-product-actions .button {
    font-size: 0.7rem;
    min-height: 32px;
    padding: 5px 8px;
    white-space: nowrap;
    width: 100%;
}

@media (max-width: 1050px) {
    .graham-saved-lists-page .graham-saved-product-copy {
        grid-template-columns: minmax(170px, 1fr) 100px 220px;
    }

    .graham-saved-lists-page .graham-saved-product-actions {
        display: flex;
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .graham-saved-lists-page .graham-saved-product-actions .button {
        width: auto;
    }
}

@media (max-width: 720px) {
    .graham-saved-lists-page .graham-saved-product-card {
        gap: 7px;
        grid-template-columns: 28px 54px minmax(0, 1fr);
        padding: 8px;
    }

    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .graham-saved-lists-page .graham-saved-product-image {
        height: 50px;
    }

    .graham-saved-lists-page .graham-saved-product-image img {
        max-height: 50px !important;
    }

    .graham-saved-lists-page .graham-saved-product-copy {
        display: contents;
    }

    .graham-saved-lists-page .graham-saved-product-summary {
        grid-column: 3;
    }

    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-summary {
        grid-column: 2;
    }

    .graham-saved-lists-page .graham-saved-product-quantity,
    .graham-saved-lists-page .graham-saved-product-par-order,
    .graham-saved-lists-page .graham-saved-product-actions {
        grid-column: 2 / -1;
    }

    .graham-saved-lists-page .graham-saved-product-quantity {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .graham-saved-lists-page .graham-saved-product-par-order {
        grid-template-columns: 58px repeat(2, minmax(68px, 1fr));
    }

    .graham-saved-lists-page .graham-saved-product-par-order .graham-stock-order-quantity {
        grid-column: auto;
    }

    .graham-saved-lists-page .graham-saved-product-actions {
        justify-content: flex-start;
    }
}

/* 0.13.246: keep the par-level editor compact on wide account pages. */
.graham-saved-lists-page .graham-par-dialog > .graham-par-dialog__panel {
    max-width: 840px !important;
    width: calc(100vw - 36px) !important;
}

.graham-saved-lists-page .graham-par-dialog__item {
    grid-template-columns: 56px minmax(0, 460px) 104px;
    justify-content: center;
}

@media (max-width: 700px) {
    .graham-saved-lists-page .graham-par-dialog > .graham-par-dialog__panel {
        max-width: none !important;
        width: 100% !important;
    }

    .graham-saved-lists-page .graham-par-dialog__item {
        grid-template-columns: 46px minmax(0, 1fr) 88px;
        justify-content: stretch;
    }
}

/* 0.13.411: present every help topic without a clipped horizontal strip. */
@media (max-width: 560px) {
    body.graham-help-centre-page-active .graham-help-filters {
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
        overflow-x: visible;
        padding: 0;
    }

    body.graham-help-centre-page-active .graham-help-filters button {
        flex: 0 1 auto;
    }
}

/* 0.13.344 final saved-list layout overrides. */
.graham-saved-lists-page .graham-saved-list-multi-select {
    border: 1px solid #cbdbe4;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.graham-saved-lists-page .graham-saved-list-multi-select > summary {
    align-items: center;
    background: #f5f9fb;
    color: #075b9d;
    cursor: pointer;
    display: flex;
    font-size: 0.8rem;
    font-weight: 800;
    gap: 6px;
    list-style: none;
    min-height: 38px;
    padding: 7px 11px;
}

.graham-saved-lists-page .graham-saved-list-multi-select > summary::-webkit-details-marker {
    display: none;
}

.graham-saved-lists-page .graham-saved-list-multi-select > summary::after {
    content: "+";
    font-size: 1rem;
    margin-left: auto;
}

.graham-saved-lists-page .graham-saved-list-multi-select[open] > summary::after {
    content: "-";
}

.graham-saved-lists-page .graham-saved-list-multi-select .graham-saved-list-order-group {
    border: 0;
    border-radius: 0;
    border-top: 1px solid #d7e3e9;
    margin: 0;
}

.graham-saved-lists-page:not(.is-selecting-items) .graham-saved-product-check {
    display: none !important;
}

.graham-saved-lists-page .graham-saved-products-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.graham-saved-lists-page .graham-saved-product-card,
.graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
    align-items: start;
    grid-template-columns: 76px minmax(0, 1fr);
    min-width: 0;
    padding: 12px;
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-card {
    grid-template-columns: 28px 76px minmax(0, 1fr);
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image {
    grid-template-columns: 28px minmax(0, 1fr);
}

.graham-saved-lists-page .graham-saved-product-image,
.graham-saved-lists-page .graham-saved-product-image img {
    height: 72px;
    max-height: 72px !important;
}

.graham-saved-lists-page .graham-saved-product-copy,
.graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 88px;
    min-width: 0;
}

.graham-saved-lists-page .graham-saved-product-summary,
.graham-saved-lists-page .graham-saved-product-par-order,
.graham-saved-lists-page .graham-saved-product-actions {
    grid-column: 1 / -1;
}

.graham-saved-lists-page .graham-saved-product-price small {
    color: #526d7e;
    display: block;
    font-size: 0.67rem;
    font-weight: 700;
    margin-top: 2px;
}

.graham-saved-lists-page .graham-saved-product-quantity,
.graham-saved-lists-page .graham-saved-product-uom {
    display: grid;
    font-size: 0.7rem;
    font-weight: 750;
    gap: 3px;
    grid-column: auto;
    margin: 0;
}

.graham-saved-lists-page .graham-saved-product-quantity input,
.graham-saved-lists-page .graham-saved-product-uom select {
    box-sizing: border-box;
    min-height: 36px;
    width: 100%;
}

.graham-saved-lists-page .graham-saved-product-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.graham-saved-lists-page .graham-saved-product-actions .graham-list-add-to-cart {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    justify-content: center;
    min-height: 38px;
    width: auto;
}

.graham-saved-lists-page .graham-list-view-link,
.graham-saved-lists-page .graham-list-remove-link {
    background: none;
    border: 0;
    color: #466274;
    cursor: pointer;
    font-size: 0.69rem;
    font-weight: 700;
    padding: 2px 0;
    text-decoration: underline;
}

.graham-saved-lists-page .graham-list-remove-link {
    color: #8b2f35;
}

@media (max-width: 980px) {
    .graham-saved-lists-page .graham-saved-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .graham-saved-lists-page .graham-saved-product-card,
    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 9px;
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card {
        grid-template-columns: 26px 58px minmax(0, 1fr);
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .graham-saved-lists-page .graham-saved-product-image,
    .graham-saved-lists-page .graham-saved-product-image img {
        height: 54px;
        max-height: 54px !important;
    }
}

/* 0.13.455: keep par-level workflows available without crowding every saved-list card. */
.graham-saved-lists-page .graham-saved-list-order-form {
    align-items: start;
}

.graham-saved-lists-page .graham-saved-list-multi-select,
.graham-saved-lists-page .graham-saved-list-par-panel {
    border: 1px solid #cbdbe4;
    border-radius: 6px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}

.graham-saved-lists-page .graham-saved-list-par-panel > summary {
    align-items: center;
    background: #f5f9fb;
    color: #075b9d;
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    list-style: none;
    min-height: 38px;
    padding: 7px 11px;
}

.graham-saved-lists-page .graham-saved-list-par-panel > summary::-webkit-details-marker {
    display: none;
}

.graham-saved-lists-page .graham-saved-list-par-panel > summary::after {
    content: "+";
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.graham-saved-lists-page .graham-saved-list-par-panel[open] > summary::after {
    content: "-";
}

.graham-saved-lists-page .graham-saved-list-par-panel > summary > .dashicons {
    font-size: 18px;
    height: 18px;
    width: 18px;
}

.graham-saved-list-par-panel__copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.graham-saved-list-par-panel__copy strong {
    font-size: 0.8rem;
    line-height: 1.2;
}

.graham-saved-lists-page .graham-saved-list-par-panel__copy small {
    color: #647a89;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
}

.graham-saved-lists-page .graham-saved-list-par-panel .graham-saved-list-order-group {
    border: 0;
    border-radius: 0;
    border-top: 1px solid #d7e3e9;
    margin: 0;
}

.graham-saved-lists-page .graham-saved-product-par-order {
    display: none;
}

.graham-saved-lists-page.is-showing-par-levels .graham-saved-product-par-order {
    display: grid;
}

@media (max-width: 600px) {
    .graham-saved-lists-page .graham-saved-list-par-panel > summary {
        padding: 7px 9px;
    }

    .graham-saved-list-par-panel__copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 0.13.434: prevent My Items actions from collapsing in narrow account columns. */
.graham-location-items-selection .button {
    white-space: nowrap;
}

/* 0.13.604: final saved-list card layout. Keep one predictable card per row
 * on desktop and use explicit control columns on small screens so quantity,
 * UOM, pricing, and actions never overlap. */
.graham-saved-lists-page .graham-saved-products-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) !important;
}

.graham-saved-lists-page .graham-saved-product-card,
.graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
    align-items: start;
    box-sizing: border-box;
    column-gap: 14px;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    width: 100%;
}

.graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
    grid-template-columns: minmax(0, 1fr) !important;
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-card {
    grid-template-columns: 30px 92px minmax(0, 1fr) !important;
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image {
    grid-template-columns: 30px minmax(0, 1fr) !important;
}

.graham-saved-lists-page .graham-saved-product-image,
.graham-saved-lists-page .graham-saved-product-image img {
    box-sizing: border-box;
    height: 82px;
    max-height: 82px !important;
    min-height: 0;
    width: 100%;
}

.graham-saved-lists-page .graham-saved-product-copy,
.graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
    align-items: end;
    display: grid;
    gap: 9px;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 150px);
    min-width: 0;
}

.graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
    grid-column: 1;
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-copy {
    grid-column: 3;
}

.graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
    grid-column: 2;
}

.graham-saved-lists-page .graham-saved-product-summary,
.graham-saved-lists-page .graham-saved-product-par-order,
.graham-saved-lists-page .graham-saved-product-actions {
    grid-column: 1 / -1;
    min-width: 0;
}

.graham-saved-lists-page .graham-saved-product-sku,
.graham-saved-lists-page .graham-saved-product-card h4,
.graham-saved-lists-page .graham-saved-product-price {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.graham-saved-lists-page .graham-saved-product-card h4 {
    line-height: 1.3;
}

.graham-saved-lists-page .graham-saved-product-quantity,
.graham-saved-lists-page .graham-saved-product-uom {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.graham-saved-lists-page .graham-saved-product-quantity input,
.graham-saved-lists-page .graham-saved-product-uom select {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.graham-saved-lists-page .graham-saved-product-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.graham-saved-lists-page .graham-saved-product-actions .graham-list-add-to-cart {
    flex: 0 1 auto;
    max-width: 100%;
}

@media (max-width: 720px) {
    .graham-saved-lists-page .graham-saved-product-card,
    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
        column-gap: 9px;
        grid-template-columns: 64px minmax(0, 1fr) !important;
        padding: 10px;
    }

    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card {
        grid-template-columns: 26px 64px minmax(0, 1fr) !important;
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image {
        grid-template-columns: 26px minmax(0, 1fr) !important;
    }

    .graham-saved-lists-page .graham-saved-product-image,
    .graham-saved-lists-page .graham-saved-product-image img {
        height: 64px;
        max-height: 64px !important;
    }

    .graham-saved-lists-page .graham-saved-product-copy,
    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-copy,
    .graham-saved-lists-page.is-selecting-items .graham-saved-product-copy,
    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
        display: grid;
        grid-column: 2;
        grid-template-columns: minmax(0, 1fr) minmax(88px, 112px);
    }

    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
        grid-column: 1;
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-copy {
        grid-column: 3;
    }

    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
        grid-column: 2;
    }

    .graham-saved-lists-page .graham-saved-product-actions .graham-list-add-to-cart {
        flex: 1 1 150px;
    }
}

@media (max-width: 420px) {
    .graham-saved-lists-page .graham-saved-product-card,
    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image {
        padding: 9px;
    }

    .graham-saved-lists-page .graham-saved-product-copy,
    .graham-saved-lists-page .graham-saved-product-card.has-no-product-image .graham-saved-product-copy,
    .graham-saved-lists-page.is-selecting-items .graham-saved-product-copy,
    .graham-saved-lists-page.is-selecting-items .graham-saved-product-card.has-no-product-image .graham-saved-product-copy {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-saved-lists-page .graham-saved-product-quantity,
    .graham-saved-lists-page .graham-saved-product-uom,
    .graham-saved-lists-page .graham-saved-product-par-order,
    .graham-saved-lists-page .graham-saved-product-actions {
        grid-column: 1 / -1;
    }

    .graham-saved-lists-page .graham-saved-product-actions .graham-list-add-to-cart {
        flex-basis: 100%;
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .graham-location-items-orderbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .graham-location-items-select-tools,
    .graham-location-items-submit-actions {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .graham-location-items-select-tools {
        justify-content: space-between;
    }

    .graham-location-items-selection {
        flex: 0 0 auto;
        flex-wrap: wrap;
    }

    .graham-location-items-submit-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .graham-location-items-submit-actions > .button,
    .graham-location-items-list-maker {
        flex: 1 1 220px;
    }

    .graham-location-items-list-maker > summary,
    .graham-location-items-submit-actions > .button {
        box-sizing: border-box;
        width: 100%;
    }
}
