/* Product rows: each row shares image, title, price and action baselines. */
/* Keep reserve labels inside narrow cards without widening the page. */
.store-product,.store-product>*{min-width:0}
.store-product-grid{align-items:stretch}.store-product{display:grid;grid-template-rows:150px 46px 34px 42px 38px minmax(44px,auto);row-gap:6px;align-content:start}.store-product>.store-product-image{height:150px;min-height:150px;grid-row:1}.store-product>.store-product-title{grid-row:2;margin:0;align-self:start;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:46px}.store-product>.store-variant-label{grid-row:3;min-height:0;height:34px;margin:0;overflow:hidden;-webkit-line-clamp:2}.store-product>.store-stock{grid-row:4;margin:0;align-self:center;white-space:normal}.store-product>.store-price{grid-row:5;min-height:0;margin:0;align-self:center}.store-product>.store-buy,.store-product>.cart-control{grid-row:6;align-self:stretch;margin:0}
.product-badges{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.product-badges:empty{display:none}.store-top-badge{display:inline-flex;align-items:center;background:#293743;color:white;border:1px solid #293743;border-radius:7px;padding:5px 9px;font-size:12px;font-weight:750;line-height:1.2}.store-product>.product-badges{position:absolute;right:14px;top:60px;max-width:75%;z-index:2}.variant-buy>.product-badges{align-self:flex-end;margin:4px 0 8px}.store-product .store-hit{position:static}
.account-view{background:#f3f5f7}.account-view #shopContent{padding:30px 32px 28px}.account-view .account-home-head{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px;padding:4px 0 22px;border-bottom:0;margin:0}.account-view .account-home-head h2{font-size:26px;letter-spacing:-.6px;line-height:1.2;margin:5px 0 4px}.account-view .account-home-head p{margin:0;font-size:13px}.account-view .account-home-head .shop-kicker{font-size:10px;letter-spacing:.7px;color:#657180}.account-view .account-avatar-button{width:64px;display:block;padding:0;margin:0;flex:none}.account-view .account-avatar-button img,.account-view .account-avatar-button .customer-avatar-photo{width:64px;height:64px;border-radius:18px}.account-view .account-avatar-button>span:last-child{display:none}.account-view #accountLogout{min-height:36px;padding:8px 12px;font-size:12px;color:#526171;border-color:#dce2e8;background:#fff}.account-view .account-contact-actions{display:flex;gap:8px;margin:0 0 24px;padding:0}.account-view .account-contact-actions .shop-switch{margin:0;padding:10px 14px;min-height:40px;background:#fff;border:1px solid #dce2e8;border-radius:9px;font-size:12px;color:#344556;text-align:center;line-height:1.3}
.account-view #accountMoysklad{border:1px solid #dce2e8;background:#fff;border-radius:16px;padding:22px;margin:0 0 16px}.account-view #accountMoysklad:empty{display:none}.account-balance-heading{display:flex;gap:12px;justify-content:space-between;align-items:center}.account-view .account-balance-heading h3{font-size:17px;margin:0}.account-balance-heading>span{font-size:12px;color:#71808e;overflow-wrap:anywhere;max-width:45%;text-align:right}.account-view .ms-balance-card{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff3e8;border:1px solid #f4d5ba;border-radius:12px;padding:20px;margin:18px 0 12px}.account-view .ms-balance-card>div{min-width:0}.account-view .ms-balance-card span{color:#695849;font-size:13px}.account-view .ms-balance-card b{display:block;color:#a5410c;font-size:38px;line-height:1.15;letter-spacing:-1px;margin:8px 0;overflow-wrap:anywhere}.account-view .ms-balance-card small{font-size:12px;line-height:1.5;color:#746759}.account-view .ms-balance-card.is-paid{background:#edf6f1;border-color:#d5e8dd}.account-view .ms-balance-card.is-paid b{color:#22624b}.account-view .ms-balance-card.is-paid small,.account-view .ms-balance-card.is-paid span{color:#4d6a5e}.account-balance-icon{display:flex;width:44px;height:44px;align-items:center;justify-content:center;flex:0 0 44px}.account-balance-icon .icon{width:36px;height:36px;opacity:.6}
.account-view .ms-finance-history{margin:0;border-top:1px solid #e6eaf0}.account-view .ms-finance-history>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;font-size:14px;list-style:none}.account-view .ms-finance-history>summary:after{content:'⌄';font-size:18px;color:#6a7886}.account-view .ms-finance-history>summary>span{margin-left:auto;min-width:24px;border-radius:6px;background:#f0f3f6;text-align:center;padding:3px;font-size:12px}.account-view .ms-finance-history[open]>summary:after{content:'⌃'}.account-balance-help{margin:8px 0;color:#657180;font-size:12px}.account-balance-help summary{cursor:pointer;min-height:32px;display:flex;align-items:center}.account-balance-help p{font-size:12px;line-height:1.6}.account-sync-time{display:block;font-size:11px;line-height:1.5;color:#7b8793;margin-top:8px}.account-view .ms-finance-order{padding:14px;background:#f8fafb}.account-view .ms-finance-order>summary{font-size:13px}.account-view .ms-finance-order>summary>b{font-size:13px}.account-view .ms-finance-items>p{gap:12px}.account-view .ms-finance-items>p>span{min-width:0;overflow-wrap:anywhere}
.account-view .customer-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 26px;background:none;border:0}.account-view .customer-summary>div{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #dce2e8;padding:16px 18px;border-radius:12px;min-width:0}.account-view .customer-summary>div:last-child{grid-column:auto}.account-view .customer-summary span{font-size:13px;color:#617080}.account-view .customer-summary b{font-size:26px;line-height:1.1;margin:0;color:#263845}.account-view .customer-summary>.account-site-balance{grid-column:1/-1;flex-wrap:wrap}.account-view .account-site-balance small{flex-basis:100%;font-size:11px;color:#7b8793}
.account-view .customer-orders-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 14px}.account-view .customer-orders-heading h3{font-size:18px;margin:0}.account-view #accountHistoryToggle{font-size:12px;border:1px solid #dce2e8;background:#fff;color:#405269;padding:9px 11px;border-radius:8px;min-height:38px;margin:0}.account-view .customer-empty{padding:26px 20px;border:1px dashed #cdd7e1;border-radius:14px;background:#fff;text-align:center}.account-view .customer-empty>.icon{height:30px;width:30px;opacity:.55;margin-bottom:6px}.account-view .customer-empty h3{font-size:17px;margin:6px 0}.account-view .customer-empty p{font-size:13px;line-height:1.6;margin:8px auto 18px;max-width:300px}.account-empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.account-empty-actions .btn{font-size:13px;min-height:42px}.account-view .order-card{background:#fff;border:1px solid #dce2e8;border-radius:14px;padding:20px}.account-view .customer-order-top{gap:12px;flex-wrap:wrap}.account-view .customer-order-top h3{font-size:16px}.account-view .customer-order-top>div{min-width:0;overflow-wrap:anywhere}.account-view .order-progress-note{font-size:13px;line-height:1.6;color:#657180}.account-view .customer-payment{border-radius:8px;gap:8px;flex-wrap:wrap}.account-view .customer-bottom{margin-top:24px;padding-top:18px;border-top:1px solid #dce2e8}.account-view #accountRequests{margin-top:24px;font-size:13px}.account-view #accountRequests>h3{font-size:17px}.account-view .customer-team-panel{margin:0 0 18px;background:#fff;border-radius:12px}
@media(max-width:700px){.account-view #shopContent{padding:24px 18px}.account-view .account-home-head{grid-template-columns:48px minmax(0,1fr);gap:12px;padding-right:28px;padding-bottom:16px}.account-view .account-home-head h2{font-size:21px}.account-view .account-avatar-button,.account-view .account-avatar-button img,.account-view .account-avatar-button .customer-avatar-photo{width:48px;height:48px;border-radius:14px}.account-view #accountLogout{grid-column:2;justify-self:start;margin-top:0;padding:5px 9px;min-height:30px;font-size:11px}.account-view .account-contact-actions{gap:8px;margin-bottom:18px}.account-view .account-contact-actions .shop-switch{flex:1;min-width:0;padding:10px 8px}.account-view #accountMoysklad{padding:17px;border-radius:13px}.account-balance-heading{align-items:flex-start;flex-direction:column;gap:5px}.account-balance-heading>span{text-align:left;max-width:100%}.account-view .account-balance-heading h3{font-size:16px}.account-view .ms-balance-card{padding:16px;margin-top:14px}.account-view .ms-balance-card b{font-size:32px}.account-view .customer-summary{gap:10px}.account-view .customer-summary>div{padding:14px 12px}.account-view .customer-summary span{font-size:12px}.account-view .customer-summary b{font-size:24px}.account-view .customer-orders-heading h3{font-size:16px}.account-view #accountHistoryToggle{font-size:11px;padding:8px}.account-view .ms-finance-order>summary>b{flex-basis:100%}.account-view .order-card{padding:16px}.store-product{grid-template-rows:128px 40px 32px 36px 32px minmax(42px,auto);gap:5px}.store-product>.store-product-image{height:128px;min-height:128px}.store-product>.store-variant-label{height:32px}.product-badges .store-top-badge,.product-badges .store-hit{font-size:10px;padding:4px 6px}.store-product>.product-badges{right:10px;top:48px}}

/* Account owns its inner spacing; avoid the shared dialog padding twice. */
.shop-dialog.account-view{padding:0}.account-view .customer-avatar-photo{min-width:0}.account-view .account-home-head>div{min-width:0;overflow-wrap:anywhere}.account-view .customer-team-panel{padding:14px 16px}.account-view .customer-team-panel>summary{font-size:14px}.account-view .customer-team-panel>summary small{font-size:12px}
@media(max-width:700px){.account-view #shopContent{padding:36px 18px 24px}.account-view .account-home-head{padding-right:28px}.account-view .customer-team-panel{padding:12px 14px}.account-view .ms-balance-card{padding:14px}.account-view .ms-balance-card b{font-size:32px}}

.shop-dialog.account-view{display:flex;flex-direction:column;overflow:hidden}.account-view>.shop-dialog-controls{position:relative;flex:0 0 48px;z-index:6}.account-view>.shop-dialog-controls .shop-close{position:absolute;top:10px;right:16px;width:36px;height:36px;margin:0;float:none}.account-view #shopContent{overflow-y:auto;min-height:0;padding-top:0;scrollbar-gutter:stable}.account-view .account-home-head{padding-right:0}@media(max-width:700px){.account-view #shopContent{padding-top:0}.account-view>.shop-dialog-controls{flex-basis:48px}}

.store-stock .reserved-label{display:block;font-size:inherit;color:#96601d}.reserved-label{color:#96601d}.arrivals-page .store-section-head>div{display:block}.arrivals-page .store-section-head p{padding:0;border:0;max-width:650px;margin-top:8px}.arrivals-page .store-section-head h1{font-size:clamp(25px,3vw,34px);margin:0;line-height:1.2}.arrivals-page .store-new-arrivals{margin-top:26px}.store-section-head h2 a{color:inherit;text-decoration:none}@media(max-width:700px){.arrivals-page .store-section-head{display:block}.arrivals-page .store-section-head>a{display:inline-block;margin-top:12px}}
