/* Compact customer storefront. Staff desktop selectors are deliberately absent. */
.commerce-page{--cx-bg:#f4f6f8;--cx-paper:#fff;--cx-ink:#182631;--cx-muted:#72808b;--cx-line:#e4e9ed;--cx-accent:#1876bc;--cx-soft:#eaf3fa;color-scheme:light;font-size:13px;background:var(--cx-bg);color:var(--cx-ink)}
.commerce-page .shell{max-width:1200px;padding:18px 20px 100px}.commerce-page .brand{display:flex;gap:10px;align-items:center;padding:0 2px;margin:0 0 16px}.commerce-page .brand .logo{width:32px;height:32px}.commerce-page .brand h1{font-size:20px}.commerce-page .brand p{font-size:11px;margin:0}.commerce-page .card{background:var(--cx-paper);border-color:var(--cx-line);padding:16px;border-radius:14px;box-shadow:none;overflow:visible}.commerce-page .button{min-height:36px;padding:8px 12px;font-size:12px;border-radius:9px;background:var(--cx-paper);border-color:var(--cx-line);color:var(--cx-ink)}.commerce-page .primary{background:var(--cx-accent)!important;color:#fff!important;border-color:var(--cx-accent)!important}.commerce-page .note{color:var(--cx-muted);font-size:11px}.commerce-page h2{font-size:18px}.commerce-page .portal-main-tabs{gap:8px;margin-bottom:16px}.commerce-page .portal-main-tabs>button{display:flex;align-items:center;justify-content:center;gap:7px;position:relative}.commerce-page svg{width:22px;height:22px;flex-shrink:0}.commerce-page .portal-stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}.commerce-page .commerce-card{min-width:0;overflow:hidden;border:1px solid var(--cx-line);border-radius:13px;background:var(--cx-paper);cursor:pointer;outline-offset:3px}.commerce-card:focus-visible{outline:2px solid var(--cx-accent)}
.commerce-gallery{min-width:0;position:relative;background:var(--cx-bg);border-radius:11px;overflow:hidden}.commerce-photo-rail{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}.commerce-photo-rail::-webkit-scrollbar{display:none}.commerce-photo-page{flex:0 0 100%;min-width:0;aspect-ratio:1/1;scroll-snap-align:center;display:grid;place-items:center}.commerce-photo-page img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0}.commerce-no-photo{font-size:11px;color:var(--cx-muted)}.commerce-photo-dots{position:absolute;bottom:6px;left:0;right:0;display:flex;gap:4px;justify-content:center;pointer-events:none}.commerce-page .commerce-photo-dot{pointer-events:auto;padding:0;min-height:0;min-width:0;width:5px;height:5px;border:0;border-radius:50%;background:#a4aeb8;box-shadow:0 0 0 2px #ffffff70}.commerce-photo-dot.is-current{background:var(--cx-accent)}.commerce-gallery.is-large .commerce-photo-page{aspect-ratio:4/3;max-height:420px}
.commerce-card-body{padding:10px;display:grid;gap:5px}.commerce-page .commerce-card-title{font-size:14px;line-height:1.3;font-weight:550;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em;overflow-wrap:anywhere}.commerce-card-condition,.commerce-card-date,.commerce-card-secondary{font-size:11px;color:var(--cx-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.commerce-card-price{font-size:18px;line-height:1.3;color:var(--cx-ink)}.commerce-page .commerce-add{width:100%;font-size:11px;min-height:32px;padding:6px}.commerce-page .commerce-search{display:flex;align-items:center;gap:8px;background:var(--cx-bg);border:1px solid var(--cx-line);border-radius:12px;padding:2px 4px 2px 10px;margin:10px 0 14px}.commerce-search>svg{width:18px;color:var(--cx-muted)}.commerce-page .commerce-search input{flex:1;min-width:0;background:transparent;border:0;padding:10px 0;font:inherit;outline-offset:2px}.commerce-page .commerce-filter-toggle{display:flex;align-items:center;justify-content:center;padding:7px;background:transparent;border:0}.commerce-filter-toggle>span,.commerce-icon-button>span,.commerce-floating-cart>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.commerce-page .commerce-icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:7px;background:transparent;border:0}.commerce-gear{margin-left:auto}
.commerce-page .commerce-subtabs{display:flex;gap:5px;align-items:center;padding:4px;background:var(--cx-bg);border-radius:9px;width:max-content;max-width:100%;margin:8px 0 14px}.commerce-page .commerce-subtabs .button{min-height:29px;padding:5px 12px;border:0;font-size:11px;background:transparent;color:var(--cx-muted)}.commerce-page .commerce-subtabs .primary{background:var(--cx-paper)!important;color:var(--cx-accent)!important;box-shadow:0 1px 5px #00000012}
.commerce-page dialog{color:var(--cx-ink);background:var(--cx-paper);border:1px solid var(--cx-line);border-radius:16px;padding:18px;max-width:min(580px,calc(100vw - 24px));max-height:88dvh;width:100%;box-sizing:border-box;overflow:auto}.commerce-page dialog::backdrop{background:#101e2c75}.commerce-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.commerce-dialog-heading h2{margin:0}.commerce-filter-fields{display:grid!important;gap:12px!important;grid-template-columns:1fr!important;margin-bottom:18px}.commerce-page dialog input,.commerce-page dialog select,.commerce-page dialog textarea{box-sizing:border-box;width:100%;min-height:38px;border:1px solid var(--cx-line);background:var(--cx-bg);color:var(--cx-ink);border-radius:8px;padding:9px;font:inherit}.commerce-page dialog>input,.commerce-page dialog>select,.commerce-page dialog>textarea,.commerce-page dialog>.button{margin:6px 0}.commerce-details-fields{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;font-size:12px}.commerce-details-fields dt{color:var(--cx-muted)}.commerce-details-fields dd{margin:0}.commerce-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.commerce-page .commerce-floating-cart{position:fixed;bottom:22px;right:22px;z-index:40;display:grid;place-items:center;width:48px;height:48px;padding:12px;background:var(--cx-accent);color:#fff;border:0;box-shadow:0 5px 20px #142a4530;border-radius:13px}.commerce-badge{position:absolute;right:-3px;top:-4px;min-width:17px;height:17px;line-height:17px;text-align:center;border-radius:10px;background:#e34c75;color:#fff;font-size:10px;padding:0 3px}.commerce-page .customer-cart{margin:0;border:0;background:transparent}.commerce-page .cart-heading{display:none}.commerce-page .customer-cart-panel{padding:0;border:0;background:transparent}.commerce-page .directory-inquiry{border:0;padding:0;background:transparent}.commerce-page .customer-cart-row,.commerce-page .directory-inquiry-row{border:1px solid var(--cx-line);border-radius:10px;padding:12px;margin:8px 0}.commerce-page .commerce-contact{display:inline-flex;align-items:center;gap:8px;background:#e9f3ff;color:#1778bb;padding:10px 14px;border-radius:10px;text-decoration:none;font-size:12px}.commerce-page .privacy-footer{padding-bottom:85px}.commerce-toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:110;background:#263a4b;color:white;border-radius:10px;padding:10px 15px;font-size:12px;max-width:85vw}.commerce-page [hidden]{display:none!important}
@media(max-width:700px){.commerce-page .shell{padding:12px 10px 110px}.commerce-page .card{padding:10px;border-radius:12px}.commerce-page .brand{margin-bottom:8px}.commerce-page .brand>div>p{display:none}.commerce-page .brand h1{font-size:17px}.commerce-page .portal-stock-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.commerce-page .commerce-card-body{padding:8px;gap:4px}.commerce-page .commerce-card-title{font-size:12px}.commerce-page .commerce-card-price{font-size:16px}.commerce-page .portal-main-tabs{position:fixed;bottom:0;left:0;right:0;z-index:50;background:var(--cx-paper);border-top:1px solid var(--cx-line);margin:0;padding:6px 5px calc(7px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;gap:0;border-radius:0}.commerce-page .portal-main-tabs>button{flex:1;min-width:0;min-height:49px;padding:3px 1px;display:flex;flex-direction:column;gap:4px;font-size:9px;border:0;border-radius:0;background:transparent!important;color:var(--cx-muted)!important}.commerce-page .portal-main-tabs>button.primary{color:var(--cx-accent)!important}.commerce-page .portal-main-tabs>button>svg{width:23px;height:23px}.commerce-page .portal-main-tabs .commerce-badge{right:calc(50% - 23px);top:0}.commerce-page .commerce-floating-cart{bottom:calc(78px + env(safe-area-inset-bottom));right:12px;width:42px;height:42px;padding:10px}.commerce-page .portal-stock-card{min-width:0}.commerce-page .account-heading{margin-bottom:8px}.commerce-page .account-heading h2{font-size:16px}.commerce-page .account-heading p,.commerce-page #portalStockView>p.note:last-child,.commerce-page #portalProductsView>p.note:first-child,.commerce-page.public-showcase .card>p.note:first-child{display:none}.commerce-page .active-summary{padding:10px;font-size:12px}.commerce-page .summary-value{font-size:24px}.commerce-page .tabs{gap:4px;padding:4px;background:var(--cx-bg);border-radius:9px}.commerce-page .tabs>.tab{min-height:30px;padding:5px;font-size:10px;background:transparent}.commerce-page .tabs>.tab[aria-selected=true]{background:var(--cx-paper);color:var(--cx-accent);border-radius:6px}.commerce-page .privacy-footer{padding-bottom:110px}.commerce-page .update-row{min-height:0}.commerce-page #customerName{margin:0}.commerce-page .footer{margin:18px 0}.commerce-page .item,.commerce-page .order-item{padding:9px;font-size:12px}.commerce-page dialog{padding:14px}}
@media(prefers-color-scheme:dark){.commerce-page:not([data-force-light]){--cx-bg:#15191e;--cx-paper:#20262d;--cx-ink:#e7edf3;--cx-muted:#9aa7b4;--cx-line:#343d47;--cx-accent:#55a9eb;--cx-soft:#263b4c;color-scheme:dark}.commerce-page .commerce-contact{background:#233a50;color:#7ec5ff}}
html[data-theme=dark] .commerce-page{--cx-bg:#15191e;--cx-paper:#20262d;--cx-ink:#e7edf3;--cx-muted:#9aa7b4;--cx-line:#343d47;--cx-accent:#55a9eb;color-scheme:dark}html[data-theme=light] .commerce-page{--cx-bg:#f4f6f8;--cx-paper:#fff;--cx-ink:#182631;--cx-muted:#72808b;--cx-line:#e4e9ed;--cx-accent:#1876bc;color-scheme:light}.commerce-page .item,.commerce-page .order-item,.commerce-page .group-card,.commerce-page .active-summary,.commerce-page .shipment-card{background:var(--cx-paper);color:var(--cx-ink);border-color:var(--cx-line)}
.commerce-page .button.primary{width:auto;margin-top:0}.commerce-page .commerce-add.button{width:100%;margin-top:2px}
.commerce-page .portal-main-tabs{display:flex;flex-wrap:wrap;border:0;padding:0;margin:12px 0 16px}.commerce-page .portal-main-tabs>.button,.commerce-page .portal-main-tabs>.button.primary{width:auto;flex:0 1 auto;min-width:140px;height:40px;min-height:40px;font-size:12px;padding:8px 15px;margin:0}.commerce-page .commerce-subtabs{border:0;align-items:center}.commerce-page .commerce-subtabs>.button,.commerce-page .commerce-subtabs>.button.primary{width:auto;min-width:70px;height:30px;min-height:30px;padding:5px 12px;margin:0}.commerce-page .shell{padding-bottom:20px}.commerce-page .privacy-footer{margin-top:0;padding:12px 0 30px}
@media(max-width:700px){.commerce-page .portal-main-tabs{flex-wrap:nowrap;margin:0;border-top:1px solid var(--cx-line);padding:5px 3px calc(6px + env(safe-area-inset-bottom))}.commerce-page .portal-main-tabs>.button,.commerce-page .portal-main-tabs>.button.primary{flex:1;min-width:0;width:auto;height:49px;min-height:49px;padding:3px 1px;font-size:9px}.commerce-page .privacy-footer{padding:12px 0 calc(95px + env(safe-area-inset-bottom))}}
.commerce-page{--muted:var(--cx-muted);--line:var(--cx-line);--teal:var(--cx-accent);--light:var(--cx-bg);--summary-bg:var(--cx-soft);--summary-line:var(--cx-line)}.commerce-page .active-summary{position:static}.commerce-page .badge{background:var(--cx-soft);color:var(--cx-accent)}.commerce-page input,.commerce-page select,.commerce-page textarea{background:var(--cx-paper);color:var(--cx-ink);border-color:var(--cx-line)}.commerce-page .privacy-footer a{color:var(--cx-muted)}
.commerce-page .contacts{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px;margin-top:18px;padding-top:14px}.commerce-page .contacts .commerce-contact{min-height:36px;padding:8px 12px;border:0;box-sizing:border-box}.commerce-page .commerce-useful-links{font-size:11px;color:var(--cx-muted);padding:10px 0}.commerce-useful-links summary{cursor:pointer}.commerce-page .commerce-useful-links .contact-link{min-height:32px;padding:6px 0;border:0;background:transparent;color:var(--cx-accent);font-size:11px;justify-content:flex-start}.commerce-page .commerce-useful-links .telegram-icon{width:14px;height:14px}
