.flow-page { width: min(1100px, calc(100% - 48px)); min-height: calc(100vh - 152px); padding: 34px 0 60px; }
.flow-header h1 { font: 400 clamp(2.2rem, 5vw, 4.1rem)/1.07 var(--serif); letter-spacing: -.05em; margin: 7px 0 23px; }
.flow-header h1:focus { outline: 0; }
.flow-content > .btn { margin-top: 12px; }
.flow-page.auth-page { width: min(440px, calc(100% - 28px)); }
.auth-page .flow-content { background: var(--white); border: 1px solid var(--line); padding: clamp(14px, 4vw, 26px); border-radius: 17px; }
.auth-tabs a[aria-current=page] { background: var(--ink); color: white; border-color: var(--ink); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 85px; }
.password-field button { position: absolute; top: 0; bottom: 0; right: 10px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(275px, 1fr); align-items: start; gap: 24px; }
.cart-page .flow-header { text-align: center; }
.cart-layout > *, #checkout-form { background: var(--white); border-radius: 16px; padding: clamp(12px, 3vw, 21px); box-shadow: 0 5px 22px #2622350b; }
.cart-layout .cart-lines li:first-child { border-top: 0; padding-top: 0; }
.cart-layout .cart-lines img { width: 108px; height: 126px; }
.cart-photo { display: block; border-radius: 7px; }
.cart-layout .stepper { border-radius: 10px; background: var(--paper); }
.cart-layout .stepper button { width: 38px; height: 38px; font-size: 1rem; border: 0; background: transparent; }
.cart-layout .cart-lines li.cart-line { grid-template-columns: 24px auto minmax(0, 1fr) auto; align-items: center; }
.cart-all, .cart-select { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 35px; cursor: pointer; }
.cart-all { margin-bottom: 6px; min-height: 40px; }
.cart-layout input[type=checkbox] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--blue); cursor: pointer; }
.cart-product { overflow-wrap: anywhere; }
.cart-product .stepper { margin-top: 3px; }
.cart-line.unselected .cart-photo { opacity: .65; }
.cart-side-actions { display: grid; gap: 8px; }
.cart-side-actions .btn { justify-content: center; }
.cart-amount > strong { font: 550 1.1rem/1.25 system-ui,sans-serif; }
.cart-amount .icon-control { min-width: 40px; min-height: 40px; padding: 0; color: var(--muted); }
.cart-amount .icon-control:hover { color: #9c303e; border-color: #9c303e; }
.cart-heading { margin-bottom: 12px; font-size: 1.15rem; }
.cart-side #promo-form { margin-top: 0; }
.cart-side .billing { margin-bottom: 8px; }
#checkout-form { width: 100%; }
.checkout-summary { display: grid; gap: 12px; max-width: 500px; }
.delivery-return { display: inline-block; margin-bottom: 12px; }
.pickup-help, .order-pickup { display: flex; align-items: start; gap: 8px; padding: 8px 10px; }
.pickup-help { background: #edf0fc; border-radius: 9px; font-size: .88rem; }
.pickup-help .ui-icon, .order-pickup .ui-icon { margin-top: .11em; color: var(--blue); }
.checkout-unavailable, .order-updates, .order-controls, .order-latest { padding: 10px 12px; border-radius: 10px; background: #eeefe4; overflow-wrap: anywhere; }
.checkout-unavailable { margin: 10px 0; }
.checkout-unavailable strong { display: block; margin-bottom: 3px; }
.order-updates p { display: flex; gap: 7px; align-items: flex-start; margin: 0; }
.order-updates p + p { margin-top: 7px; }
.order-controls summary { cursor: pointer; color: var(--blue); font-weight: 650; }
.order-controls[open] .stack { margin-top: 8px; }
.order-latest { white-space: pre-wrap; font-size: .9rem; }
.admin-order-group { margin: 14px 0 24px; }
.admin-order-group h2 { margin: 0 0 10px; font: 400 1.52rem/1.2 var(--serif); }
.orders-tools, .purchase-totals { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.orders-tools { justify-content: space-between; margin-bottom: 15px; }
.purchase-order { gap: 14px; padding: clamp(13px, 3vw, 23px); border-radius: 16px; }
.purchase-order .order-summary { font-size: .96rem; }
.purchase-order .order-summary small { display: block; padding-left: 1.45em; color: var(--muted); }
.order-pickup { padding-inline: 0; font-size: .9rem; }
.purchase-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(133px, 1fr)); gap: 16px; }
.purchase-card { min-width: 0; display: grid; grid-template-rows: auto auto auto 1fr; gap: 4px; padding-bottom: 3px; font-size: .9rem; }
.purchase-image img { width: 100%; height: auto; aspect-ratio: 1.13; object-fit: cover; background: var(--paper); border-radius: 9px; }
.purchase-card small, .purchase-totals > span { color: var(--muted); font-size: .82rem; }
.purchase-name { line-height: 1.3; }
a.purchase-name:hover { color: var(--blue); }
.purchase-totals { padding-top: 10px; border-top: 1px solid var(--line); }
.purchase-totals strong { margin-left: auto; }
.account-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin: 14px 0; }
.account-shortcuts a { display: flex; min-height: 68px; align-items: center; gap: 8px; padding: 11px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; font-size: .88rem; }
.account-shortcuts .ui-icon, .account-shortcuts a:hover { color: var(--blue); }
.shop-search { display: grid; gap: 5px; max-width: 560px; margin-bottom: 14px; font-size: .85rem; font-weight: 700; }
.shop-search input { font-weight: 400; }
.catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-bottom: 15px; }
.catalog-controls label { display: grid; gap: 5px; font-size: .85rem; font-weight: 700; min-width: 0; }
.catalog-controls .shop-search { max-width: 500px; margin: 0; }
.filter-menu { position: relative; }
.filter-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; justify-content: center; min-height: 44px; padding: 7px 15px; border-radius: 10px; color: var(--blue); background: #e9ebfb; cursor: pointer; font-weight: 700; font-size: .86rem; }
.filter-menu summary::-webkit-details-marker { display: none; }
.filter-symbol { font-size: 1.25rem; line-height: 1; }
#filter-count { color: white; background: var(--blue); border-radius: 99px; min-width: 20px; text-align: center; }
.filter-panel { position: absolute; z-index: 4; right: 0; top: calc(100% + 8px); width: min(390px, calc(100vw - 30px)); display: grid; gap: 14px; padding: 16px; background: var(--white); border-radius: 15px; box-shadow: 0 10px 28px #20254026; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; min-width: 0; border: 0; padding: 9px 10px; background: #f0f1e8; border-radius: 10px; }
.price-range legend { font-weight: 700; font-size: .9rem; }
.price-range label { display: flex; flex-wrap: wrap; justify-content: space-between; }
.price-range input[type=range] { width: 100%; min-width: 0; min-height: 30px; padding: 0; background: none; border: 0; accent-color: var(--blue); cursor: pointer; }
.filter-reset { color: var(--blue); background: #edf0fc; justify-self: start; }
.pickup-picker { scroll-margin-top: 10px; min-width: 0; }
.pickup-title, .pickup-heading { display: flex; flex-wrap: wrap; align-items: end; gap: 9px 14px; }
.pickup-title { align-items: center; justify-content: space-between; }
.pickup-title h2 { font: 400 clamp(1.45rem, 3vw, 2rem)/1.15 var(--serif); margin: 0; }
.pickup-heading { margin-bottom: 13px; }
.pickup-heading > label:not([hidden]) { flex: 1 1 220px; }
.pickup-city { display: grid; flex: 1 1 260px; gap: 4px; min-width: 0; font-size: .88rem; font-weight: 700; }
.pickup-city-button { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #b8bac5; border-radius: 9px; background: #f7f7f2; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pickup-city-button .ui-icon { color: var(--blue); }
.pickup-city-button span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickup-city-button span:last-child { margin-left: auto; color: var(--blue); }
.local-pickup { display: flex; align-items: start; gap: 10px; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: #edf0e3; }
.local-pickup[hidden] { display: none; }
.local-pickup > .ui-icon { margin-top: 2px; color: var(--blue); }
.local-pickup > div { flex: 1; min-width: 0; }
.local-pickup h3 { margin: 0; font: 700 1rem/1.3 Arial,sans-serif; }
.local-pickup p { margin: 2px 0; font-size: .86rem; }
.local-pickup .btn[aria-pressed=true] { border-color: var(--blue); color: var(--blue); background: #edf0fc; }
.pickup-modes { display: none; }
.pickup-explorer { --map-height: clamp(390px, 53vh, 590px); display: grid; grid-template-columns: minmax(0,1.8fr) minmax(235px,1fr); gap: 14px; }
.pickup-sidebar { height: var(--map-height); display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.pickup-picker .point-results { flex: 1; min-height: 0; max-height: none; align-content: start; overscroll-behavior: contain; padding: 0 5px 0 0; }
.pickup-picker .point { min-height: 50px; border-color: #e4e6dc; background: #f7f7f1; }
.pickup-picker .point[aria-pressed=true] { border-color: var(--blue); background: #edf0fc; }
.point-status { margin: 0; font-size: .82rem; color: var(--muted); }
.carrier-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #2544e6; margin-right: 5px; }
[data-provider="cdek"] .carrier-dot { background: #13784c; }
.pickup-stage { position: relative; overflow: hidden; height: var(--map-height); border-radius: 12px; background: #e8ebdf; touch-action: none; cursor: grab; }
.pickup-stage:active { cursor: grabbing; }
.map-tiles, .map-markers { position: absolute; inset: 0; pointer-events: none; }
.map-tiles img { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; }
.yandex-map-layer { position: absolute; inset: 0; background: #e8ebdf; }
.yandex-map-layer iframe { display: block; width: 100%; height: 100%; border: 0; }
.pickup-stage.has-yandex-map .map-markers, .pickup-stage.has-yandex-map .map-controls { display: none; }
.pickup-map-document, .pickup-map-document body, #yandex-pickups { width: 100%; height: 100%; margin: 0; overflow: hidden; }
.map-opening { position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%); width: max-content;
  max-width: calc(100% - 24px); display: grid; justify-items: center; gap: 4px; padding: 8px 10px 6px; border-radius: 12px;
  background: var(--white); box-shadow: 0 2px 14px #19163820; text-align: center; cursor: default; }
.map-opening[hidden], .map-settings[hidden], .yandex-map-layer[hidden], .map-credit[hidden] { display: none; }
.map-opening small { font-size: .69rem; color: var(--muted); }
.map-opening a { text-decoration: underline; }
.map-settings { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 5px 8px; border-radius: 6px; background: var(--white);
  font-size: .74rem; }
.map-pin { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; min-height: 34px; border: 2px solid white; color: white; background: var(--blue); border-radius: 50%; font-size: .78rem; font-weight: 800; box-shadow: 0 2px 6px #0005; }
.map-pin[aria-pressed=true] { z-index: 1; color: var(--ink); background: var(--lime); }
.map-controls { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; gap: 3px; }
.map-controls button { border: 1px solid var(--line); border-radius: 6px; width: 39px; height: 39px; background: var(--white); font-size: 1.16rem; }
.map-credit { position: absolute; bottom: 0; right: 0; padding: 0 4px; background: #fffe; font-size: .66rem; }
@media (max-width: 700px) {
  .flow-page { width: calc(100% - 28px); padding-top: 20px; }
  .cart-layout { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .cart-layout .cart-lines img { width: 92px; height: 108px; }
  .cart-layout .stepper button { width: 40px; height: 40px; }
  .shop-search { max-width: none; }
  .catalog-controls { grid-template-columns: 1fr; }
  .filter-menu { justify-self: start; }
  .filter-panel { right: auto; left: 0; }
}
@media (max-width: 620px) {
  .cart-layout .cart-lines li.cart-line { grid-template-columns: 19px 72px minmax(0, 1fr) auto; gap: 6px; }
  .cart-layout .cart-lines img { width: 72px; height: 88px; }
  .cart-amount > strong { font-size: .98rem; }
  .cart-layout .stepper { gap: 5px; }
  .cart-layout .stepper button { width: 29px; min-height: 38px; }
  .purchase-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pickup-heading { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .pickup-heading > label { min-width: 0; }
  .local-pickup { flex-wrap: wrap; }
  .local-pickup .btn { flex: 1 1 100%; }
  .pickup-modes { display: flex; flex-wrap: nowrap; }
  .pickup-modes .pill { min-height: 40px; padding-inline: 8px; }
  .pickup-explorer { --map-height: clamp(340px, 53svh, 475px); display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; }
  .pickup-sidebar { height: auto; }
  .pickup-picker .point-results { max-height: min(54svh,490px); flex: auto; }
  #point-map { display: none; }
  .show-map #point-map { display: block; }
  .show-map #point-results { display: none; }
}
.chat-list { display: grid; gap: 10px; }
.chat-thread .chat-messages { display: grid; gap: 10px; max-height: 48vh; min-height: 100px; overflow-y: auto; padding: 8px; background: #f2f1e9; border-radius: 12px; }
.chat-message { justify-self: start; max-width: min(94%, 520px); padding: 10px 14px; border-radius: 12px; background: var(--white); }
.chat-message.chat-own { justify-self: end; background: #dce5fc; }
.chat-message.chat-system { justify-self: center; background: #e6edbd; }
.chat-message header { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: .79rem; }
.chat-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.map-pin[data-carrier="ozon"][aria-pressed=false] { background: #2544e6; }
.map-pin[data-carrier="cdek"][aria-pressed=false] { background: #13784c; }
.map-pin { width: auto; min-width: 34px; padding: 2px 7px; border-radius: 30px; white-space: nowrap; }
.map-pin[hidden] { display: none; }
.map-cluster { background: #252946; min-height: 31px; }
.map-cluster-choices { display: grid; gap: 6px; max-height: 170px; overflow: auto; margin-top: 8px; }
.map-cluster-choices[hidden] { display: none; }
.delivery-compare { display: grid; gap: 12px; min-width: 0; }
.picked-delivery { display: grid; gap: 5px; background: #eef0de; padding: 12px 14px; border-radius: 10px; }
.picked-delivery[hidden] { display: none; }
