.shop-prompt { grid-column:1/-1; display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:12px }
.shop-prompt p { grid-column:1; margin:4px 0 0 }
.shop-prompt button { grid-column:2; grid-row:1/3 }
#shops-top-open { color:var(--ui-accent,#12613b) }
#shops-top-open svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round }
#shops-top-open span { font-size:9px; font-weight:800; letter-spacing:-.03em }
.shops-panel {
  --shop-ink:#19392a; --shop-action:#116640; --shop-base:#f5f8f2; --shop-paper:#fff;
  --shop-edge:#d6e5d8; --shop-soft:#edf4ee;
  background:var(--shop-base); color:var(--shop-ink); min-width:0; max-width:100%;
}
html[data-palette="gray"] .shops-panel {
  --shop-ink:#272e29; --shop-base:#f4f4f3; --shop-paper:#fff; --shop-edge:#dedfdd; --shop-soft:#ecefed;
}
.shops-panel h2 { font-size:clamp(23px,6vw,32px); line-height:1.15; letter-spacing:-.04em }
.shops-panel button { font-family:inherit }
.shops-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px }
.shops-actions button,.shop-row-title,.shops-panel #shops-editor button,.shop-carousel-buttons button {
  border:1px solid var(--shop-edge); border-radius:12px; color:var(--shop-ink); background:var(--shop-paper); padding:7px 12px; font-weight:750;
}
.shop-row { background:var(--shop-paper); border:1px solid var(--shop-edge); border-radius:20px; padding:13px 0 12px; margin:0 0 12px; min-width:0 }
.shop-row-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 12px 10px }
.shop-row-title { display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left }
.shop-row-head h3,.shop-row-title { font-size:clamp(17px,4.7vw,23px); line-height:1.2; margin:0; letter-spacing:-.035em }
.shop-carousel-buttons { display:flex; gap:4px; flex:none }
.shop-carousel-buttons button { padding:2px 9px; font-size:19px; line-height:24px }
.shop-carousel { display:flex; gap:10px; padding:0 12px 9px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:thin; overscroll-behavior-x:contain }
.shop-product { flex:0 0 clamp(126px,38vw,180px); min-width:0; scroll-snap-align:start }
.shop-product-visual { position:relative; border-radius:15px; background:var(--shop-soft); aspect-ratio:1.18; overflow:hidden }
.shop-product-visual img { width:100%; height:100%; display:block; object-fit:contain; mix-blend-mode:multiply }
.shop-product strong { display:block; margin:6px 0 1px; font-size:17px; line-height:1.15; letter-spacing:-.02em }
.shop-product p { margin:2px 0 0; font-size:13px; font-weight:650; line-height:1.25; overflow-wrap:anywhere }
.shop-product-add { position:absolute; right:6px; bottom:6px; width:35px; height:35px; display:grid; place-items:center; padding:0; border:0; border-radius:11px; background:var(--shop-action); color:#fff; font-size:23px; font-weight:750 }
.shop-product-add:disabled { display:none }
.shop-product-unavailable { color:#555e57; font-size:12px }
.shop-cart-toggle { position:sticky; z-index:2; bottom:8px; display:block; width:max-content; max-width:100%; margin:8px auto 0 0; padding:10px 14px; border:0; border-radius:14px; color:#fff; background:var(--shop-action); font-weight:800; box-shadow:0 4px 15px #153d2a33 }
.shops-cart { background:var(--shop-paper); border:1px solid var(--shop-edge); margin:8px 0 0; border-radius:16px; padding:12px }
.shops-cart ul { padding-inline-start:18px }
.shops-cart li { margin-bottom:6px }
.shops-cart li input { width:55px; margin-inline:5px }
#shops-status:empty { display:none }
#shops-editor { display:grid; gap:10px }
#shops-editor fieldset { display:grid; gap:7px; min-width:0; margin:8px 0; border:1px solid var(--shop-edge); border-radius:12px; padding:10px }
#shops-editor label { font-size:13px }
#shops-editor input:not([type="checkbox"]),#shops-editor select { width:100%; min-width:0 }
.shop-membership { display:flex; flex-wrap:wrap; gap:8px }
.shop-membership label { display:flex; align-items:center; gap:3px }

body.in-app .discover-prompts{grid-auto-rows:1fr;align-items:stretch}
body.in-app .discover-prompts>.discover-prompt{grid-column:auto;display:flex;flex-direction:column;align-items:flex-start;gap:6px;box-sizing:border-box;min-width:0;padding:10px 12px}
body.in-app .discover-prompts>.discover-prompt>span{font-size:10px;line-height:14px}
body.in-app .discover-prompts>.discover-prompt>p{margin:0;min-height:2.6em;font-size:14px;line-height:1.3;flex:1}
body.in-app .discover-prompts>.discover-prompt>button{grid-column:auto;grid-row:auto;min-height:30px;padding:6px 12px;font-size:13px;line-height:18px;margin:0}


.shops-kind-tabs{display:flex;gap:8px;margin:4px 0 10px}.shops-kind-tabs button{padding:8px 14px;border:0;border-radius:14px;background:var(--shop-soft);color:var(--shop-ink);font:inherit;font-size:14px;font-weight:800}.shops-kind-tabs button[aria-pressed=true]{background:var(--shop-action);color:#fff}
.shops-panel h2{font-size:18px;margin:0}.shops-actions{margin:4px 0;gap:6px}
body.in-app #shops-panel{padding:10px 6px;max-width:100%;box-sizing:border-box}
.shop-row{padding:8px 0 6px;margin-bottom:8px;border-radius:15px}.shop-row-head{padding:0 8px 6px}.shop-row-head h3,.shop-row-title{font-size:15px;line-height:20px}.shop-row-title{padding:4px 8px}
.shop-carousel{gap:8px;padding:0 8px 5px;scrollbar-width:none}.shop-carousel::-webkit-scrollbar{display:none}.shop-product{flex:0 0 calc((100% - 16px)/2.5)}
.shop-product-visual{aspect-ratio:1.4;border-radius:10px}.shop-product strong{font-size:14px;margin-top:4px}.shop-product p{font-size:12px;line-height:15px;height:30px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.shop-product-add{width:29px;height:29px;font-size:20px;border-radius:9px}

.shop-store-link{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:2px 0;border:0;background:transparent;color:var(--shop-ink);text-align:left;font:inherit}
.shop-store-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:var(--shop-soft);color:var(--shop-action)}.shop-store-icon svg{width:25px;height:25px}
.shop-store-copy{flex:1;min-width:0}.shop-store-copy strong{display:block;font-size:16px;line-height:21px;font-weight:750}.shop-store-description{display:block;margin-top:2px;color:#919591;font-size:13px;line-height:17px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-store-arrow{display:grid;place-items:center;flex:0 0 34px;height:34px;background:var(--shop-soft);border-radius:50%;font-size:27px;line-height:1;font-weight:400}

.shops-kind-tabs{align-items:center;flex-wrap:nowrap}.shops-kind-tabs #shops-close{margin-left:auto;flex:0 0 34px;width:34px;height:34px;padding:0;border-radius:50%;font-size:24px;line-height:1;background:var(--shop-soft);color:var(--shop-ink)}
#shops-catalog{min-height:190px}#shops-title:not([hidden]){margin-bottom:8px}

.shops-editing #shops-kind-food,.shops-editing #shops-kind-stores{display:none}

#shops-order-title{font-size:17px;margin:0 0 10px}:is(#foodmarket-basket,.shop-basket-list){list-style:none;padding:0;margin:0}:is(#foodmarket-basket,.shop-basket-list) li{display:grid;grid-template-columns:1fr auto auto;gap:6px 10px;padding:10px 0;border-bottom:1px solid var(--shop-edge);align-items:center}:is(#foodmarket-basket,.shop-basket-list) li>strong:first-child{grid-column:1/-1;font-size:14px}:is(#foodmarket-basket,.shop-basket-list) small{color:#7b817c;font-size:12px}:is(#foodmarket-basket,.shop-basket-list) li input{width:48px;margin:0}:is(#foodmarket-basket,.shop-basket-list) li button{grid-column:3;border:0;background:none;color:#727a74;font-size:12px}.shop-order-total{display:block;text-align:right;font-size:17px;font-weight:800;margin:12px 0}.foodmarket-delivery-tabs button{flex:1}
#shops-editor[hidden]{display:none!important}
:is(#foodmarket-basket,.shop-basket-list) li{grid-template-columns:minmax(0,1fr) 44px auto 28px;gap:2px 8px;padding:6px 0}
:is(#foodmarket-basket,.shop-basket-list) li>strong:first-child{grid-column:1;grid-row:1;font-size:13px;line-height:17px;overflow-wrap:anywhere}
:is(#foodmarket-basket,.shop-basket-list) li>small{grid-column:1;grid-row:2;font-size:11px;line-height:14px}
:is(#foodmarket-basket,.shop-basket-list) li>input{grid-column:2;grid-row:1/3;width:44px;min-height:32px;height:32px;padding:4px;box-sizing:border-box;text-align:center}
:is(#foodmarket-basket,.shop-basket-list) li>strong:not(:first-child){grid-column:3;grid-row:1/3;font-size:13px;white-space:nowrap}
:is(#foodmarket-basket,.shop-basket-list) li>button{grid-column:4;grid-row:1/3;width:28px;height:32px;min-height:32px;padding:0;font-size:0}
:is(#foodmarket-basket,.shop-basket-list) li>button::after{content:'×';font-size:20px}
#shops-order-title{margin-bottom:5px}.shop-order-total{margin:8px 0;font-size:16px}

#foodmarket-checkout,#foodmarket-checkout .registration-field{min-width:0;max-width:100%;box-sizing:border-box}#foodmarket-checkout input:not([type="checkbox"]){max-width:100%;min-width:0;box-sizing:border-box}#foodmarket-checkout .registration-field input{width:100%}
@media(max-width:760px){#foodmarket-checkout input{font-size:16px!important}}

@media(max-width:760px){.app-shell.ios-layout.ios-keyboard-open.shop-order-focus{position:fixed;left:0;right:0;top:var(--ibeza-visible-top,0px);height:var(--ibeza-visible-height,100dvh);margin:0}.app-shell.ios-layout.ios-keyboard-open.shop-order-focus .composer-area,.app-shell.ios-layout.ios-keyboard-open.shop-order-focus .chat-topbar{display:none}.app-shell.shop-order-focus .chat-jump-bottom{visibility:hidden}}

.shop-order-actions{display:flex;align-items:center;gap:8px;position:sticky;bottom:8px;z-index:2;margin:8px 0}.shop-order-actions .shop-cart-toggle{position:static;margin:0}.shops-orders-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid var(--shop-edge);border-radius:13px;background:var(--shop-soft);color:var(--shop-action)}.shops-orders-toggle svg{width:24px;height:24px}.shops-orders-toggle[aria-expanded=true]{background:var(--shop-action);color:white}.shops-editing .shop-order-actions{display:none}.shops-orders-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.shops-orders-head button{border:0;border-radius:50%;width:30px;height:30px;background:var(--shop-soft);color:var(--shop-ink);font-size:22px}.shops-order-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--shop-edge);background:none;text-align:left;color:var(--shop-ink);font:inherit;font-size:13px}.shops-order-row strong,.shops-order-row small{display:block}.shops-order-row small{margin-top:3px;color:#818881;font-size:11px}.shops-order-state{font-size:12px;color:var(--shop-action)}.shops-order-row>.shops-order-state{text-align:right;max-width:44%}.shops-orders-back{border:0;background:var(--shop-soft);padding:6px 10px;border-radius:10px;color:var(--shop-action)}.shops-order-items{list-style:none;padding:0;margin:8px 0}.shops-order-items li{display:flex;justify-content:space-between;gap:8px;padding:5px 0;font-size:13px}.shops-order-items strong{white-space:nowrap}.shops-order-comment{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.shops-orders h4{margin:10px 0 4px;font-size:15px}
.shops-order-state{display:inline-block;width:max-content;max-width:100%;padding:6px 10px;border-radius:12px;background:var(--shop-action);color:#fff;font-size:12px;line-height:16px;font-weight:800;box-sizing:border-box;box-shadow:0 2px 6px #153d2a18}.shops-order-row>.shops-order-state{flex-shrink:0;max-width:48%;text-align:center}.shops-orders p.shops-order-state{width:fit-content}

.shop-basket-group{padding:10px 0;border-bottom:1px solid var(--shop-edge)}.shop-basket-group>h4{font-size:16px;margin:0 0 6px}.shop-place-order{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:110px}.shop-place-order small{font-size:10px;line-height:13px;font-weight:500;color:#fff}.shop-checkout{min-width:0}.shop-checkout .registration-field{min-width:0}.shop-checkout .registration-field input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}#shops-orders .shops-order-state{color:#fff!important}#shops-incoming:empty{display:none}#shops-incoming details{margin:6px 0;padding:8px;border:1px solid var(--shop-edge);border-radius:12px}#shops-incoming p{font-size:13px;margin:5px 0}@media(max-width:760px){.shop-checkout input{font-size:16px!important}}

#shops-editor fieldset.shop-group-edit-row{grid-template-columns:minmax(0,1fr) 34px;align-items:end;gap:8px;padding:8px}#shops-editor .shop-group-edit-row label{display:grid;gap:4px;min-width:0}#shops-editor .shop-group-edit-row input{margin:0}#shops-editor button.shop-group-delete{display:grid;place-items:center;width:34px;height:38px;padding:5px;border:0;border-radius:10px;background:var(--shop-soft);color:var(--shop-ink)}.shop-group-delete svg{width:21px;height:21px}

.shop-group-products{grid-column:1/-1;min-width:0}.shop-group-products:empty{display:none}.shop-group-products>details{padding:6px 0;border-top:1px solid var(--shop-edge)}.shop-group-products>details>summary{font-size:13px;cursor:pointer}#shop-edit-products>h3{font-size:14px;margin:8px 0}#shop-edit-products[hidden]{display:none!important}
#shop-edit-groups>fieldset>legend,#shop-edit-groups>fieldset>label>input{font-weight:800;color:var(--shop-action);font-size:16px;letter-spacing:-.01em}
#shop-edit-groups>fieldset>label>input{background:var(--shop-paper);border-color:var(--shop-action)}

#shops-editor fieldset.shop-group-edit-row{grid-template-columns:minmax(0,1fr) 62px auto;gap:6px}.shop-group-actions{display:flex;align-items:center;gap:3px}#shops-editor button.shop-group-add{display:grid;place-items:center;width:32px;height:38px;padding:0;border:0;border-radius:10px;background:var(--shop-soft);color:var(--shop-action);font-size:27px;font-weight:900}.shop-group-fixed-name{color:var(--shop-action);font-size:16px;font-weight:800;align-self:center}.shop-group-order{font-size:11px!important}.shop-group-order input{text-align:center;padding:6px 2px!important}#shops-editor .shop-group-actions button.shop-group-delete{width:30px}.shop-group-order input:disabled{opacity:.65}

#shop-add-product{display:none}
