:root {
    --ink: #202825;
    --muted: #68736e;
    --line: #dce4df;
    --soft: #f3f6f4;
    --green: #18764b;
    --green-soft: #e8f3ed;
    --red: #d91f27;
    --red-dark: #b91d24;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body {
    color: var(--ink);
    background: #f4f6f5;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: rgba(24, 118, 75, .3);
}

.button {
    min-height: 42px;
    border-radius: 6px;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.button-primary {
    background: var(--red);
}

.button-primary:hover {
    background: var(--red-dark);
    box-shadow: 0 3px 10px rgba(185, 29, 36, .15);
}

.button-secondary {
    border-color: #c9d5ce;
}

.button-secondary:hover,
.category-tab:hover {
    border-color: #8fa79a;
}

.quote-wrap {
    width: min(100%, 1440px);
    padding: 24px 32px 40px;
}

.quote-topbar {
    align-items: center;
    min-height: 0;
}

.quote-logo {
    display: grid;
    width: max-content;
    gap: 2px;
    text-decoration: none;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.brand-wordmark-sop {
    color: var(--red);
}

.brand-wordmark-life {
    color: var(--green);
}

.brand-tagline {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.quote-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.quote-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #46504b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.quote-contact a {
    text-decoration: none;
}

.quote-contact a:hover {
    color: var(--green);
}

.top-login {
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.top-login:hover {
    border-color: var(--line);
    background: #fff;
    text-decoration: none;
}

.quote-heading {
    align-items: center;
    margin-top: 16px;
    padding: 20px 0 18px;
}

.quote-heading h1,
.order-heading h1 {
    color: #202825;
}

.quote-actions {
    gap: 9px;
}

.quote-actions .button {
    white-space: nowrap;
}

.catalog-tools {
    align-items: end;
    padding: 14px 0 12px;
}

.search-wrap input,
.order-filter-bar input,
.order-filter-bar select,
.admin-filters input,
.admin-filters select,
.form-field input:not([type=checkbox]):not([type=file]),
.form-field textarea,
.auth-panel input:not([type=checkbox]) {
    min-height: 44px;
    border-color: #ccd7d1;
    border-radius: 6px;
    background: #fff;
}

.search-wrap input:focus,
.order-filter-bar input:focus,
.order-filter-bar select:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.form-field input:focus,
.form-field textarea:focus,
.auth-panel input:focus {
    border-color: #78a48c;
    box-shadow: 0 0 0 3px rgba(24, 118, 75, .09);
}

.category-tab {
    border-color: #d7e0db;
    border-radius: 6px;
}

.category-tab.is-active {
    background: #27352e;
    border-color: #27352e;
}

.quote-table-wrap {
    border-color: #dbe3de;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(30, 48, 38, .035);
}

.quote-table thead th {
    background: #eff3f0;
    color: #46534c;
}

.quote-table tbody tr:last-child td {
    border-bottom-color: transparent;
}

.product-row:hover {
    background: #f8fbf9;
}

.quote-table .image-placeholder {
    display: inline-flex;
    width: 58px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d9e1dc;
    border-radius: 4px;
    background: #f8faf8;
    color: #8a9690;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.quote-table .cell-price strong,
.order-product-price,
.cart-total-row strong {
    color: #147047;
}

.quote-footer {
    display: grid;
    gap: 12px;
    color: #737e78;
}

.quote-footer-contact {
    display: grid;
    gap: 4px;
    line-height: 1.5;
}

.quote-footer-contact a {
    color: #176c47;
    text-decoration: none;
}

.quote-footer-contact a:hover {
    text-decoration: underline;
}

.quote-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px 14px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.order-wrap {
    width: min(100%, 1480px);
    padding: 18px 32px 44px;
}

.order-header {
    min-height: 0;
    padding-bottom: 15px;
}

.order-logo {
    width: max-content;
}

.order-back-link,
.text-link,
.order-customer-card a {
    color: #176c47;
}

.order-heading {
    padding: 21px 0 19px;
}

.order-heading h1 {
    font-size: 27px;
}

.order-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
}

.order-filter-bar {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px;
    margin-bottom: 14px;
}

.order-product-list {
    gap: 12px;
}

.order-product {
    min-height: 116px;
    grid-template-columns: 68px minmax(0, 1fr) 116px;
    gap: 12px;
    padding: 12px;
    border-color: #dce4df;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(35, 51, 42, .025);
}

.order-product:hover {
    border-color: #a9bdb1;
    box-shadow: 0 5px 16px rgba(26, 44, 34, .08);
}

.order-product-image {
    width: 68px;
    height: 76px;
    border-color: #e8eeea;
    border-radius: 5px;
    background: #f8faf8;
}

.order-product-image img {
    width: 64px;
    height: 72px;
}

.order-image-placeholder {
    padding: 6px;
    background: #f3f7f4;
    color: #718078;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.product-category-label {
    color: #7e4c3e;
    letter-spacing: .02em;
}

.order-product-info h2 {
    color: #25312b;
}

.order-product-action {
    gap: 8px;
}

.order-quantity {
    width: 48px;
    height: 40px;
    border-color: #ccd7d1;
    border-radius: 5px;
}

.order-add {
    min-height: 40px;
    border-radius: 5px;
}

.order-checkout {
    top: 14px;
    padding: 19px;
    border-color: #dce4df;
    border-radius: 7px;
    box-shadow: 0 7px 22px rgba(29, 43, 36, .055);
}

.checkout-title {
    padding-bottom: 13px;
}

.checkout-title h2 {
    color: #25312b;
}

.checkout-title span {
    background: #edf2ef;
}

.checkout-note {
    border-radius: 0 5px 5px 0;
}

.order-inputs .form-field input:not([type=checkbox]):not([type=file]),
.order-inputs .form-field textarea {
    min-height: 42px;
    border-radius: 5px;
}

.order-checkout .button-wide {
    min-height: 46px;
    border-radius: 6px;
}

.order-sticky {
    background: rgba(255, 255, 255, .98);
}

.admin-shell {
    box-shadow: 0 4px 22px rgba(30, 48, 38, .035);
}

.admin-topbar {
    min-height: 68px;
}

.admin-brand {
    width: max-content;
    text-decoration: none;
}

.admin-nav {
    background: #f8faf8;
}

.admin-nav-link {
    border-radius: 6px;
}

.admin-main {
    padding: 30px 34px 46px;
}

.admin-table-wrap {
    border-color: #dce4df;
    border-radius: 6px;
}

.admin-table th {
    background: #eff3f0;
    color: #536058;
}

.admin-table tbody tr:hover {
    background: #f8fbf9;
}

.admin-product-cell img,
.admin-thumb-empty {
    border: 1px solid #e7ede9;
    border-radius: 5px;
}

.auth-page {
    display: flow-root;
    background: #f2f5f3;
}

.auth-wrap {
    width: min(calc(100% - 32px), 460px);
    padding-top: 48px;
}

.auth-logo {
    width: max-content;
    margin-bottom: 18px;
}

.auth-panel {
    border-color: #dce4df;
    border-radius: 7px;
    padding: 26px;
    box-shadow: 0 12px 36px rgba(25, 40, 32, .07);
}

.admin-page-heading .button {
    flex: 0 0 auto;
}

.order-customer-card {
    border-color: #dce4df;
    border-radius: 6px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.dashboard-stat {
    display: flex;
    min-width: 0;
    min-height: 92px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.dashboard-stat:hover {
    border-color: #a9bdb1;
    background: #fbfdfb;
}

.dashboard-stat span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.dashboard-stat strong {
    font-size: 26px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dashboard-stat-attention strong {
    color: var(--red);
}

.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.dashboard-section-heading h2 {
    margin: 0;
    font-size: 17px;
}

.dashboard-section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-orders-table {
    min-width: 690px;
}

.table-subline {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.customer-table {
    min-width: 780px;
}

.customer-type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin-top: 4px;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.customer-type-retail {
    color: #17663f;
    background: #e9f5ef;
}

.customer-type-trade {
    color: #805311;
    background: #fff3d9;
}

.customer-type-unassigned {
    color: #5d6862;
    background: #edf0ee;
}

.customer-type-field {
    border: 0;
    padding: 0;
    margin: 0;
}

.customer-type-field legend {
    margin-bottom: 8px;
    color: #3d4542;
    font-size: 12px;
    font-weight: 700;
}

.customer-type-field legend span {
    color: var(--red);
}

.customer-type-switch {
    display: inline-flex;
    max-width: 100%;
    border: 1px solid #ccd7d1;
    border-radius: 6px;
    padding: 3px;
    background: #f3f6f4;
}

.customer-type-option {
    position: relative;
    cursor: pointer;
}

.customer-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.customer-type-option span {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0 16px;
    color: #526058;
    font-size: 13px;
    font-weight: 700;
}

.customer-type-option input:checked + span {
    background: #fff;
    color: #176c47;
    box-shadow: 0 1px 4px rgba(30, 48, 38, .12);
}

.customer-type-option input:focus-visible + span {
    outline: 2px solid #78a48c;
    outline-offset: 1px;
}

.customer-profile-link {
    display: inline-block;
    margin-left: 8px;
    color: #176c47;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.customer-profile-link:hover {
    text-decoration: underline;
}

.customer-profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 10px;
}

.customer-profile-actions form {
    margin: 0;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 24px;
    }

    .dashboard-stat {
        min-height: 82px;
        padding: 12px;
    }

    .dashboard-stat strong {
        font-size: 23px;
    }

    .dashboard-section-heading {
        align-items: flex-end;
    }

    .dashboard-section-heading .text-link {
        font-size: 12px;
        white-space: nowrap;
    }

    .customer-type-switch {
        width: 100%;
    }

    .customer-type-option {
        flex: 1 1 0;
        min-width: 0;
    }

    .customer-type-option span {
        padding: 0 10px;
    }
}

@media (max-width: 1100px) {
    .order-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 16px;
    }

    .order-product-list {
        grid-template-columns: 1fr;
    }
}

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

    .order-checkout {
        position: static;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        display: flex;
        align-items: center;
        gap: 5px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 9px 14px;
    }

    .nav-label {
        display: none;
    }

    .admin-nav-link {
        flex: 0 0 auto;
    }

    .admin-main {
        padding: 25px 24px 38px;
    }
}

@media (max-width: 760px) {
    .quote-wrap,
    .order-wrap {
        width: 100%;
        padding: 13px 16px 30px;
    }

    .quote-topbar {
        gap: 10px;
    }

    .quote-logo {
        width: max-content;
    }

    .brand-wordmark {
        font-size: 32px;
    }

    .quote-topbar-right {
        gap: 8px;
    }

    .quote-contact {
        gap: 4px;
        font-size: 11px;
    }

    .quote-heading {
        gap: 12px;
        margin-top: 12px;
        padding: 16px 0 14px;
    }

    .quote-heading h1 {
        font-size: 21px;
    }

    .quote-notice {
        max-width: 100%;
        font-size: 13px;
    }

    .quote-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .quote-actions > * {
        min-width: 0;
        width: 100%;
        padding: 0 9px;
        white-space: normal;
        text-align: center;
    }

    .quote-actions > :nth-child(3) {
        grid-column: 1 / -1;
    }

    .catalog-tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 13px 0 10px;
    }

    .search-wrap {
        width: 100%;
    }

    .search-wrap input {
        min-height: 46px;
    }

    .catalog-summary {
        align-self: flex-end;
        padding: 0;
    }

    .category-tabs {
        gap: 7px;
        padding-bottom: 11px;
        scroll-snap-type: x proximity;
    }

    .category-tab {
        min-height: 38px;
        scroll-snap-align: start;
    }

    .quote-table-wrap {
        box-shadow: none;
    }

    .quote-table .product-group {
        border-color: #dce4df;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(30, 48, 38, .035);
    }

    .quote-table .category-heading th {
        padding: 10px 12px;
    }

    .quote-table .product-row {
        grid-template-columns: 54px minmax(0, 1fr);
        grid-template-areas: 'image sku' 'image description' 'image price';
        gap: 4px 10px;
        padding: 11px;
    }

    .quote-table .cell-image img {
        width: 52px;
        height: 54px;
    }

    .quote-table .image-placeholder {
        width: 50px;
        height: 48px;
        padding: 3px;
        font-size: 8px;
    }

    .quote-table .cell-price {
        align-self: start;
        text-align: left;
    }

    .quote-table .cell-price strong {
        font-size: 13px;
    }

    .quote-footer {
        gap: 7px 14px;
        padding: 13px 2px 0;
    }

    .order-wrap {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }

    .order-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .order-logo {
        width: max-content;
        min-width: 0;
    }

    .order-back-link {
        flex: 0 0 auto;
        margin: 0;
        font-size: 12px;
    }

    .order-heading {
        align-items: center;
        gap: 10px;
        padding: 17px 0 14px;
    }

    .order-heading h1 {
        font-size: 23px;
    }

    .order-heading-count {
        gap: 5px;
        font-size: 12px;
    }

    .order-heading-count strong {
        font-size: 19px;
    }

    .order-catalog-heading {
        margin-bottom: 9px;
    }

    .order-filter-bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }

    .order-filter-bar input,
    .order-filter-bar select {
        min-width: 0;
        min-height: 46px;
    }

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

    .order-product {
        width: 100%;
        min-width: 0;
        min-height: 0;
        grid-template-columns: 54px minmax(0, 1fr);
        grid-template-areas: 'image info' 'image action';
        align-items: center;
        gap: 7px 11px;
        padding: 10px;
        border-radius: 7px;
    }

    .order-product-image {
        width: 54px;
        height: 60px;
    }

    .order-product-image img {
        width: 50px;
        height: 56px;
    }

    .order-product-info h2 {
        font-size: 14px;
    }

    .order-product-info p {
        font-size: 12px;
    }

    .order-product-action {
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .order-product-price {
        font-size: 13px;
    }

    .order-quantity {
        width: 43px;
        height: 38px;
    }

    .order-add {
        min-height: 38px;
    }

    .order-checkout {
        padding: 16px;
        border-radius: 7px;
    }

    .order-sticky {
        min-height: 68px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    }

    .order-sticky .button {
        min-height: 42px;
    }

    .admin-topbar {
        min-height: 58px;
        padding: 9px 16px;
    }

    .admin-brand {
        width: min(235px, 44vw);
    }

    .admin-topbar-right {
        gap: 8px;
        font-size: 12px;
    }

    .admin-user {
        display: none;
    }

    .admin-main {
        padding: 21px 16px 34px;
    }

    .admin-page-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }

    .admin-page-heading .button {
        max-width: 100%;
        white-space: normal;
    }

    .admin-filters {
        align-items: stretch;
    }

    .admin-filters input,
    .admin-filters select {
        width: 100%;
        max-width: none;
    }

    .order-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-detail-heading {
        align-items: flex-start;
    }

    .status-update-form {
        flex-wrap: wrap;
    }

    .status-update-form select {
        min-width: 0;
        flex: 1 1 170px;
    }

    .auth-wrap {
        padding-top: 30px;
    }

    .auth-panel {
        padding: 23px 20px;
    }
}

@media (max-width: 420px) {
    .quote-wrap,
    .order-wrap {
        padding-right: 12px;
        padding-left: 12px;
    }

    .quote-topbar {
        gap: 6px;
    }

    .quote-logo {
        width: max-content;
    }

    .brand-wordmark {
        font-size: 28px;
    }

    .brand-tagline {
        font-size: 8px;
    }

    .quote-topbar-right {
        gap: 5px;
    }

    .quote-contact {
        gap: 3px;
        font-size: 10px;
    }

    .top-login {
        padding: 7px 6px;
        font-size: 12px;
    }

    .quote-actions .button {
        min-height: 42px;
        font-size: 12px;
    }

    .quote-table .product-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 4px 9px;
        padding: 10px;
    }

    .quote-table .cell-image img {
        width: 46px;
        height: 50px;
    }

    .quote-table .image-placeholder {
        width: 44px;
        height: 44px;
    }

    .order-header {
        gap: 8px;
    }

    .order-logo {
        width: max-content;
    }

    .order-back-link {
        gap: 4px;
        font-size: 11px;
    }

    .order-heading h1 {
        font-size: 21px;
    }

    .order-heading-count span {
        max-width: none;
        line-height: 1.2;
        white-space: nowrap;
    }

    .order-product {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 7px 9px;
        padding: 9px;
    }

    .order-product-image {
        width: 48px;
        height: 54px;
    }

    .order-product-image img {
        width: 44px;
        height: 50px;
    }

    .order-product-info h2 {
        font-size: 13px;
    }

    .order-product-info p {
        font-size: 11px;
    }

    .order-product-price {
        font-size: 12px;
    }

    .order-add-controls {
        gap: 5px;
    }

    .order-quantity {
        width: 40px;
        height: 36px;
    }

    .order-add {
        min-height: 36px;
        padding: 0 8px;
    }

    .order-checkout {
        padding: 14px;
    }

    .auth-wrap {
        width: min(calc(100% - 24px), 460px);
    }

    .auth-panel {
        padding: 21px 17px;
    }
}

@media (max-width: 380px) {
    .quote-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .quote-topbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 2px solid #e92730;
    border-radius: 999px;
    padding: 1px 8px 3px;
    background: #fff;
    box-shadow: inset 0 -2px 0 rgba(233, 39, 48, .22);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.brand-wordmark-sop {
    color: #e92730;
}

.brand-wordmark-o {
    color: #14769d;
}

.brand-wordmark-life {
    color: #15935e;
}

.store-header {
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr) auto;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0 13px;
}

.store-logo,
.account-header > a {
    display: inline-flex;
    width: max-content;
    text-decoration: none;
}

.store-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 0;
}

.store-nav a,
.store-login {
    color: #39433e;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.store-nav a:hover,
.store-login:hover {
    color: var(--green);
}

.store-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.store-contact {
    display: grid;
    gap: 2px;
    color: #4e5953;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.store-contact a {
    color: inherit;
    text-decoration: none;
}

.store-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 16px;
}

.store-intro h1 {
    margin: 0;
    color: #202825;
    font-size: 28px;
    line-height: 1.2;
}

.store-intro .quote-notice {
    margin: 7px 0 0;
}

.trade-access-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #e1e7e3;
    border-left: 3px solid var(--green);
    border-radius: 5px;
    padding: 13px 16px;
    background: #f8fbf9;
}

.trade-access-banner > div {
    display: grid;
    gap: 3px;
}

.trade-access-banner strong {
    color: #26332c;
    font-size: 14px;
}

.trade-access-banner span {
    color: var(--muted);
    font-size: 12px;
}

.product-catalog {
    display: grid;
    gap: 26px;
}

.product-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.product-group-heading h2 {
    margin: 0;
    color: #25312b;
    font-size: 18px;
    line-height: 1.3;
}

.product-group-heading span {
    color: var(--muted);
    font-size: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce4df;
    border-radius: 6px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.product-card:hover {
    border-color: #b7c9bf;
    box-shadow: 0 4px 14px rgba(30, 48, 38, .07);
}

.product-card-image {
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid #edf1ee;
    background: #fafcfb;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-card-image .image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: #7c8982;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.product-card-body {
    flex: 1 1 auto;
    padding: 12px 13px 10px;
}

.product-card-category {
    display: inline-block;
    margin-bottom: 5px;
    color: #a02b31;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.product-card-body h3 {
    margin: 0;
    color: #27332d;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-card-body .product-code {
    display: block;
    margin-top: 4px;
    color: #747f79;
    font-size: 11px;
}

.product-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    color: #616c66;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-feature-summary,
.product-card .product-card-body p.product-feature-summary {
    display: block;
    margin: 10px 0 0;
    border-left: 3px solid #18764b;
    border-radius: 4px;
    padding: 9px 11px;
    background: #eef7f2;
    color: #16563a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-card .product-card-body p.product-feature-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.product-card-footer {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf1ee;
    padding: 9px 13px;
}

.product-price {
    display: grid;
    gap: 2px;
}

.product-price span,
.price-locked {
    color: var(--muted);
    font-size: 10px;
}

.product-price strong {
    color: #15764c;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.product-price strong.price-contact {
    color: #69736e;
    font-size: 13px;
}

.product-card-footer .text-link {
    font-size: 11px;
    text-align: right;
}

.catalog-empty {
    border: 1px dashed #cfd9d3;
    border-radius: 5px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.quote-footer-contact > a {
    color: #176c47;
    font-size: 11px;
    text-decoration: none;
}

.quote-footer-contact > a:hover {
    text-decoration: underline;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-nav-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 6px;
    background: #d91f27;
    color: #fff;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.request-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.request-status-pending {
    background: #fff3d6;
    color: #815600;
}

.request-status-approved {
    background: #e5f4eb;
    color: #17663f;
}

.request-status-rejected {
    background: #fbe9e9;
    color: #a51e23;
}

.request-status-none {
    background: #edf0ee;
    color: #5d6862;
}

.account-wrap {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 18px 28px 48px;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 13px;
}

.account-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.account-header-actions form {
    margin: 0;
}

.account-heading {
    padding: 24px 0 13px;
}

.account-heading h1 {
    margin: 0;
    color: #202825;
    font-size: 26px;
}

.account-heading p:last-child {
    margin: 6px 0 0;
    color: var(--muted);
}

.account-section {
    border-top: 1px solid var(--line);
    padding: 20px 0 24px;
}

.account-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.account-section-heading h2 {
    margin: 0;
    color: #27332d;
    font-size: 19px;
}

.account-section-heading .eyebrow {
    margin-bottom: 4px;
}

.account-approved-message,
.account-pending-message,
.account-review-note {
    max-width: 760px;
    border-left: 3px solid var(--green);
    padding: 10px 14px;
    background: #f5faf7;
}

.account-pending-message {
    border-left-color: #c58b18;
    background: #fffbf1;
}

.account-review-note {
    margin-bottom: 17px;
    border-left-color: #bd3438;
    background: #fff7f7;
}

.account-approved-message p,
.account-pending-message p,
.account-review-note p {
    margin: 5px 0 0;
    color: #58645d;
}

.account-approved-message .button {
    margin-top: 12px;
}

.account-request-form {
    max-width: 760px;
}

.account-request-form .page-subtitle {
    margin-bottom: 15px;
}

.account-request-form > .button {
    margin-top: 18px;
}

.request-history-list {
    display: grid;
}

.request-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e7ece9;
    padding: 12px 0;
}

.request-history-item > div {
    display: grid;
    gap: 3px;
}

.request-history-item > div span {
    color: var(--muted);
    font-size: 11px;
}

.request-history-item > div small {
    max-width: 680px;
    color: #a51e23;
    font-size: 12px;
}

.trade-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    align-items: start;
    gap: 24px;
}

.trade-review-layout > section {
    border-top: 1px solid var(--line);
    padding-top: 17px;
}

.trade-review-layout h2 {
    margin: 0 0 13px;
    font-size: 17px;
}

.trade-request-details {
    display: grid;
    margin: 0;
}

.trade-registration-info {
    max-width: 760px;
    margin-bottom: 16px;
}

.trade-request-details > div {
    display: grid;
    grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr);
    gap: 14px;
    border-bottom: 1px solid #e8ecea;
    padding: 10px 0;
}

.trade-request-details dt {
    color: var(--muted);
    font-size: 12px;
}

.trade-request-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.trade-review-panel > p {
    color: var(--muted);
    font-size: 13px;
}

.trade-review-panel textarea {
    min-height: 92px;
}

.trade-review-panel .form-actions {
    flex-wrap: wrap;
}

.customer-auth-page .auth-panel .page-subtitle {
    margin-bottom: 20px;
}

.customer-auth-page .form-stack .form-control {
    min-height: 44px;
}

@media (max-width: 1100px) {
    .store-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px 18px;
    }

    .store-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        border-top: 1px solid #edf1ee;
        padding-top: 9px;
    }

    .store-actions {
        grid-column: 2;
        grid-row: 1;
    }

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

@media (max-width: 760px) {
    .store-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 9px 12px;
        padding-top: 5px;
    }

    .store-nav {
        gap: 18px;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .store-nav::-webkit-scrollbar {
        display: none;
    }

    .store-actions {
        gap: 9px;
    }

    .store-contact {
        display: none;
    }

    .store-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding-top: 18px;
    }

    .store-intro h1 {
        font-size: 23px;
    }

    .trade-access-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .product-card-body {
        padding: 10px 10px 8px;
    }

    .product-card-body h3 {
        font-size: 13px;
    }

    .product-card-footer {
        min-height: 54px;
        align-items: flex-start;
        flex-direction: column;
        padding: 8px 10px;
    }

    .product-card-footer .text-link {
        text-align: left;
    }

    .trade-review-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .account-wrap {
        padding: 13px 16px 36px;
    }
}

@media (max-width: 420px) {
    .store-nav {
        gap: 14px;
    }

    .store-nav a {
        font-size: 12px;
    }

    .store-actions .btn,
    .store-login {
        font-size: 12px;
    }

    .brand-wordmark {
        min-height: 34px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 25px;
    }

    .account-header-actions {
        gap: 4px;
    }

    .account-header-actions .btn {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }

    .account-heading h1 {
        font-size: 22px;
    }

    .trade-request-details > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

html {
    background: #fff;
}

body.quote-page {
    background: #fff;
}

.quote-wrap {
    width: min(100%, 1400px);
    padding: 18px 32px 44px;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
}

.store-intro {
    padding-top: 28px;
    padding-bottom: 20px;
}

.store-intro h1 {
    font-size: 30px;
    line-height: 1.2;
}

.store-intro .quote-notice {
    max-width: 680px;
}

.trade-access-banner {
    border-color: #dcebe2;
    background: #f8fbf9;
}

.catalog-tools {
    border-top: 0;
    padding-top: 22px;
}

.search-wrap input.form-control {
    min-height: 46px;
    border-color: #d8e0dc;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(28, 46, 36, .04);
}

.category-tab {
    border-radius: 7px;
}

.category-tab.is-active {
    background: #1c3228;
    border-color: #1c3228;
}

.product-catalog {
    gap: 32px;
}

.product-group-heading {
    border-bottom: 1px solid #e9eeeb;
    padding-bottom: 10px;
}

.product-group-heading h2 {
    font-size: 19px;
}

.product-card {
    border-color: #e4eae6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(28, 46, 36, .035);
}

.product-card:hover {
    border-color: #bad2c4;
    box-shadow: 0 7px 20px rgba(28, 46, 36, .09);
}

.product-card-image {
    background: #fff;
}

.product-card-body {
    padding: 14px 14px 11px;
}

.product-card-body h3 {
    font-size: 15px;
}

.product-card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 72px;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
}

.product-list-price strong {
    color: #202b25;
    font-size: 18px;
}

.product-primary-trade-price strong {
    color: #12764b;
}

.account-header {
    flex-wrap: wrap;
    gap: 12px;
}

.trade-price-catalog {
    margin-top: 18px;
}

.trade-price-catalog .product-card-footer {
    grid-template-columns: minmax(0, 1fr);
    min-height: 58px;
}

.trade-price-catalog .product-trade-price {
    border-left: 0;
    padding-left: 0;
}

.trade-price-catalog .product-trade-price strong {
    font-size: 18px;
}

.product-trade-price {
    border-left: 1px solid #e8eeea;
    padding-left: 12px;
}

.product-trade-price strong {
    color: #12764b;
}

.trade-price-link {
    display: grid;
    justify-self: end;
    gap: 2px;
    border: 1px solid #cfe4d7;
    border-radius: 6px;
    padding: 7px 9px;
    background: #f1f8f4;
    color: #176b45;
    font-size: 10px;
    line-height: 1.3;
    text-align: right;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease;
}

.trade-price-link strong {
    color: #145d3c;
    font-size: 11px;
}

.trade-price-link:hover {
    border-color: #9fc8ad;
    background: #e8f4ec;
    color: #145d3c;
}

.quote-footer {
    border-top: 1px solid #e8eeea;
    margin-top: 36px;
    padding-top: 18px;
}

.order-product-action {
    gap: 6px;
}

.order-public-price {
    color: #39443e;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.order-product-price {
    color: #12764b;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .quote-wrap {
        padding: 12px 16px 32px;
    }

    .store-intro {
        padding-top: 20px;
    }

    .store-intro h1 {
        font-size: 24px;
    }

    .product-card-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
    }

    .product-trade-price {
        border-top: 1px solid #e8eeea;
        border-left: 0;
        padding: 7px 0 0;
    }

    .trade-price-link {
        width: 100%;
        justify-self: stretch;
        text-align: left;
    }

    .quote-footer {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .quote-wrap {
        padding-right: 12px;
        padding-left: 12px;
    }

    .product-card-footer {
        padding-right: 10px;
        padding-left: 10px;
    }

    .product-list-price strong {
        font-size: 16px;
    }
}

body.customer-account-page {
    background: #fff;
}

.customer-account-page .account-wrap {
    width: min(100%, 1380px);
}

.trade-price-catalog .catalog-tools {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding-top: 0;
}

.trade-price-catalog .search-wrap {
    flex: 1 1 260px;
    max-width: 480px;
}

.trade-catalog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.trade-catalog-actions .catalog-summary {
    margin: 0;
    padding: 0;
}

.catalog-view-switch {
    flex: 0 0 auto;
    width: 136px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.catalog-view-switch label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 38px;
    font-size: 13px;
}

.trade-price-catalog .category-tabs {
    flex-wrap: wrap;
    overflow: visible;
}

.trade-price-catalog .category-tab {
    flex: 0 1 auto;
    white-space: normal;
    text-align: left;
}

.trade-table-scroll {
    max-width: 100%;
    max-height: 72vh;
    overflow: auto;
    border: 1px solid #ced8d2;
    border-radius: 4px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.trade-table-scroll:focus-visible {
    outline: 2px solid #167548;
    outline-offset: 3px;
}

.trade-quote-table {
    width: 100%;
    min-width: 920px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #26312d;
}

.trade-quote-table .trade-col-number { width: 48px; }
.trade-quote-table .trade-col-image { width: 68px; }
.trade-quote-table .trade-col-product { width: 250px; }
.trade-quote-table .trade-col-price { width: 145px; }
.trade-quote-table .trade-col-order { width: 108px; }

.trade-quote-table > :not(caption) > * > * {
    padding: 9px 12px;
    border-right: 1px solid #e0e6e2;
    border-bottom: 1px solid #e0e6e2;
    vertical-align: middle;
    background: #fff;
    box-shadow: none;
}

.trade-quote-table tr > :last-child {
    border-right: 0;
}

.trade-quote-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 42px;
    border-bottom-color: #bacabf;
    background: #eaf2ed;
    color: #31463a;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.trade-quote-table .trade-table-category th {
    padding: 9px 12px;
    background: #fff2f2;
    color: #a52830;
    font-size: 12px;
    font-weight: 700;
}

.trade-table-category span {
    margin-left: 12px;
    color: #78585b;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.trade-quote-table [data-product-row]:nth-child(odd) > * {
    background: #f8faf9;
}

.trade-quote-table [data-product-row]:hover > * {
    background: #edf6f0;
}

.trade-table-number {
    text-align: center;
    color: #738078;
    font-variant-numeric: tabular-nums;
}

.trade-table-image img,
.trade-table-placeholder {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    object-fit: contain;
}

.trade-table-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid #e1e7e3;
    border-radius: 3px;
    background: #f2f5f3;
    color: #849088;
    font-size: 12px;
    font-weight: 600;
}

.trade-table-product,
.trade-table-description {
    overflow-wrap: anywhere;
    text-align: left;
}

.trade-table-product strong {
    display: block;
    font-weight: 650;
}

.trade-table-product small {
    display: block;
    margin-top: 3px;
    color: #788279;
    font-size: 11px;
    font-weight: 400;
}

.trade-table-description {
    color: #56635b;
}

.trade-quote-table .trade-table-price {
    color: #12764b;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trade-table-order {
    text-align: center;
}

.trade-table-order .btn {
    min-height: 32px;
    font-size: 12px;
    white-space: nowrap;
}

[data-catalog-panel][hidden],
.trade-price-catalog [data-product-row][hidden],
.trade-price-catalog .product-group[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .trade-price-catalog .search-wrap,
    .trade-catalog-actions {
        width: 100%;
        max-width: none;
    }

    .trade-price-catalog .category-tab {
        min-height: 32px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .customer-account-page .account-heading p:last-child {
        overflow-wrap: anywhere;
    }

    .trade-price-catalog .product-card-body {
        padding: 10px;
    }

    .trade-price-catalog .product-card-body h3 {
        font-size: 13px;
    }

    .trade-price-catalog .product-trade-price strong {
        font-size: 15px;
        overflow-wrap: anywhere;
    }
}
