.graham-app-splash,
.graham-app-splash * {
    box-sizing: border-box;
}

.graham-app-splash {
    align-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(30, 170, 82, 0.09), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
    color: #17324a;
    display: none;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    opacity: 0;
    padding:
        max(28px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
    position: fixed;
    transition: opacity 280ms ease;
    width: 100%;
    z-index: 2147483646;
}

html.graham-app-loading,
html.graham-app-loading body {
    overflow: hidden !important;
}

html.graham-app-loading .graham-app-splash,
html.graham-app-splash-closing .graham-app-splash {
    display: flex;
}

html.graham-app-loading .graham-app-splash {
    opacity: 1;
}

html.graham-app-splash-closing .graham-app-splash {
    opacity: 0;
}

.graham-app-splash-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    margin: auto;
    max-width: 560px;
    text-align: center;
    width: 100%;
}

.graham-app-splash-logo {
    display: block;
    height: auto;
    margin: 0 auto clamp(32px, 7vh, 64px);
    max-width: 100%;
    object-fit: contain;
    width: min(88vw, 460px);
}

.graham-app-splash-welcome,
.graham-app-splash-title {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}

.graham-app-splash-welcome {
    color: #168b43;
    font-size: clamp(0.82rem, 3.4vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.graham-app-splash-title {
    color: #075da8;
    font-size: clamp(1.65rem, 7vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 30px;
    margin-top: 0;
}

.graham-app-splash-progress {
    background: #dce8f0;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    position: relative;
    width: min(66vw, 260px);
}

.graham-app-splash-progress span {
    animation: graham-app-splash-progress 1.15s ease-in-out infinite;
    background: linear-gradient(90deg, #075da8 0%, #075da8 62%, #1eaa52 62%, #1eaa52 100%);
    border-radius: inherit;
    display: block;
    height: 100%;
    left: -46%;
    position: absolute;
    top: 0;
    width: 46%;
}

@keyframes graham-app-splash-progress {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(320%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .graham-app-splash {
        transition: none;
    }

    .graham-app-splash-progress span {
        animation: none;
        left: 0;
        width: 100%;
    }
}

.graham-navigation-loading,
.graham-navigation-loading * {
    box-sizing: border-box;
}

.graham-navigation-loading[hidden] {
    display: none !important;
}

.graham-navigation-loading {
    background: transparent;
    inset: 0;
    pointer-events: none;
    position: fixed;
    transition: background-color 180ms ease;
    z-index: 2147483645;
}

.graham-navigation-loading-bar {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 5px rgba(4, 48, 82, 0.16);
    height: 5px;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
}

.graham-navigation-loading-bar span {
    animation: graham-navigation-progress 1.05s ease-in-out infinite;
    background: linear-gradient(90deg, #075da8 0 68%, #1eaa52 68% 100%);
    display: block;
    height: 100%;
    left: -36%;
    position: absolute;
    width: 36%;
}

.graham-navigation-loading-panel {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #c9d9e5;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(4, 48, 82, 0.22);
    color: #123d5d;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    gap: 15px;
    left: 50%;
    max-width: calc(100vw - 32px);
    opacity: 0;
    padding: 19px 20px;
    position: absolute;
    top: max(88px, 16vh);
    transform: translate(-50%, -10px);
    transition: opacity 180ms ease, transform 180ms ease;
    width: min(440px, calc(100vw - 32px));
}

.graham-navigation-loading.is-slow {
    background: rgba(238, 246, 251, 0.72);
    pointer-events: auto;
}

.graham-navigation-loading.is-slow .graham-navigation-loading-panel {
    opacity: 1;
    transform: translate(-50%, 0);
}

.graham-navigation-loading-spinner {
    animation: graham-navigation-spin 780ms linear infinite;
    border: 4px solid #d6e4ed;
    border-radius: 50%;
    border-top-color: #168b43;
    flex: 0 0 32px;
    height: 32px;
    width: 32px;
    margin-top: 4px;
}

.graham-navigation-loading-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
    width: 100%;
}

.graham-navigation-loading-state {
    color: #526d81;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.graham-navigation-loading-copy strong {
    color: #075da8;
    font-size: 1.06rem;
    line-height: 1.25;
}

.graham-navigation-loading-copy small {
    color: #526d81;
    font-size: 0.82rem;
    line-height: 1.35;
}

.graham-navigation-loading-cancel {
    justify-self: start;
    min-height: 38px;
    margin-top: 7px;
    padding: 8px 12px;
    border: 1px solid #075da8;
    border-radius: 4px;
    background: #fff;
    color: #075da8;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
}

.graham-navigation-loading-cancel:hover,
.graham-navigation-loading-cancel:focus-visible {
    background: #eaf3f9;
    outline: 2px solid transparent;
}

.graham-navigation-loading-cancel[hidden] {
    display: none !important;
}

.graham-navigation-loading.is-long-wait .graham-navigation-loading-panel {
    border-color: #9eb8ca;
    box-shadow: 0 18px 44px rgba(4, 48, 82, 0.28);
}

@media (max-width: 520px) {
    .graham-navigation-loading-panel {
        gap: 12px;
        padding: 17px 16px;
        top: max(76px, 12vh);
    }

    .graham-navigation-loading-spinner {
        flex-basis: 28px;
        height: 28px;
        width: 28px;
    }
}

@keyframes graham-navigation-progress {
    from { transform: translateX(0); }
    to { transform: translateX(380%); }
}

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

@media (prefers-reduced-motion: reduce) {
    .graham-navigation-loading,
    .graham-navigation-loading-panel {
        transition: none;
    }

    .graham-navigation-loading-bar span,
    .graham-navigation-loading-spinner {
        animation: none;
    }

    .graham-navigation-loading-bar span {
        left: 0;
        width: 100%;
    }
}

.graham-mobile-install,
.graham-mobile-install *,
.graham-mobile-install-launcher-shell,
.graham-mobile-install-launcher-shell *,
.graham-mobile-install-launcher,
.graham-mobile-install-launcher * {
    box-sizing: border-box;
}

.graham-mobile-install[hidden],
.graham-mobile-install-launcher-shell[hidden],
.graham-mobile-install-launcher[hidden] {
    display: none !important;
}

.graham-mobile-install-launcher-shell {
    align-items: center;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    gap: 5px;
    left: 12px;
    position: fixed;
    z-index: 99997;
}

.graham-mobile-install-launcher {
    align-items: center;
    appearance: none;
    background: #075da8;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(10, 49, 79, 0.28);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 8px;
    line-height: 1;
    padding: 6px 12px 6px 6px;
}

.graham-mobile-install-launcher-dismiss {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #c9dce8;
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(10, 49, 79, 0.2);
    color: #17324a;
    cursor: pointer;
    display: flex;
    font-size: 1.1rem;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    width: 28px;
}

.graham-mobile-install-launcher-dismiss:hover,
.graham-mobile-install-launcher-dismiss:focus-visible {
    background: #eef6fb;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.graham-mobile-install-launcher:hover,
.graham-mobile-install-launcher:focus-visible {
    background: #064b88;
}

.graham-mobile-install-launcher img {
    border-radius: 50%;
    display: block;
    height: 32px;
    width: 32px;
}

.graham-mobile-install {
    align-items: center;
    background: #fff;
    border: 1px solid #c9dce8;
    border-radius: 14px;
    bottom: 18px;
    box-shadow: 0 15px 42px rgba(10, 49, 79, 0.22);
    color: #17324a;
    display: grid;
    font-family: Arial, Helvetica, sans-serif;
    gap: 11px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    left: 50%;
    max-width: min(580px, calc(100% - 24px));
    padding: 12px 42px 12px 12px;
    position: fixed;
    transform: translateX(-50%);
    width: max-content;
    z-index: 99998;
}

.graham-mobile-install-icon {
    align-items: center;
    border-radius: 11px;
    display: flex;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.graham-mobile-install-icon img {
    display: block;
    height: 46px;
    width: 46px;
}

.graham-mobile-install-copy {
    min-width: 0;
}

.graham-mobile-install-copy strong,
.graham-mobile-install-copy span {
    display: block;
}

.graham-mobile-install-copy strong {
    color: #064b88;
    font-size: 0.92rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.graham-mobile-install-copy span,
.graham-mobile-install-copy p {
    color: #526b7d;
    font-size: 0.76rem;
    line-height: 1.35;
    margin: 0;
}

.graham-mobile-install-copy p {
    background: #eef6fb;
    border-radius: 7px;
    color: #17324a;
    margin-top: 7px;
    padding: 7px 9px;
}

.graham-mobile-install-action,
.graham-mobile-install-close {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.graham-mobile-install-action {
    background: #1eaa52;
    border-radius: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 9px 12px;
    white-space: nowrap;
}

.graham-mobile-install-action:hover,
.graham-mobile-install-action:focus-visible {
    background: #12833c;
}

.graham-mobile-install-close {
    align-items: center;
    background: transparent;
    color: #5e7283;
    display: flex;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
    html {
        margin-top: 0 !important;
    }

    #wpadminbar,
    .graham-mobile-install,
    .graham-mobile-install-launcher-shell,
    .graham-mobile-install-launcher {
        display: none !important;
    }

    body.admin-bar {
        --graham-account-bar-offset: 0px;
        padding-top: 0 !important;
    }
}

html.graham-app-standalone {
    margin-top: 0 !important;
}

html.graham-app-standalone #wpadminbar,
html.graham-app-standalone .graham-mobile-install,
html.graham-app-standalone .graham-mobile-install-launcher-shell,
html.graham-app-standalone .graham-mobile-install-launcher {
    display: none !important;
}

html.graham-app-standalone body.admin-bar {
    --graham-account-bar-offset: 0px;
    padding-top: 0 !important;
}

@media (max-width: 600px) {
    .graham-mobile-install-launcher-shell {
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
    }

    .graham-mobile-install {
        bottom: max(8px, env(safe-area-inset-bottom));
        gap: 8px;
        grid-template-columns: 40px minmax(0, 1fr);
        max-width: calc(100% - 14px);
        padding: 9px 38px 9px 9px;
        width: calc(100% - 14px);
    }

    .graham-mobile-install-icon {
        border-radius: 9px;
        font-size: 1.55rem;
        height: 40px;
        width: 40px;
    }

    .graham-mobile-install-copy strong {
        font-size: 0.84rem;
    }

    .graham-mobile-install-copy span,
    .graham-mobile-install-copy p {
        font-size: 0.72rem;
    }

    .graham-mobile-install-action {
        grid-column: 2;
        justify-self: start;
        padding: 7px 10px;
    }
}

/* 0.10.102: one complete mobile row for every storefront tile. */
@media (max-width: 700px) {
    :root {
        --graham-mobile-page-edge: 5px;
    }

    body.graham-page-design-active .graham-page-container,
    body.graham-page-design-active .graham-functional-banner-inner,
    body.graham-catalog-view .graham-catalog-shell,
    body.graham-account-page .woocommerce,
    body.graham-cart-page main .entry-content,
    body.graham-cart-page main .wp-block-post-content,
    body.graham-checkout-page main .entry-content,
    body.graham-checkout-page main .wp-block-post-content,
    body.single-product main .entry-content,
    body.single-product main .wp-block-post-content {
        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;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-page-design-active .graham-page-container,
    body.graham-page-design-active .graham-functional-banner-inner,
    body.graham-catalog-view .graham-catalog-shell {
        padding-left: var(--graham-mobile-page-edge) !important;
        padding-right: var(--graham-mobile-page-edge) !important;
    }

    body.graham-cart-page .wp-site-blocks main,
    body.graham-checkout-page .wp-site-blocks main,
    body.graham-account-page .wp-site-blocks main,
    body.graham-policy-page .wp-site-blocks main,
    body.graham-cart-page main.wp-block-group,
    body.graham-checkout-page main.wp-block-group,
    body.graham-account-page main.wp-block-group,
    body.graham-policy-page main.wp-block-group {
        padding-left: var(--graham-mobile-page-edge) !important;
        padding-right: var(--graham-mobile-page-edge) !important;
    }

    body.graham-catalog-view .graham-catalog-shell {
        transform: none !important;
    }

    body.graham-page-design-active :where(
        .graham-home-hero-inner,
        .graham-department-grid,
        .graham-help-grid,
        .graham-home-product-loop ul.products,
        .graham-process-grid,
        .graham-contact-card-grid,
        .graham-warehouse-grid,
        .graham-contact-form-layout,
        .graham-account-intro-grid,
        .graham-form-grid,
        .graham-address-grid,
        .graham-saved-products-grid,
        .graham-product-link-workspace,
        .graham-category-card-grid,
        .graham-catalog-main .wc-block-product-template,
        .graham-catalog-main ul.products,
        .related ul.products,
        .upsells ul.products,
        .cross-sells ul.products,
        .wc-block-grid__products,
        .wc-block-components-sidebar-layout
    ) {
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !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;
    }

    body.graham-page-design-active :where(
        .graham-home-search-card,
        .graham-department-card,
        .graham-help-card,
        .graham-home-product-loop ul.products li.product,
        .graham-process-grid > li,
        .graham-about-contact-card,
        .graham-contact-card,
        .graham-warehouse-card,
        .graham-contact-form-card,
        .graham-account-application-form,
        .graham-documents-heading,
        .graham-document-detail,
        .graham-document-table-wrap,
        .graham-saved-list-defaults,
        .graham-saved-list-order-form,
        .graham-saved-product-card,
        .graham-linked-business-account,
        .graham-view-as-company,
        .graham-product-links-admin,
        .graham-product-search-panel,
        .graham-product-link-results,
        .graham-product-link-editor,
        .graham-address-card,
        .graham-member-card,
        .graham-team-access,
        .graham-catalog-intro,
        .graham-catalog-filter-panel,
        .graham-mobile-category-nav,
        .graham-category-card,
        .graham-catalog-main .wc-block-product,
        .graham-catalog-main ul.products li.product,
        .related ul.products li.product,
        .upsells ul.products li.product,
        .cross-sells ul.products li.product,
        .wc-block-grid__product,
        .wc-block-cart__main,
        .wc-block-cart__sidebar,
        .wc-block-checkout__main,
        .wc-block-checkout__sidebar,
        .cart_totals,
        .woocommerce-checkout-review-order
    ) {
        align-self: stretch !important;
        box-sizing: border-box !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 :where(
        .woocommerce-MyAccount-navigation,
        .woocommerce-MyAccount-navigation ul,
        .woocommerce-MyAccount-content,
        .woocommerce-MyAccount-content > section,
        .woocommerce-MyAccount-content > div,
        .graham-saved-lists-page,
        .graham-documents
    ),
    body.graham-cart-page :where(
        .woocommerce,
        .wp-block-woocommerce-cart,
        .wc-block-cart,
        .cart-collaterals
    ),
    body.graham-checkout-page :where(
        .woocommerce,
        .wp-block-woocommerce-checkout,
        .wc-block-checkout,
        form.checkout
    ),
    body.single-product :where(
        .woocommerce,
        div.product,
        div.product > *,
        .related,
        .upsells
    ) {
        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.105: escape narrow theme grid columns on every Graham content page. */
    body.graham-page-design-active :where(
        .wp-site-blocks,
        .wp-site-blocks > main,
        main,
        main > article,
        article.type-page,
        .site-content,
        .content-area,
        .site-main,
        .entry-content,
        .wp-block-post-content,
        main > .wp-block-group,
        main .wp-block-group__inner-container,
        main .is-layout-constrained,
        .graham-page
    ) {
        align-self: stretch !important;
        box-sizing: border-box !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-page-design-active .graham-page > :where(
        .graham-page-hero,
        .graham-home-hero,
        .graham-page-section,
        .graham-contact-strip
    ) {
        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;
    }
}
