/* Shared search and catalogue: preserve monetary values and keep actions visible. */
body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-price,
body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-price {
 overflow:visible; text-overflow:clip; white-space:nowrap; font-variant-numeric:tabular-nums;
}
@media (min-width:769px) {
 body:not(:has(.admin-shell)) .catalog-main .b2b-table {table-layout:fixed;width:100%;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-img {width:64px;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-product {width:auto;min-width:0;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-stock {width:140px;overflow:visible;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table td.col-stock .b2b-stock-indicator {white-space:normal;overflow:visible;text-overflow:clip;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-price {width:130px;text-align:right;padding-right:16px;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-order {width:180px;overflow:visible;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-prod-title {white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-order-controls {flex-wrap:nowrap;justify-content:flex-end;}
}
body:not(:has(.admin-shell)) .b2b-search-results[role="dialog"] {border:1px solid #d5e2f2;border-radius:14px;box-shadow:0 16px 42px #193c6529;max-height:min(72vh,620px);}
body:not(:has(.admin-shell)) .b2b-search-results .suggestion-group-title {min-height:54px;padding:12px 16px;}
body:not(:has(.admin-shell)) .b2b-search-results .smart-search-context {padding:9px 16px;gap:12px;}
body:not(:has(.admin-shell)) .b2b-search-results .smart-search-context>span:not(.smart-search-understood) {display:none;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion {display:grid;grid-template-columns:minmax(0,1fr) 112px 166px;gap:12px;min-height:88px;padding:12px 16px;align-items:center;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-link {gap:12px;min-width:0;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-link img {width:48px;height:48px;flex:0 0 48px;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-info strong {white-space:normal;line-height:1.35;font-size:13px;color:#23354d;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-info small {font-size:11px;line-height:1.5;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-price {white-space:nowrap;overflow:visible;font-size:14px;font-variant-numeric:tabular-nums;text-align:right;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-row-feedback {grid-column:1/-1;min-height:0;margin:0;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-row-feedback:not(.has-message):not(.is-adding) {display:none;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-order input {height:38px;width:48px;font-size:14px;}
body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-order .b2b-add {height:38px;min-width:96px;box-shadow:none;}
@media(max-width:760px) {
 body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion {grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:0;padding:12px;}
 body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-link {grid-column:1/-1;}
 body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-price {text-align:left;padding-left:60px;}
 body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-order {grid-column:2;}
}

body:not(:has(.admin-shell)) .catalog-main .col-order .b2b-staff-note {display:block !important;white-space:normal;font-size:11px;line-height:1.5;color:#66758a;}

body:not(:has(.admin-shell)) .b2b-search-results .b2b-suggestion-order .text-muted {font-size:11px;line-height:1.4;white-space:normal;}

/* One product rhythm for available and unavailable catalogue rows. */
body:not(:has(.admin-shell)) .catalog-main .b2b-table td.col-order:has(.b2b-order-controls)::before {content:none;display:none;height:0;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-order>.b2b-row-feedback {min-height:0;margin:0;padding:0;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-order>.b2b-row-feedback:not(.has-message):not(.is-adding) {display:none;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-order-controls {align-items:center;justify-content:center;gap:8px;margin:0;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-order-controls .b2b-qty-input {box-sizing:border-box;flex:0 0 54px;width:54px;min-width:54px;max-width:54px;height:40px;font-size:15px;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-order-controls .b2b-add-btn {box-sizing:border-box;flex:0 0 40px;width:40px;min-width:40px;height:40px;border-radius:9px;box-shadow:none;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-img-wrap {width:52px;height:52px;min-width:52px;box-sizing:border-box;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-img-wrap img {width:100%;height:100%;object-fit:contain;}
body:not(:has(.admin-shell)) .catalog-main .b2b-table .col-order>.b2b-row-feedback.has-message {margin-top:6px;font-size:11px;line-height:1.3;}
@media(min-width:769px) {
 body:not(:has(.admin-shell)) .catalog-main .b2b-table tr.b2b-row>td {height:112px;padding-top:12px;padding-bottom:12px;box-sizing:border-box;vertical-align:middle;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-title {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:20px;max-height:40px;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-title a {white-space:normal;line-height:20px;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-meta {display:flex;flex-wrap:nowrap;gap:6px;align-items:center;height:22px;overflow:hidden;margin:2px 0;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-models {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:18px;margin:0;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-price {font-size:15px;line-height:20px;}
}

.catalog-search-notice {padding:10px 14px;border:1px solid #e7d5a7;border-radius:8px;background:#fff9eb;color:#73551f;font-size:12px;line-height:1.5;margin:8px 12px;}

@media(min-width:769px) {
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-title {margin:0;line-height:18px;max-height:36px;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-title a {line-height:18px;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-meta {height:20px;line-height:16px;margin:2px 0;}
 body:not(:has(.admin-shell)) .catalog-main .b2b-table .b2b-prod-models {line-height:16px;max-height:16px;margin:0;}
}

/* The header row and category navigation are sibling stacking contexts. */
body:not(:has(.admin-shell)) .app-header:has(.nav-account-dropdown:not([hidden])) .header-inner {
 position:relative;z-index:901;overflow:visible;
}
body:not(:has(.admin-shell)) .app-header .nav-account-dropdown {
 max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;
}

/* Let the search input use its reserved space instead of the browser's 20-character default. */
body:not(:has(.admin-shell)) #global-search .search-input-wrapper{display:flex;align-items:center;width:100%;min-width:0;min-height:44px;border:1px solid #d3dfef;border-radius:9px;background:#fff;overflow:visible;box-sizing:border-box}
body:not(:has(.admin-shell)) #global-search #search-input{display:block;flex:1 1 0%;min-width:0;width:100%;height:44px;padding:10px 14px;box-sizing:border-box;border:0;background:transparent;font-size:14px;outline:0}
body:not(:has(.admin-shell)) #global-search .search-input-wrapper:focus-within{border-color:#2879f2;box-shadow:0 0 0 3px #2879f21c}
body:not(:has(.admin-shell)) #global-search .search-input-wrapper button{position:static;flex:0 0 44px;width:44px;height:40px;margin:0 2px;padding:8px;transform:none;box-shadow:none;background:transparent;border:0}

.accessory-category-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}.accessory-category-tile{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:1fr 1fr;gap:2px 10px;align-items:center;padding:10px;background:#fff;border:1px solid #dce5f1;border-radius:10px;text-decoration:none;color:#23364b;min-height:86px;box-sizing:border-box}.accessory-category-tile img{grid-row:1/3;width:64px;height:64px;object-fit:contain}.accessory-category-tile strong{font-size:13px;align-self:end;line-height:17px}.accessory-category-tile small{font-size:11px;color:#64748b;align-self:start}.accessory-category-tile.is-current,.accessory-category-tile:hover{border-color:#2678ed;background:#f1f7ff}.accessory-menu-photo{width:56px;height:56px;object-fit:contain;flex:0 0 56px}.b2b-mega-accessories .b2b-acc-link{display:flex;align-items:center;gap:12px}.accessory-device-filter{border:1px solid #dce5f1;border-radius:10px;background:#fff;padding:14px;margin-bottom:16px}.accessory-device-filter h2{font-size:14px;margin:0 0 10px}.accessory-device-filter form{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr);gap:14px}.accessory-device-brand{display:grid;gap:6px;font-size:12px;font-weight:600}.accessory-device-filter .device-fields{display:block}.accessory-device-filter .device-fields>[data-step="2"],.accessory-device-filter .device-fields>[data-step="3"]{display:none}.accessory-device-filter .model-picker{position:relative}.accessory-device-filter .model-picker-popover{z-index:40;max-height:340px;overflow:auto}.accessory-device-filter .model-picker summary{min-height:42px;box-sizing:border-box}.accessory-device-filter .device-fields label{font-size:12px}.accessory-device-filter .model-search-wrap input{min-width:0}.accessory-device-filter .model-options{max-height:240px;overflow:auto}@media(max-width:1100px){.accessory-category-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.accessory-category-tile{grid-template-columns:44px 1fr;padding:8px;min-height:70px}.accessory-category-tile img{width:44px;height:44px}.accessory-device-filter form{grid-template-columns:1fr}}

@media(min-width:769px) and (max-width:1100px){
body:not(:has(.admin-shell)) .b2b-top-nav{flex-wrap:nowrap;gap:2px}
body:not(:has(.admin-shell)) .b2b-top-nav .b2b-nav-link{padding:10px 9px;font-size:12px;gap:6px}
.accessory-category-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.accessory-category-tile{grid-template-columns:48px minmax(0,1fr);min-height:82px;padding:8px;gap:3px 8px}.accessory-category-tile img{width:48px;height:48px}.accessory-category-tile strong{font-size:12px;overflow-wrap:anywhere}}

/* Keep manufacturer and compatibility separate in accessory discovery. */
.accessory-device-filter .discovery-filters {grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.accessory-product-brand {display:flex;flex-direction:column;gap:8px;min-width:0}
@media(max-width:700px){.accessory-device-filter .discovery-filters{grid-template-columns:1fr}}

/* Common catalogue controls remain visible and usable at narrow widths. */
.b2b-staff-context{margin:0;padding:10px 16px;font-size:12px;color:#64748b;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.b2b-staff-manage{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:8px;padding:9px 14px;font-size:13px;font-weight:600;text-transform:none;white-space:nowrap}




/* Quiet desktop category list, using the existing product photography. */
@media(min-width:1024px){
 body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar-heading{display:block;padding:15px 16px;background:#fff;border-bottom:1px solid #e7edf4}
 body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar-heading h2{margin:0;font-size:15px;font-weight:650;line-height:1.4;letter-spacing:0;color:#26374c}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-categories{display:flex;flex-direction:column;gap:2px;padding:8px}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;width:100%;min-height:42px;margin:0;padding:6px 10px;border:0!important;border-radius:6px;background:transparent;box-shadow:none!important;transform:none!important;color:#43566e;font-size:13px;font-weight:500}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category>span:not(.quick-category-thumb){display:block;width:auto;text-align:left;line-height:1.35;overflow:visible}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category .quick-category-thumb{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:3px;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category .quick-category-thumb img{width:24px;height:24px;object-fit:contain;transform:none}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category .quick-category-thumb svg{width:20px;height:20px}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category:hover{background:#f3f7fc}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category[aria-current="page"]{background:#edf5ff;color:#1766b4;font-weight:650}
 body:not(:has(.admin-shell)) [data-catalog-shell] .quick-category.active::before{width:3px;top:10px;bottom:10px;left:0;border-radius:3px;background:#267bea}
}

/* Tablet/phone categories stay in one horizontal row, never a full-page list. */

/* Equal accessory controls, without nested step cards. */
body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter{padding:14px;border-radius:8px}
body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter h2{font-size:14px;margin:0 0 12px;color:#26374c}
body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter .discovery-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter :is(.accessory-product-brand,.accessory-device-brand,.device-fields>[data-step="1"]){display:grid;gap:6px;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;font-size:12px;font-weight:500;line-height:1.4;color:#52657c}
body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter .filter-step::before{display:none}
body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter .device-fields label{margin:0;text-transform:none;letter-spacing:0;font-size:12px;font-weight:500;color:#52657c}
body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter :is(select,.model-picker>summary){height:44px;min-height:44px;width:100%;margin:0;padding:0 12px!important;display:flex;align-items:center;justify-content:space-between;border:1px solid #d8e1ed!important;border-radius:6px!important;background:#fff!important;box-sizing:border-box;font-size:13px!important;font-weight:500!important;color:#26374c!important;box-shadow:none!important;outline-offset:2px}
@media(max-width:700px){body:not(:has(.admin-shell)) [data-catalog-shell] .accessory-device-filter .discovery-filters{grid-template-columns:1fr;gap:12px}}
/* One confirmation, rather than two stacked green bubbles. */
body:not(:has(.admin-shell)) .b2b-row-feedback.success{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important}
body:not(:has(.admin-shell)) .b2b-row-feedback.success::before,body:not(:has(.admin-shell)) .b2b-row-feedback.success::after{content:none!important;display:none!important}
body:not(:has(.admin-shell)) .b2b-row-feedback-message{transition:opacity .28s ease,transform .32s ease,background-color .28s ease,border-color .28s ease}
body:not(:has(.admin-shell)) .b2b-row-feedback.success .b2b-row-feedback-message{border-radius:6px;padding:6px 9px;background:#edf8f0;border:1px solid #c8e6d2;font-size:12px;font-weight:600;text-transform:none;letter-spacing:0}
/* Product-card prices and actions always fit inside the card. */
body:not(:has(.admin-shell)) .lp-product{min-width:0}
body:not(:has(.admin-shell)) .lp-product-body{min-width:0}
body:not(:has(.admin-shell)) .lp-product-foot{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;min-width:0;margin-top:auto;align-items:stretch}
body:not(:has(.admin-shell)) .lp-product-price{white-space:nowrap;font-size:18px!important;line-height:1.3}
body:not(:has(.admin-shell)) .lp-product-add{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:100%;max-width:100%;min-width:0;min-height:42px;padding:9px 12px!important;box-sizing:border-box;border:1px solid #1971d4!important;border-radius:7px!important;background:#1971d4!important;color:#fff!important;font-size:13px!important;font-weight:600;line-height:1.2;white-space:nowrap;box-shadow:none!important}
body:not(:has(.admin-shell)) .lp-product-add:hover{background:#125eae!important;border-color:#125eae!important}
body:not(:has(.admin-shell)) .lp-product-add:focus-visible{outline:3px solid #bdd8ff;outline-offset:2px}
body:not(:has(.admin-shell)) .lp-product .b2b-row-feedback:not(.has-message){display:none}
body:not(:has(.admin-shell)) .lp-product .b2b-row-feedback{margin:0;max-width:100%;width:100%}
@media(prefers-reduced-motion:reduce){body:not(:has(.admin-shell)) .b2b-row-feedback-message{transition:none}}

.cart-preview{position:fixed;z-index:4500;box-sizing:border-box;padding:0;border:1px solid #d8e3ef;border-radius:12px;background:#fff;color:#23364b;box-shadow:0 14px 42px rgba(25,49,80,.16);overflow:auto;font-size:13px;line-height:1.4;animation:cart-preview-enter .18s ease-out}
.cart-preview[hidden]{display:none!important}
.cart-preview header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e8eef5;background:#fff}
.cart-preview h2{margin:0;font-size:15px;line-height:1.4;font-weight:650}
.cart-preview header button{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;background:transparent;color:#52657c;font-size:23px;border-radius:6px;cursor:pointer}
.cart-preview header button:hover{background:#f0f5fa}
.cart-preview ul{list-style:none;padding:0 16px;margin:0}
.cart-preview li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f6}
.cart-preview li a{display:block;color:#243b56;text-decoration:none;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.cart-preview li a:hover{text-decoration:underline}
.cart-preview li small{display:block;margin-top:4px;color:#65788e;font-size:12px}
.cart-preview li strong{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.cart-preview-total{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;background:#f7faff}
.cart-preview-total strong{white-space:nowrap}
.cart-preview .cart-preview-open{display:flex;justify-content:center;align-items:center;min-height:42px;margin:12px 16px 16px;padding:8px 12px;border-radius:7px;background:#1971d4;color:#fff;font-size:13px;font-weight:600;text-decoration:none}
.cart-preview p{margin:16px;font-size:13px;color:#65788e}
.cart-preview .cart-preview-more{margin:8px 16px}
.cart-preview :is(button,a):focus-visible{outline:3px solid #bdd8ff;outline-offset:2px}
@keyframes cart-preview-enter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.cart-preview{animation:none}}

body:not(:has(.admin-shell)) .cart-empty-panel{max-width:680px;margin:20px auto;padding:40px 24px;border-radius:12px!important;border:1px solid #dce5ef;box-shadow:none}
body:not(:has(.admin-shell)) .cart-empty-panel .btn{border-radius:7px!important;min-height:42px;box-shadow:none!important;font-size:13px}

/* Shared header search trigger on home, catalogue, cart and checkout. */
body:not(:has(.admin-shell))[data-header-search="compact"] .app-header .page-search-jump{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;min-width:0;margin-left:auto;padding:0 18px;border:1px solid #d7e2ef;border-radius:999px;background:#f7faff;color:#1768c5;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:0 1px 2px rgba(21,58,103,.04)}
body:not(:has(.admin-shell))[data-header-search="compact"] .app-header .page-search-jump:hover{background:#edf5ff;border-color:#b7cdea}
body:not(:has(.admin-shell)) .app-header .page-search-jump:focus-visible{outline:3px solid #bdd8ff;outline-offset:3px}
.cart-preview-item-actions{display:inline-flex;align-items:center;gap:0;margin-top:8px;border:1px solid #d6e0ed;border-radius:6px;overflow:hidden;background:#fff}
.cart-preview-item-actions button{width:32px;height:32px;min-height:32px;padding:0;border:0;background:#f6f9fd;color:#245584;font-size:18px;cursor:pointer}
.cart-preview-item-actions button:hover:not(:disabled){background:#e8f2ff}
.cart-preview-item-actions input{width:40px;height:32px;min-height:32px;padding:0 2px;border:0;border-left:1px solid #e4ebf3;border-right:1px solid #e4ebf3;border-radius:0;text-align:center;font:inherit;font-size:13px;appearance:textfield;background:#fff;color:#243b56;box-sizing:border-box}
.cart-preview-item-actions input::-webkit-inner-spin-button{appearance:none}
.cart-preview-item-actions button:disabled{opacity:.45;cursor:default}
.cart-preview-item-total{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.cart-preview-remove{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#718197;cursor:pointer}
.cart-preview-remove:hover{background:#fff0ee;color:#b93b32}
.cart-preview-feedback:empty{display:none}
.cart-preview .cart-preview-feedback{margin:8px 16px;color:#52657c;font-size:12px}
@media(max-width:600px){.cart-preview-item-actions :is(button,input),.cart-preview-remove{height:40px;min-height:40px}.cart-preview-remove{width:40px}}

.cart-preview[aria-busy="true"] :is(.cart-preview-item-actions,.cart-preview-remove){opacity:.6;pointer-events:none}

/* A chosen device shows housing products immediately; subtype chips only refine them. */
.housing-refinements {display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 18px;margin-bottom:16px;background:#fff;border:1px solid #dce5f0;border-radius:12px;}
.housing-refinements > strong {font-size:14px;color:#233b59;}
.housing-refinements nav {display:flex;gap:8px;flex-wrap:wrap;}
.housing-refinements nav a {display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 12px;border:1px solid #dce5f0;border-radius:8px;color:#435a76;font-size:13px;text-decoration:none;background:#fff;}
.housing-refinements nav a.active {background:#edf5ff;border-color:#87b6f6;color:#0866d6;font-weight:600;}
.housing-refinements nav a:hover {border-color:#87b6f6;background:#f5f9ff;}
.housing-refinements nav a:focus-visible {outline:2px solid #096ce4;outline-offset:2px;}
.housing-refinements nav span {font-size:12px;color:#637994;}
@media(max-width:640px){.housing-refinements{padding:12px;gap:10px;}.housing-refinements nav a{min-height:44px;}}

/* Catalogue controls: one compact rhythm, with refinements subordinate to products. */
@media(min-width:1024px){
 body:not(:has(.admin-shell)) [data-catalog-shell] .catalog-sidebar .quick-categories{border-bottom:0;padding-bottom:8px;margin-bottom:0}
}
/* Shared shop/account chrome stays the same size through navigation. */
@media(min-width:801px){
 body:not(:has(.admin-shell)) .app-header .header-inner{width:100%!important;max-width:none!important;height:80px!important;min-height:80px!important;padding:0 24px!important;gap:32px!important;box-sizing:border-box;display:flex;align-items:center}
 body:not(:has(.admin-shell)) .app-header .logo{display:flex;align-items:center;flex:0 0 180px!important;max-width:180px!important;margin:0!important}
 body:not(:has(.admin-shell)) .app-header .logo img{width:180px!important;height:auto!important;max-height:52px!important;object-fit:contain}
 body:not(:has(.admin-shell)) .app-header #global-search{flex:1 1 400px!important;max-width:500px!important;margin:0!important}
 body:not(:has(.admin-shell)) .app-header #search-input{height:48px!important;min-height:48px!important;border-radius:8px!important;font-size:13px!important}
 body:not(:has(.admin-shell)) .app-header .user-nav{margin-left:auto!important;gap:10px!important}
 body:not(:has(.admin-shell)) .store-mega-menu>.container{width:100%!important;max-width:none!important;padding:0 24px!important;box-sizing:border-box}
 body:not(:has(.admin-shell)) .b2b-account-wrapper{max-width:none;width:100%;box-sizing:border-box;padding:0 24px;grid-template-columns:256px minmax(0,1fr);gap:24px;margin-top:24px}
 body:not(:has(.admin-shell)) .b2b-account-main{max-width:none}
}
body:not(:has(.admin-shell)) .app-header .user-nav .nav-account-menu{order:1}
body:not(:has(.admin-shell)) .app-header .user-nav .nav-cart{order:2}
body:not(:has(.admin-shell)) .b2b-account-sidebar{border-radius:10px;box-shadow:none;padding:8px}
body:not(:has(.admin-shell)) .b2b-account-nav-link{border-radius:6px;min-height:42px;font-size:13px;font-weight:500}
body:not(:has(.admin-shell)) .b2b-account-header{align-items:flex-start;margin:0 0 18px;padding-bottom:16px}
body:not(:has(.admin-shell)) .b2b-account-header-text h1{font-size:26px;line-height:1.2;margin:0 0 7px;font-weight:650}
body:not(:has(.admin-shell)) .b2b-account-header-text p{font-size:13px;margin:0}
body:not(:has(.admin-shell)) .b2b-order-filters{gap:10px;margin-bottom:10px;grid-template-columns:minmax(0,1fr) minmax(140px,200px) auto}
body:not(:has(.admin-shell)) .b2b-order-filters label{font-size:12px;font-weight:500;color:#52657c;gap:5px;min-width:0}
body:not(:has(.admin-shell)) .b2b-order-filters :is(input,select,button){height:40px!important;min-height:40px!important;box-sizing:border-box;border-radius:6px!important;margin:0!important;padding:0 11px!important;font-size:13px!important;font-weight:500;box-shadow:none}
body:not(:has(.admin-shell)) .b2b-order-card{border-radius:10px;box-shadow:none;padding:16px;gap:14px;min-height:164px;grid-template-areas:"identity total" "states actions";grid-template-columns:minmax(0,1fr) 190px;align-items:start}
body:not(:has(.admin-shell)) .b2b-order-card-id{min-width:0}
body:not(:has(.admin-shell)) .b2b-order-reference{display:block;overflow-wrap:anywhere;max-width:100%;font-size:12px;margin-top:6px;line-height:1.4}
body:not(:has(.admin-shell)) .b2b-order-card-total{align-self:start;font-size:16px;white-space:nowrap;text-align:right}
body:not(:has(.admin-shell)) .b2b-order-card .b2b-order-states{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px;padding:12px 0 0;margin:0;border-top:1px solid #edf1f6;min-width:0}
body:not(:has(.admin-shell)) .b2b-order-card .b2b-order-state-item{min-width:0}
body:not(:has(.admin-shell)) .b2b-order-card .b2b-order-card-actions{display:flex;flex-direction:column;align-items:stretch;gap:4px;justify-content:end}
body:not(:has(.admin-shell)) .b2b-order-card .b2b-order-reorder{height:36px;min-height:36px;padding:0 9px;border-radius:6px;font-size:12px;white-space:nowrap}
body:not(:has(.admin-shell)) .b2b-order-card .b2b-order-open{justify-content:flex-end;min-height:30px;font-size:12px}
@media(max-width:600px){
 body:not(:has(.admin-shell)) .b2b-order-filters{grid-template-columns:minmax(0,1fr) auto}
 body:not(:has(.admin-shell)) .b2b-order-filters label:first-child{grid-column:1/-1}
 body:not(:has(.admin-shell)) .b2b-order-filters :is(input,select,button){height:44px!important;min-height:44px!important}
 body:not(:has(.admin-shell)) .b2b-order-card{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity total" "states states" "actions actions";min-height:0;padding:14px}
 body:not(:has(.admin-shell)) .b2b-order-card .b2b-order-card-actions{flex-direction:row;align-items:center;justify-content:space-between}
}

@media(min-width:801px){
 body:not(:has(.admin-shell)) .app-header .search-bar{flex:1 1 400px!important;width:auto!important;max-width:500px!important;margin:0!important}
 body:not(:has(.admin-shell)) #b2b-top-navigation{justify-content:flex-start!important;max-width:none!important;margin:0!important;padding-left:0!important}
 body:not(:has(.admin-shell)) .app-header .user-nav .nav-icon-action{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;box-sizing:border-box}
}

.auth-session-notice{padding:12px;margin:0 0 16px;background:#edf5ff;border:1px solid #cddff5;border-radius:7px;color:#355d86;font-size:13px;line-height:1.5}


/* Original menu presentation from the first user-supplied Replit source ZIP. */
/* Mega Dropdown */
@media (min-width: 769px) {
    body:not(:has(.admin-shell)):has(.b2b-nav-item.is-open) .app-header {
        position: relative;
    }
}

body:not(:has(.admin-shell)) .b2b-dropdown-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 55, 96, 0.2);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    height: auto;
    min-height: 0;
    border: 2px solid #2b7dcc;
    border-top-width: 3px;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

body:not(:has(.admin-shell)) .b2b-nav-item.is-open > .b2b-dropdown-overlay {
    display: flex;
}

body:not(:has(.admin-shell)) .b2b-mega-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    height: auto;
}

body:not(:has(.admin-shell)) .b2b-mega-families {
    width: 100%;
    flex: 0 0 auto;
    background: #f8fafc;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 20px;
    scrollbar-width: thin;
}

/* A family row is a destination (the label) plus a preview control (the caret). */
body:not(:has(.admin-shell)) .b2b-family-row {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

body:not(:has(.admin-shell)) .b2b-family-link {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.25rem 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
}

body:not(:has(.admin-shell)) .b2b-family-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #dce3ed;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #34465e;
    white-space: nowrap;
    cursor: pointer;
}

body:not(:has(.admin-shell)) .b2b-family-row:hover,
body:not(:has(.admin-shell)) .b2b-family-row:focus-within {
    background: transparent;
}

body:not(:has(.admin-shell)) .b2b-family-row.active {
    background: transparent;
    box-shadow: none;
}

body:not(:has(.admin-shell)) .b2b-family-row.active .b2b-family-link,
body:not(:has(.admin-shell)) .b2b-family-row.active .b2b-family-btn,
body:not(:has(.admin-shell)) .b2b-family-link:hover {
    font-weight: 600;
    color: var(--primary);
    border-color: #9fc3f3;
    background: #edf5ff;
    text-decoration: none;
}

body:not(:has(.admin-shell)) .b2b-mega-models {
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px 20px 18px;
    overflow: visible;
    background: #fff;
}

body:not(:has(.admin-shell)) .b2b-mega-heading {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
}
body:not(:has(.admin-shell)) :is(.b2b-menu-close, .b2b-menu-back, .b2b-menu-retry) {
    flex: 0 0 auto;
    align-self: flex-start;
    border: 1px solid #dbe2eb;
    border-radius: 4px;
    background: #fff;
    color: #48617e;
    padding: 7px 11px;
    min-height: 32px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
body:not(:has(.admin-shell)) .b2b-menu-back {
    display: none;
}
body:not(:has(.admin-shell)) .b2b-model-search-wrap {
    display: block;
    position: relative;
    width: 100%;
    max-width: 420px;
}
body:not(:has(.admin-shell)) .b2b-model-search-wrap > span {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
body:not(:has(.admin-shell)) .b2b-model-status {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 12px;
}
body:not(:has(.admin-shell)) .b2b-family-all {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 36px;
    padding: 8px 0 0;
    margin-top: 10px;
    color: var(--primary);
    border-top: 1px solid #edf0f5;
    text-decoration: none;
}
body:not(:has(.admin-shell)) .b2b-family-all:hover {
    text-decoration: underline;
}
body:not(:has(.admin-shell)) .b2b-family-all small {
    font-weight: 500;
    color: #64748b;
}
body:not(:has(.admin-shell)) .b2b-mega-brands {
    padding: 0 0 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #dfe5ee;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
body:not(:has(.admin-shell)) .b2b-brand-families.active {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
}
body:not(:has(.admin-shell)) .b2b-brand-btn {
    padding: 7px 9px;
    min-height: 34px;
    font: inherit;
    font-size: 12px;
    background: #fff;
    color: #344b66;
    border: 1px solid #d9e1ed;
    border-radius: 4px;
    cursor: pointer;
}
body:not(:has(.admin-shell)) .b2b-brand-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #edf5ff;
}
body:not(:has(.admin-shell)) .b2b-model-search {
    width: 100%;
    max-width: 360px;
    height: 44px;
    padding: 8px 11px;
    margin: 0;
    font: inherit;
    font-size: 13px;
    background: #fff;
    border: 2px solid #70a8e4;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(26, 91, 163, .08);
}

body:not(:has(.admin-shell)) .b2b-mega-view-all {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
body:not(:has(.admin-shell)) .b2b-mega-view-all:hover {
    text-decoration: underline;
}

body:not(:has(.admin-shell)) .b2b-models-grid {
    display: none;
}

body:not(:has(.admin-shell)) .b2b-models-grid.active {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body:not(:has(.admin-shell)) .b2b-model-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 2px 16px;
    align-content: start;
}

body:not(:has(.admin-shell)) .b2b-model-series {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: start;
    gap: 10px;
}

body:not(:has(.admin-shell)) .b2b-model-series-group {
    min-width: 0;
    padding: 0;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #fbfcfe;
}
body:not(:has(.admin-shell)) .b2b-model-series-group[open] { grid-column: span 1; border-color: #a9c9eb; box-shadow: 0 4px 12px rgba(24, 89, 168, .07); }
body:not(:has(.admin-shell)) .b2b-model-series-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 9px 11px; list-style: none; cursor: pointer; color: #26384d; font-size: 13px; font-weight: 700; }
body:not(:has(.admin-shell)) .b2b-model-series-group > summary::after { content: '›'; margin-left: auto; color: #6b7f96; font-size: 18px; line-height: 1; transform: rotate(90deg); }
body:not(:has(.admin-shell)) .b2b-model-series-group > summary::-webkit-details-marker { display: none; }
body:not(:has(.admin-shell)) .b2b-model-series-group:not([open]) > .b2b-series-body { display: none; }
body:not(:has(.admin-shell)) .b2b-model-series-group > summary small { padding: 2px 6px; border-radius: 999px; background: #e9f2fc; color: #557698; font-size: 10px; }
body:not(:has(.admin-shell)) .b2b-model-series-group[open] > summary { border-bottom: 1px solid #e1e8f0; background: #eff6ff; color: #155fae; }
body:not(:has(.admin-shell)) .b2b-model-series-group[open] > summary::after { transform: rotate(-90deg); }
body:not(:has(.admin-shell)) .b2b-series-body { padding: 7px; }
body:not(:has(.admin-shell)) .b2b-series-more {
    display: inline-block;
    margin: 5px 3px 1px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
body:not(:has(.admin-shell)) .b2b-series-more:hover,
body:not(:has(.admin-shell)) .b2b-series-more:focus-visible {
    text-decoration: underline;
}

body:not(:has(.admin-shell)) .b2b-model-series-group h4 {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 5px;
    padding: 0 2px 8px;
    border-bottom: 1px solid #e5eaf1;
    color: #26384d;
    font-size: 0.8125rem;
    font-weight: 700;
}

body:not(:has(.admin-shell)) .b2b-model-series-group .b2b-model-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
}

body:not(:has(.admin-shell)) .b2b-model-series-group .b2b-model-link {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 4px 3px;
}

body:not(:has(.admin-shell)) .b2b-model-series-group h4 small {
    color: #7b8798;
    font-size: 0.6875rem;
    font-weight: 500;
}

body:not(:has(.admin-shell)) .b2b-model-link {
    font-size: 0.8125rem;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 8px;
    line-height: 1.4;
    border-radius: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
}

body:not(:has(.admin-shell)) .b2b-model-expand {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    padding: 7px 11px;
    margin-top: 12px;
    border: 1px solid #cfe0f4;
    border-radius: 6px;
    background: #f4f8fd;
    color: #1768bd;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}
body:not(:has(.admin-shell)) .b2b-model-expand:hover {
    border-color: #9fc2e8;
    background: #eaf3fd;
}

body:not(:has(.admin-shell)) .b2b-model-link:hover {
    color: var(--primary);
    background: #f0f6ff;
    text-decoration: none;
}
body:not(:has(.admin-shell)) .b2b-model-link[aria-current="page"] {
    background: #e9f2ff;
    color: var(--primary);
    font-weight: 600;
}

body:not(:has(.admin-shell)) .b2b-mega-accessories {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 8px 24px;
    padding: 24px;
    width: 100%;
    overflow: auto;
}

body:not(:has(.admin-shell)) .b2b-acc-group {
    min-width: 220px;
}
body:not(:has(.admin-shell)) .b2b-acc-group h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--apple-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.25rem;
}
body:not(:has(.admin-shell)) .b2b-acc-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d1d1f;
    padding: 0.25rem 0;
    text-decoration: none;
}
body:not(:has(.admin-shell)) .b2b-acc-link:hover {
    color: var(--primary);
}



.cart-preview header button{display:grid;place-items:center;background:#f5f8fc;border:1px solid #dce5f0;border-radius:50%;width:34px;height:34px;color:#526782}
.cart-preview header button:hover{background:#eaf1fb;color:#174f9a}
.cart-preview-clear{display:block;margin:12px 16px 0;padding:8px 0;background:none;border:0;color:#62728a;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}
.cart-preview-clear:hover{color:#b42318}
.cart-preview[aria-busy=true] .cart-preview-clear{opacity:.6;pointer-events:none}
