:root {
    --graham-header-blue: #075da8;
    --graham-header-blue-dark: #064b88;
    --graham-header-green: #1eb44a;
    --graham-header-ink: #17324a;
    --graham-account-bar-height: 38px;
    --graham-account-bar-offset: 0px;
    --graham-assisted-bar-height: 0px;
}

body.admin-bar {
    --graham-account-bar-offset: 32px;
}

body.graham-impersonating-customer,
body.graham-previewing-staged-customer {
    --graham-assisted-bar-height: 34px;
}

.graham-custom-header,
.graham-custom-header * {
    box-sizing: border-box;
}

.graham-custom-header {
    background: #fff;
    color: var(--graham-header-ink);
    font-family: Arial, Helvetica, sans-serif;
    padding-top: var(--graham-account-bar-height);
    position: relative;
    z-index: 90;
}

.graham-custom-header a {
    text-decoration: none;
}

body.graham-custom-header-active .wp-site-blocks > header.wp-block-template-part:first-child,
body.graham-custom-header-active .wp-site-blocks > .wp-block-template-part:first-child {
    display: none !important;
}

.graham-header-info-bar {
    background: var(--graham-header-blue);
    color: #fff;
    left: 0;
    min-height: 38px;
    position: fixed;
    right: 0;
    top: calc(var(--graham-account-bar-offset) + var(--graham-assisted-bar-height));
    width: 100%;
    z-index: 1000;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --graham-account-bar-offset: 46px;
    }
}

.graham-header-info-inner,
.graham-header-branding-inner,
.graham-header-nav-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: 1440px;
    width: calc(100% - 64px);
}

.graham-header-info-inner {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 38px;
    overflow: visible;
}

.graham-header-info-left,
.graham-header-info-right {
    align-items: center;
    display: flex;
    gap: 20px;
}

.graham-header-info-left {
    flex: 1 1 auto;
    min-width: 0;
}

.graham-header-info-right {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.graham-header-info-item,
.graham-header-account,
.graham-header-account-main,
.graham-header-cart {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 750;
    gap: 7px;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.graham-header-info-item,
.graham-header-account-menu,
.graham-header-cart {
    flex: 0 0 auto;
}

.graham-header-info-item:hover,
.graham-header-info-item:focus-visible,
.graham-header-account:hover,
.graham-header-account:focus-visible,
.graham-header-account-main:hover,
.graham-header-account-main:focus-visible,
.graham-header-cart:hover,
.graham-header-cart:focus-visible {
    color: #e6f3ff;
}

.graham-header-account-menu {
    align-items: center;
    color: #fff;
    display: inline-flex;
    position: relative;
}

.graham-header-account-main {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 750;
    gap: 7px;
    letter-spacing: 0.01em;
    list-style: none;
    min-height: 38px;
    text-transform: uppercase;
    white-space: nowrap;
}

.graham-header-account-main:focus-visible,
.graham-header-account-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.graham-header-account-toggle {
    align-items: center;
    align-self: stretch;
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    margin: 0;
    min-height: 38px;
    min-width: 28px;
    padding: 0 7px;
}

.graham-header-account-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.graham-header-signed-in-dot {
    background: #42d875;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    flex: 0 0 9px;
    height: 9px;
    width: 9px;
}

.graham-header-account-label {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graham-header-account-mobile-label {
    display: none;
}

.graham-header-account-chevron {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: block;
    height: 8px;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 140ms ease;
    width: 8px;
}

.graham-header-account-menu.is-open .graham-header-account-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.graham-header-account-panel {
    background: #fff;
    border: 1px solid #cbdbe7;
    border-radius: 6px;
    box-shadow: 0 14px 32px rgba(8, 43, 70, 0.2);
    color: var(--graham-header-ink);
    min-width: 270px;
    padding: 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1000;
}

.graham-header-account-panel[hidden] {
    display: none !important;
}

.graham-header-account-panel p {
    margin: 0;
}

.graham-header-account-person {
    color: #607485;
    font-size: 0.78rem;
    padding-bottom: 10px;
}

.graham-header-account-company {
    border-bottom: 1px solid #e2eaf0;
    border-top: 1px solid #e2eaf0;
    margin-bottom: 6px !important;
    padding: 10px 0;
}

.graham-header-account-company span,
.graham-header-account-company strong {
    display: block;
    overflow-wrap: anywhere;
}

.graham-header-account-company span {
    color: #607485;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.graham-header-account-company strong {
    color: var(--graham-header-blue-dark);
    font-size: 0.9rem;
}

.graham-header-account-panel > a {
    color: var(--graham-header-blue-dark);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 4px;
    text-transform: none;
}

.graham-header-account-panel > a:hover,
.graham-header-account-panel > a:focus-visible {
    background: #edf5fa;
    color: var(--graham-header-blue);
}

.graham-header-location-switcher {
    border-bottom: 1px solid #e2eaf0;
    border-top: 1px solid #e2eaf0;
    margin: 8px 0 6px;
    padding: 10px 0 8px;
}

.graham-header-location-kicker {
    color: #16823b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0 0 4px !important;
    text-transform: uppercase;
}

.graham-header-location-current {
    color: #607485;
    font-size: 0.76rem;
    margin: 0 0 7px !important;
}

.graham-header-location-current strong {
    color: var(--graham-header-blue-dark);
}

.graham-header-location-actions {
    display: grid;
    gap: 4px;
    max-height: min(320px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.graham-header-location-form {
    margin: 0;
}

.graham-header-location-choice {
    align-items: center;
    appearance: none;
    background: #f5f9fc;
    border: 1px solid #d3e1ea;
    border-radius: 4px;
    color: var(--graham-header-blue-dark);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1.25;
    padding: 7px 8px;
    text-align: left;
    width: 100%;
}

.graham-header-location-choice:hover,
.graham-header-location-choice:focus-visible,
.graham-header-location-choice.is-current {
    background: #e7f3fb;
    border-color: #1268ad;
    color: #075da8;
}

.graham-header-location-choice span {
    color: #16823b;
    display: inline !important;
    font-size: 0.9rem;
    margin-left: 8px;
}

.graham-header-location-manage {
    display: block !important;
    font-size: 0.74rem !important;
    padding: 8px 4px 2px !important;
}

.graham-header-icon {
    fill: currentColor;
    flex: 0 0 auto;
    height: 19px;
    width: 19px;
}

.graham-header-cart-count {
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 5px;
}

.graham-header-branding {
    background: #fff;
}

.graham-header-branding-inner {
    align-items: center;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    min-height: 112px;
    padding-bottom: 13px;
    padding-top: 13px;
}

.graham-header-logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.graham-header-logo-image {
    display: block;
    height: auto !important;
    max-height: 86px;
    max-width: 100%;
    object-fit: contain;
    width: clamp(260px, 20vw, 340px) !important;
}

.graham-header-logo-text {
    color: var(--graham-header-blue);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1.05;
    max-width: 230px;
}

.graham-header-logo-fallback {
    align-items: center;
    display: flex;
    gap: 12px;
}

.graham-header-logo-fallback-icon {
    border-radius: 10px;
    display: block;
    height: 64px;
    object-fit: contain;
    width: 64px;
}

.graham-header-product-search {
    align-items: stretch;
    border: 1px solid var(--graham-header-blue);
    display: flex;
    flex: 0 1 500px;
    margin: 0;
    max-width: 500px;
    width: 100%;
}

.graham-header-product-search input[type="search"] {
    appearance: none;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--graham-header-ink);
    flex: 1;
    font-size: 0.95rem;
    min-width: 0;
    outline: 0;
    padding: 11px 12px;
}

.graham-header-product-search:focus-within {
    box-shadow: 0 0 0 3px rgba(7, 93, 168, 0.14);
}

.graham-header-product-search button {
    align-items: center;
    background: var(--graham-header-blue);
    border: 0;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 0.8rem;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    margin: 0;
    min-width: 116px;
    padding: 0 13px;
    text-transform: uppercase;
}

.graham-header-product-search button:hover,
.graham-header-product-search button:focus-visible {
    background: var(--graham-header-blue-dark);
}

.graham-header-product-search .graham-barcode-scan-trigger {
    background: var(--graham-header-green);
    display: none;
    min-width: 58px;
}

.graham-header-product-search .graham-barcode-scan-trigger:hover,
.graham-header-product-search .graham-barcode-scan-trigger:focus-visible {
    background: #168d3a;
}

.graham-header-navigation {
    background: var(--graham-header-green);
    min-height: 40px;
}

.graham-header-nav-inner {
    display: flex;
    min-height: 40px;
}

.graham-header-nav-link {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    min-width: 112px;
    padding: 10px 18px;
    text-transform: uppercase;
}

.graham-header-nav-link:hover,
.graham-header-nav-link:focus-visible,
.graham-header-nav-link.is-current {
    background: var(--graham-header-blue);
    color: #fff;
}

html.graham-scanner-open {
    overflow: hidden;
}

.graham-barcode-scanner[hidden] {
    display: none !important;
}

.graham-barcode-scanner {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 999999;
}

.graham-barcode-backdrop {
    background: rgba(9, 28, 44, 0.74);
    border: 0;
    cursor: default;
    inset: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
}

.graham-barcode-dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(9, 28, 44, 0.34);
    color: var(--graham-header-ink);
    max-height: calc(100vh - 40px);
    max-width: 560px;
    overflow-y: auto;
    padding: 22px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.graham-barcode-dialog,
.graham-barcode-dialog * {
    box-sizing: border-box;
}

.graham-barcode-dialog-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.graham-barcode-kicker {
    color: #13863a;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.graham-barcode-dialog h2,
.graham-barcode-dialog h3,
.graham-barcode-dialog p {
    font-family: Arial, Helvetica, sans-serif;
}

.graham-barcode-dialog h2 {
    color: var(--graham-header-ink);
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0;
}

.graham-barcode-close {
    align-items: center;
    appearance: none;
    background: #edf4f8;
    border: 0;
    border-radius: 999px;
    color: var(--graham-header-ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.7rem;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    width: 38px;
}

.graham-barcode-close:hover,
.graham-barcode-close:focus-visible {
    background: #dbe8f0;
}

.graham-barcode-camera {
    aspect-ratio: 4 / 3;
    background: #071b2a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.graham-barcode-camera video {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.graham-barcode-camera.is-unavailable,
.graham-barcode-camera.is-paused {
    display: none;
}

.graham-barcode-target {
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.24);
    height: 34%;
    left: 8%;
    position: absolute;
    top: 33%;
    width: 84%;
}

.graham-barcode-status {
    background: #edf4f8;
    border-radius: 8px;
    color: #365268;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 12px 0;
    min-height: 40px;
    padding: 10px 12px;
}

.graham-barcode-status[data-state="success"] {
    background: #e7f7ed;
    color: #0d7431;
}

.graham-barcode-status[data-state="error"] {
    background: #fff0f0;
    color: #a11f28;
}

.graham-barcode-status[data-state="notice"] {
    background: #fff7e2;
    color: #76520b;
}

.graham-barcode-manual-form {
    margin: 0;
}

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

.graham-barcode-manual-row {
    display: flex;
    gap: 8px;
}

.graham-barcode-manual-row input {
    appearance: none;
    background: #fff;
    border: 1px solid #afc4d2;
    border-radius: 8px;
    box-shadow: none;
    color: var(--graham-header-ink);
    flex: 1;
    font-size: 1rem;
    min-width: 0;
    padding: 11px 12px;
}

.graham-barcode-manual-row button,
.graham-barcode-result-actions a {
    align-items: center;
    background: var(--graham-header-blue);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    padding: 11px 15px;
    text-decoration: none;
}

.graham-barcode-manual-row button:hover,
.graham-barcode-manual-row button:focus-visible,
.graham-barcode-result-actions a:hover,
.graham-barcode-result-actions a:focus-visible {
    background: var(--graham-header-blue-dark);
    color: #fff;
}

.graham-barcode-result {
    align-items: center;
    background: #f8fbfd;
    border: 1px solid #d7e3eb;
    border-radius: 12px;
    display: grid;
    gap: 14px;
    grid-template-columns: 112px minmax(0, 1fr);
    margin-top: 16px;
    padding: 14px;
}

.graham-barcode-result[hidden] {
    display: none !important;
}

.graham-barcode-add-order[hidden] {
    display: none !important;
}

.graham-barcode-result-image {
    background: #fff;
    border-radius: 8px;
    height: 112px;
    object-fit: contain;
    padding: 6px;
    width: 112px;
}

.graham-barcode-result-copy h3 {
    color: var(--graham-header-ink);
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 7px;
}

.graham-barcode-result-copy p {
    color: #49657a;
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 2px 0;
}

.graham-barcode-result-availability {
    color: #0d7431 !important;
    font-weight: 800;
}

.graham-barcode-result-price {
    color: var(--graham-header-ink) !important;
    font-weight: 800;
}

.graham-barcode-result-price:empty,
.graham-barcode-result-uom:empty,
.graham-barcode-result-sku:empty {
    display: none;
}

.graham-barcode-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.graham-barcode-result-actions .graham-barcode-view-item {
    background: #e0ebf2;
    color: var(--graham-header-blue-dark);
}

.graham-barcode-result-actions .graham-barcode-add-order {
    background: var(--graham-header-green);
}

.graham-barcode-result-actions .graham-barcode-add-order:hover,
.graham-barcode-result-actions .graham-barcode-add-order:focus-visible {
    background: #168d3a;
}

/* Remove low-priority account-bar details before any label can wrap. */
@media (max-width: 1360px) {
    .graham-header-info-inner,
    .graham-header-branding-inner,
    .graham-header-nav-inner {
        width: calc(100% - 32px);
    }

    .graham-header-info-left,
    .graham-header-info-right {
        gap: 14px;
    }

    .graham-info-hours {
        display: none;
    }
}

@media (max-width: 1180px) {
    .graham-info-location {
        display: none;
    }
}

@media (max-width: 1040px) {
    .graham-info-contact {
        display: none;
    }
}

@media (max-width: 960px) {
    .graham-header-info-left,
    .graham-header-info-right {
        gap: 12px;
    }

    .graham-header-branding-inner {
        gap: 24px;
        min-height: 96px;
    }

    .graham-header-logo-image {
        max-height: 72px;
        width: clamp(220px, 32vw, 280px) !important;
    }
}

@media (max-width: 920px) {
    .graham-header-account-label {
        display: none;
    }

    .graham-header-account-mobile-label {
        display: block;
    }

    .graham-header-cart > span:first-child {
        display: none;
    }

    .graham-header-account-toggle {
        min-width: 24px;
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (max-width: 820px) {
    body .graham-header-quote.graham-header-account .graham-quote-label {
        display: none;
    }
}

@media (max-width: 700px) {
    :root {
        --graham-account-bar-height: 32px;
    }

    .graham-header-info-bar,
    .graham-header-info-inner {
        min-height: 32px;
    }

    .graham-header-info-inner,
    .graham-header-branding-inner {
        width: calc(100% - 20px);
    }

    .graham-header-info-left,
    .graham-header-info-right {
        gap: 8px;
    }

    .graham-header-info-item,
    .graham-header-account,
    .graham-header-account-main,
    .graham-header-cart {
        font-size: 0.7rem;
        gap: 5px;
    }

    .graham-header-icon {
        height: 17px;
        width: 17px;
    }

    .graham-header-cart-count {
        height: 18px;
        min-width: 18px;
    }

    .graham-header-info-right {
        margin-left: auto;
    }

    .graham-header-account-main {
        font-size: 0.7rem;
        gap: 5px;
        min-height: 32px;
    }

    .graham-header-account-toggle {
        min-height: 32px;
        min-width: 26px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .graham-header-account-label {
        display: none;
    }

    .graham-header-account-mobile-label {
        display: block;
    }

    .graham-header-account-panel {
        left: auto;
        max-height: calc(100vh - var(--graham-account-bar-offset) - var(--graham-assisted-bar-height) - var(--graham-account-bar-height) - 16px);
        max-width: calc(100vw - 20px);
        min-width: 0;
        overflow-y: auto;
        position: fixed;
        right: 10px;
        top: calc(var(--graham-account-bar-offset) + var(--graham-assisted-bar-height) + var(--graham-account-bar-height) + 6px);
        width: 360px;
    }

    .graham-header-account span,
    .graham-header-cart > span:first-child,
    .graham-header-product-search button span {
        display: none;
    }

    .graham-header-account > .graham-header-login-label {
        display: inline;
    }

    .graham-header-branding-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        padding-bottom: 8px;
        padding-top: 8px;
    }

    .graham-header-logo {
        justify-content: center;
    }

    .graham-header-logo-image {
        max-height: 50px;
        width: clamp(170px, 52vw, 210px) !important;
    }

    .graham-header-logo-fallback {
        gap: 8px;
    }

    .graham-header-logo-fallback-icon {
        border-radius: 7px;
        height: 44px;
        width: 44px;
    }

    .graham-header-logo-text {
        font-size: 1.25rem;
        max-width: 180px;
    }

    .graham-header-product-search {
        flex-basis: auto;
        max-width: none;
    }

    .graham-header-product-search input[type="search"] {
        font-size: 0.88rem;
        padding: 9px 10px;
    }

    .graham-header-product-search button {
        min-width: 44px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .graham-header-product-search .graham-barcode-scan-trigger {
        display: flex;
    }

    .graham-header-nav-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow-x: hidden;
        width: 100%;
    }

    .graham-header-navigation,
    .graham-header-nav-inner {
        min-height: 36px;
    }

    .graham-header-nav-link {
        font-size: 0.74rem;
        line-height: 1.15;
        min-width: 0;
        padding: 8px 6px;
        text-align: center;
        white-space: normal;
    }

    .graham-barcode-scanner {
        align-items: flex-end;
        padding: 0;
    }

    .graham-barcode-dialog {
        border-radius: 18px 18px 0 0;
        max-height: 94vh;
        max-width: none;
        padding: 18px;
    }
}

/* 0.10.50: a white UPC control with an unmistakable blue barcode. */
@media (max-width: 700px) {
    .graham-header-product-search,
    .graham-header-product-search > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .graham-header-product-search input[type="search"] {
        flex: 1 1 auto;
        width: 1%;
    }

    .graham-header-product-search .graham-barcode-scan-trigger {
        background: #fff !important;
        border-left: 1px solid #c8dce9;
        color: var(--graham-header-blue) !important;
        flex: 0 0 46px;
        min-width: 46px !important;
        padding: 0 10px;
    }

    .graham-header-product-search .graham-barcode-scan-trigger .graham-header-icon {
        height: 24px;
        width: 24px;
    }

    .graham-header-product-search .graham-barcode-scan-trigger:hover,
    .graham-header-product-search .graham-barcode-scan-trigger:focus-visible {
        background: #edf6fb !important;
        color: var(--graham-header-blue-dark) !important;
    }
}

@media (max-width: 430px) {
    .graham-info-contact {
        display: none;
    }

    .graham-header-info-item,
    .graham-header-account,
    .graham-header-account-main,
    .graham-header-cart {
        font-size: 0.72rem;
    }

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

    .graham-barcode-result {
        align-items: start;
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .graham-barcode-result-image {
        height: 82px;
        width: 82px;
    }

    .graham-barcode-manual-row {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .graham-info-phone {
        display: none;
    }
}

/* 0.10.19: clean single-line mobile navigation. */
.graham-header-desktop-nav-links {
    display: flex;
    min-height: 40px;
    width: 100%;
}

.graham-header-mobile-menu {
    display: none;
}

.graham-header-tablet-nav {
    display: none;
}

@media (max-width: 700px) {
    .graham-header-navigation,
    .graham-header-nav-inner {
        min-height: 42px;
    }

    .graham-header-nav-inner {
        display: block;
        width: 100%;
    }

    .graham-header-desktop-nav-links {
        display: none;
    }

    .graham-header-mobile-menu {
        display: block;
        margin: 0;
        position: relative;
        width: 100%;
    }

    .graham-header-mobile-menu > summary {
        align-items: center;
        color: #fff;
        cursor: pointer;
        display: flex;
        font-size: 0.8rem;
        font-weight: 800;
        gap: 10px;
        justify-content: center;
        list-style: none;
        min-height: 42px;
        padding: 8px 16px;
        text-transform: uppercase;
        user-select: none;
        width: 100%;
    }

    .graham-header-mobile-menu > summary::-webkit-details-marker {
        display: none;
    }

    .graham-header-mobile-menu > summary::marker {
        content: "";
    }

    .graham-header-mobile-menu[open] > summary {
        background: var(--graham-header-blue);
    }

    .graham-mobile-menu-icon {
        display: inline-flex;
        flex-direction: column;
        gap: 3px;
        width: 20px;
    }

    .graham-mobile-menu-icon span {
        background: currentColor;
        border-radius: 999px;
        display: block;
        height: 2px;
        width: 20px;
    }

    .graham-header-mobile-links {
        background: #fff;
        border: 1px solid #d5e3ec;
        border-top: 0;
        box-shadow: 0 12px 26px rgba(11, 47, 74, 0.16);
        display: grid;
        left: 10px;
        overflow: hidden;
        position: absolute;
        right: 10px;
        top: 100%;
        z-index: 9999;
    }

    .graham-header-mobile-links .graham-header-nav-link {
        border-bottom: 1px solid #edf2f5;
        color: var(--graham-header-ink);
        display: flex;
        font-size: 0.82rem;
        justify-content: flex-start;
        min-height: 42px;
        padding: 9px 14px;
        text-align: left;
        white-space: nowrap;
    }

    .graham-header-mobile-links .graham-header-nav-link:last-child {
        border-bottom: 0;
    }

    .graham-header-mobile-links .graham-header-nav-link:hover,
    .graham-header-mobile-links .graham-header-nav-link:focus-visible,
    .graham-header-mobile-links .graham-header-nav-link.is-current {
        background: #eef6fb;
        color: var(--graham-header-blue-dark);
    }
}

@media (max-width: 430px) {
    .graham-header-nav-inner {
        display: block;
    }
}


/* 0.10.21: reliable compact mobile navigation and header. */
@media (max-width: 700px) {
    .graham-custom-header,
    .graham-header-navigation,
    .graham-header-nav-inner,
    .graham-header-mobile-menu {
        overflow: visible !important;
    }

    .graham-header-nav-inner {
        display: block !important;
        width: 100% !important;
    }

    .graham-header-mobile-menu {
        display: block !important;
        position: static !important;
        width: 100%;
    }

    .graham-header-mobile-menu > summary {
        background: var(--graham-header-green);
        min-height: 38px;
        padding: 6px 12px;
    }

    .graham-header-mobile-menu[open] > summary {
        background: var(--graham-header-blue);
    }

    .graham-header-mobile-menu:not([open]) > .graham-header-mobile-links {
        display: none !important;
    }

    .graham-header-mobile-menu[open] > .graham-header-mobile-links {
        display: flex !important;
    }

    .graham-header-mobile-links {
        background: #fff;
        border: 1px solid #d5e3ec;
        border-top: 0;
        box-shadow: 0 8px 20px rgba(11, 47, 74, 0.12);
        flex-direction: column;
        left: auto !important;
        overflow: visible !important;
        position: static !important;
        right: auto !important;
        top: auto !important;
        width: 100%;
        z-index: auto;
    }

    .graham-header-mobile-links .graham-header-nav-link {
        align-items: center;
        border-bottom: 1px solid #edf2f5;
        display: flex;
        font-size: 0.78rem;
        justify-content: flex-start;
        min-height: 36px;
        padding: 7px 12px;
        text-align: left;
        white-space: normal;
        width: 100%;
    }

    .graham-header-info-bar,
    .graham-header-info-inner {
        min-height: 32px;
    }

    .graham-header-branding-inner {
        gap: 5px;
        padding-bottom: 6px;
        padding-top: 6px;
    }

    .graham-header-logo-image {
        max-height: 44px;
        width: clamp(158px, 48vw, 196px) !important;
    }

    .graham-header-product-search input[type="search"] {
        min-height: 36px;
        padding-bottom: 7px;
        padding-top: 7px;
    }

    .graham-header-product-search button,
    .graham-header-product-search .graham-barcode-scan-trigger {
        min-height: 36px;
    }
}
/* Shared click-to-open explanations for compact catalogue controls. */
.graham-feature-control{position:relative;display:inline-flex;align-items:center;gap:5px}
.graham-feature-help{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 22px!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;margin:0!important;padding:0!important;border:1px solid currentColor!important;border-radius:50%!important;background:#fff!important;color:#075b9d!important;font:700 13px/1 Arial,sans-serif!important;letter-spacing:0!important;box-shadow:none!important;cursor:pointer}
.graham-feature-help:hover,.graham-feature-help:focus-visible,.graham-feature-help[aria-expanded="true"]{background:#075b9d!important;color:#fff!important;outline:2px solid #fff;outline-offset:2px}
.graham-feature-help-panel[hidden]{display:none!important}
.graham-feature-help-panel{position:absolute;z-index:100010;left:0;top:calc(100% + 8px);box-sizing:border-box;width:min(280px,calc(100vw - 24px));padding:10px 12px;border:1px solid #b9cbd8;border-radius:6px;background:#fff;color:#16354d;font:600 12px/1.45 Arial,sans-serif;letter-spacing:0;box-shadow:0 6px 20px rgba(0,42,74,.24);text-align:left;white-space:normal}
.graham-mobile-stock-control>.graham-feature-help-panel,.gdl-top-edit-mode-toggle>.graham-feature-help-panel{left:auto;right:0}
.gdl-top-edit-mode-toggle .graham-feature-help{background:#fff!important;color:#075b9d!important}
.gdl-top-edit-mode-toggle .graham-feature-help:hover,.gdl-top-edit-mode-toggle .graham-feature-help:focus-visible,.gdl-top-edit-mode-toggle .graham-feature-help[aria-expanded="true"]{background:#075b9d!important;color:#fff!important}

/* Compact mobile header: search disclosure, menu and persistent stock switch. */
.graham-search-toggle,.graham-search-toggle-chevron,.graham-header-mobile-products,.graham-mobile-stock,.graham-mobile-stock-control{display:none}
@media(max-width:767px){
 .graham-header-branding-inner{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;padding:8px 12px!important;gap:6px!important}
 .graham-header-branding-inner .graham-header-logo{margin:0!important;flex:1 1 auto!important;width:auto!important;text-align:left!important}
 .graham-header-logo-image{max-height:58px!important;width:clamp(180px,58vw,240px)!important}
 .graham-search-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:8px;border:1px solid #005397;background:#075b9d;color:#fff;border-radius:8px;box-shadow:0 2px 5px rgba(0,61,105,.2);cursor:pointer}
 .graham-search-toggle .graham-header-icon{width:25px;height:25px}
 .graham-search-toggle[aria-expanded="true"] .graham-header-icon{display:none}
 .graham-search-toggle[aria-expanded="true"] .graham-search-toggle-chevron{display:block;width:15px;height:15px;border-left:3px solid currentColor;border-top:3px solid currentColor;transform:rotate(45deg) translate(3px,3px)}
 .graham-search-toggle:hover,.graham-search-toggle:focus-visible,.graham-search-toggle[aria-expanded="true"]{background:#004d87;color:#fff;border-color:#004273;outline:3px solid rgba(22,134,63,.45);outline-offset:2px}
 .graham-header-branding-inner .graham-header-product-search{display:none!important}
 .graham-header-branding-inner.graham-search-open .graham-header-product-search{display:flex!important;flex:0 0 100%;width:100%!important;margin:4px 0 0!important}
 .graham-header-nav-inner{display:flex!important;position:relative;align-items:flex-start;justify-content:space-between;padding:0!important;min-height:44px}
 .graham-header-mobile-menu{flex:1;min-width:0;margin:0!important;width:auto!important}
 .graham-header-mobile-menu>summary{justify-content:flex-start!important;min-height:44px!important;width:max-content!important;padding:10px 16px!important}
 .graham-header-mobile-menu[open] .graham-header-mobile-links{width:100vw!important}
 .graham-mobile-stock-control{display:flex;align-items:center;gap:5px;position:absolute;right:10px;top:0;min-height:44px}
 .graham-mobile-stock{display:flex;align-items:center;gap:6px;position:static;min-height:44px;padding:4px 0;border:0;background:transparent;color:#fff;font:600 12px Arial,sans-serif}
 .graham-mobile-stock-control>.graham-feature-help{background:transparent!important;color:#fff!important}
 .graham-mobile-stock-control>.graham-feature-help:hover,.graham-mobile-stock-control>.graham-feature-help:focus-visible,.graham-mobile-stock-control>.graham-feature-help[aria-expanded="true"]{background:#fff!important;color:#075b9d!important}
 .graham-mobile-stock .graham-switch-track{display:block;width:30px;height:18px;border-radius:12px;background:#657b88;position:relative;border:1px solid #fff}
 .graham-mobile-stock .graham-switch-track:after{content:'';position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:white}
 .graham-mobile-stock[aria-checked="true"] .graham-switch-track{background:#005eaa}
 .graham-mobile-stock[aria-checked="true"] .graham-switch-track:after{left:14px}
 body.single-product main,body.single-product #primary,body.single-product .site-main{padding-top:8px!important;margin-top:0!important}
 body.single-product .woocommerce-breadcrumb{margin-top:0!important;margin-bottom:10px!important;padding-top:0!important;font-size:11px!important;line-height:1.5!important}
 body.single-product .product{margin-top:0!important}
 .graham-browse-bar .graham-filter-toggle[aria-label="In stock"]{display:none!important}
 .graham-product-filter-bar:not(:has(.graham-filter-toggle[aria-label="My Products"],.graham-filter-toggle[aria-label="Previously purchased"])){display:none!important}
}

/* 0.13.415: keep Products immediately available beside the compact phone menu. */
@media (max-width: 559px) {
    .graham-header-nav-inner {
        align-items: stretch !important;
        display: grid !important;
        grid-template-columns: minmax(92px, 1fr) minmax(84px, 1fr) auto !important;
        min-height: 44px;
        position: relative;
    }

    .graham-header-mobile-products {
        align-items: center;
        color: #fff;
        display: flex;
        font-size: 0.78rem;
        font-weight: 800;
        justify-content: center;
        min-height: 44px;
        padding: 8px 12px;
        text-transform: uppercase;
    }

    .graham-header-mobile-products:hover,
    .graham-header-mobile-products:focus-visible,
    .graham-header-mobile-products.is-current {
        background: var(--graham-header-blue);
        color: #fff;
    }

    .graham-header-mobile-menu {
        grid-column: 2;
        min-width: 0;
        position: static !important;
    }

    .graham-header-mobile-menu > summary {
        justify-content: center !important;
        min-height: 44px !important;
        padding: 8px 10px !important;
        width: 100% !important;
    }

    .graham-header-mobile-menu[open] > .graham-header-mobile-links {
        display: flex !important;
        left: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: 100% !important;
        width: 100% !important;
        z-index: 1005;
    }

    .graham-mobile-stock-control {
        align-self: stretch;
        background: var(--graham-header-green);
        grid-column: 3;
        min-width: 0;
        padding: 0 8px 0 5px;
        position: static !important;
    }

    .graham-mobile-stock > span:last-child {
        display: none;
    }
}
@media(max-width:767px){.graham-header-branding-inner,.graham-header-nav-inner,.graham-header-mobile-links,.graham-header-mobile-links *{box-sizing:border-box}}

/* Keep the persistent stock control useful without letting it dominate the menu. */
@media(max-width:767px){
 .graham-mobile-stock{gap:5px!important;font-size:11px!important}
 .graham-mobile-stock .graham-switch-track{width:26px!important;height:14px!important;border-radius:9px!important}
 .graham-mobile-stock .graham-switch-track:after{left:2px!important;top:2px!important;width:8px!important;height:8px!important}
 .graham-mobile-stock[aria-checked="true"] .graham-switch-track:after{left:14px!important}
 .graham-mobile-stock-control>.graham-feature-help{flex-basis:20px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;font-size:11px!important}
}

/* Tablet navigation uses the compact menu before the desktop links can wrap or overflow. */
@media (min-width: 701px) and (max-width: 900px) {
    .graham-custom-header,
    .graham-header-navigation,
    .graham-header-nav-inner,
    .graham-header-mobile-menu {
        overflow: visible !important;
    }

    .graham-header-navigation,
    .graham-header-nav-inner {
        min-height: 44px;
    }

    .graham-header-nav-inner {
        display: flex !important;
        position: relative;
        align-items: flex-start;
        width: 100% !important;
        padding: 0 !important;
    }

    .graham-header-desktop-nav-links {
        display: none !important;
    }

    .graham-header-mobile-menu {
        display: block !important;
        position: static !important;
        flex: 1;
        min-width: 0;
        width: auto !important;
        margin: 0 !important;
    }

    .graham-header-mobile-menu > summary {
        justify-content: flex-start !important;
        min-height: 44px !important;
        width: max-content !important;
        padding: 10px 16px !important;
        background: var(--graham-header-green);
    }

    .graham-header-mobile-menu:not([open]) > .graham-header-mobile-links {
        display: none !important;
    }

    .graham-header-mobile-menu[open] > .graham-header-mobile-links {
        display: flex !important;
    }

    .graham-header-mobile-links {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: flex;
        flex-direction: column;
        width: 100% !important;
        overflow: visible !important;
        background: #fff;
        border: 1px solid #d5e3ec;
        border-top: 0;
        box-shadow: 0 8px 20px rgba(11, 47, 74, 0.12);
    }

    .graham-header-mobile-links .graham-header-nav-link {
        display: flex;
        justify-content: flex-start;
        min-height: 38px;
        width: 100%;
        padding: 8px 14px;
        color: var(--graham-header-ink);
        white-space: normal;
    }
}

/* 0.13.203: keep the main destinations visible on tablets and unfolded phones. */
@media (min-width: 560px) and (max-width: 1100px) {
    .graham-custom-header,
    .graham-header-navigation,
    .graham-header-nav-inner,
    .graham-header-tablet-nav,
    .graham-header-tablet-more {
        overflow: visible !important;
    }

    .graham-header-navigation,
    .graham-header-nav-inner {
        min-height: 44px;
    }

    .graham-header-nav-inner {
        display: flex !important;
        padding: 0 !important;
        position: relative;
        width: 100% !important;
    }

    .graham-header-desktop-nav-links,
    .graham-header-mobile-menu {
        display: none !important;
    }

    .graham-header-tablet-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: 44px;
        width: 100%;
    }

    .graham-header-tablet-nav > .graham-header-nav-link,
    .graham-header-tablet-more > summary {
        align-items: center;
        color: #fff;
        cursor: pointer;
        display: flex;
        font-size: 0.78rem;
        font-weight: 800;
        justify-content: center;
        list-style: none;
        min-height: 44px;
        min-width: 0;
        padding: 8px 10px;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .graham-header-tablet-more {
        margin: 0;
        min-width: 0;
        position: relative;
    }

    .graham-header-tablet-more > summary {
        gap: 7px;
        width: 100%;
    }

    .graham-header-tablet-more > summary::-webkit-details-marker {
        display: none;
    }

    .graham-header-tablet-more > summary::marker {
        content: "";
    }

    .graham-header-tablet-more-icon {
        font-size: 0.75rem;
        line-height: 1;
    }

    .graham-header-tablet-nav > .graham-header-nav-link:hover,
    .graham-header-tablet-nav > .graham-header-nav-link:focus-visible,
    .graham-header-tablet-nav > .graham-header-nav-link.is-current,
    .graham-header-tablet-more[open] > summary,
    .graham-header-tablet-more:has(.graham-header-nav-link.is-current) > summary {
        background: var(--graham-header-blue);
        color: #fff;
    }

    .graham-header-tablet-more-links {
        background: #fff;
        border: 1px solid #c8dce8;
        border-top: 0;
        box-shadow: 0 8px 20px rgba(11, 47, 74, 0.16);
        display: flex;
        flex-direction: column;
        min-width: 230px;
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 1005;
    }

    .graham-header-tablet-more:not([open]) > .graham-header-tablet-more-links {
        display: none;
    }

    .graham-header-tablet-more-links .graham-header-nav-link {
        color: var(--graham-header-ink);
        justify-content: flex-start;
        min-height: 40px;
        padding: 9px 14px;
        text-align: left;
        white-space: normal;
        width: 100%;
    }

    .graham-header-tablet-more-links .graham-header-nav-link:hover,
    .graham-header-tablet-more-links .graham-header-nav-link:focus-visible,
    .graham-header-tablet-more-links .graham-header-nav-link.is-current {
        background: #eef6fb;
        color: var(--graham-header-blue-dark);
    }
}

@media (min-width: 560px) and (max-width: 900px) {
    .graham-header-nav-inner:has(> .gdl-top-edit-mode-toggle) .graham-header-tablet-nav {
        padding-right: 96px;
    }

    .graham-header-nav-inner > .gdl-top-edit-mode-toggle {
        right: 10px !important;
    }
}

/* 0.13.412: reserve a real header column for the stock switch on unfolded phones. */
@media (min-width: 560px) and (max-width: 767px) {
    .graham-header-nav-inner {
        align-items: stretch !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .graham-header-tablet-nav {
        min-width: 0;
        width: 100% !important;
    }

    .graham-mobile-stock-control {
        align-self: stretch;
        background: var(--graham-header-green);
        grid-column: 2;
        min-width: 0;
        padding: 0 10px 0 6px;
        position: static !important;
    }

    .graham-mobile-stock > span:last-child {
        display: none;
    }
}

/* 0.13.453: a shorter header leaves more catalogue visible on tablets and phones. */
@media (min-width: 701px) and (max-width: 1280px) {
    .graham-header-branding-inner {
        gap: 24px;
        min-height: 88px;
        padding-bottom: 8px;
        padding-top: 8px;
    }

    .graham-header-logo-image {
        max-height: 64px;
        width: clamp(220px, 26vw, 280px) !important;
    }

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

    .graham-header-product-search button {
        min-height: 38px;
    }
}

@media (max-width: 700px) {
    .graham-header-branding-inner {
        gap: 5px !important;
        padding: 6px 10px !important;
    }

    .graham-header-logo-image {
        max-height: 48px !important;
        width: clamp(170px, 56vw, 220px) !important;
    }

    .graham-search-toggle {
        flex-basis: 40px;
        height: 40px;
        width: 40px;
    }

    .graham-header-branding-inner.graham-search-open .graham-header-product-search {
        margin-top: 2px !important;
    }

    .graham-header-product-search input[type="search"],
    .graham-header-product-search button,
    .graham-header-product-search .graham-barcode-scan-trigger {
        min-height: 36px;
    }

    .graham-header-navigation,
    .graham-header-nav-inner,
    .graham-header-mobile-products,
    .graham-header-mobile-menu > summary,
    .graham-mobile-stock-control,
    .graham-mobile-stock {
        min-height: 42px !important;
    }
}
