/* Customer mobile shop styles. Keep isolated from the merchant/admin app. */

html,
body {
  overscroll-behavior-y: none;
}

/* Logged-in customer discovery map. */
.shop-body.shop-map-active {
  overflow: hidden;
  background: #f4f1e8;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.shop-body.shop-map-active .shop-app {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

.shop-nearby-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #e9efe8;
}

.shop-nearby-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(28deg, transparent 45%, rgba(116, 172, 191, .2) 46% 49%, transparent 50%),
    #edf0e7;
}

.shop-nearby-map .leaflet-tile-pane {
  filter: saturate(.72) sepia(.08) brightness(1.04);
}

.shop-nearby-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, .74);
  color: #65746c;
  font-size: 9px;
}

.shop-map-header {
  position: absolute;
  z-index: 900;
  top: 18px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: minmax(190px, .42fr) minmax(320px, 1fr) 48px;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(83, 103, 94, .2);
  border-radius: 19px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 42px rgba(42, 60, 52, .14);
  backdrop-filter: blur(18px);
}

.shop-map-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.shop-map-brand strong {
  color: #087f79;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.045em;
}

.shop-map-brand span {
  overflow: hidden;
  color: #6c7771;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-map-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding-left: 13px;
  border: 1px solid #d5ded8;
  border-radius: 13px;
  background: #fff;
}

.shop-map-search > span {
  color: #7a8780;
  font-size: 24px;
  line-height: 1;
}

.shop-map-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #21332b;
  background: transparent;
  font: inherit;
}

.shop-map-search button {
  align-self: stretch;
  min-width: 78px;
  border: 0;
  border-radius: 11px;
  background: #087f79;
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.shop-map-search button:disabled { opacity: .64; }

.shop-map-account {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f0b45d;
  color: #17372f;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 4px 13px rgba(38, 59, 50, .16);
}

.shop-map-message {
  position: absolute;
  z-index: 890;
  top: 92px;
  left: 50%;
  max-width: min(560px, calc(100vw - 32px));
  margin: 0;
  padding: 9px 13px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(35, 50, 43, .88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.shop-map-selected-card {
  position: absolute;
  z-index: 880;
  top: 122px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, .75fr) auto;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100vw - 40px));
  padding: 13px;
  transform: translateX(-50%);
  border: 1px solid rgba(86, 107, 96, .18);
  border-radius: 17px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 17px 44px rgba(37, 53, 46, .17);
  box-sizing: border-box;
  backdrop-filter: blur(14px);
}

.shop-map-selected-card[hidden] { display: none; }

.shop-map-selected-layout {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 124px;
}

.shop-map-selected-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.shop-map-selected-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.shop-map-selected-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.shop-map-selected-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: #fff0dc;
  color: #dc7043;
  font-size: 42px;
}
.shop-map-selected-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.shop-map-selected-copy > span:last-child { min-width: 0; }
.shop-map-selected-copy strong,
.shop-map-selected-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-map-selected-copy strong { color: #20342b; font-size: 17px; }
.shop-map-selected-copy small { margin-top: 3px; color: #37806d; font-size: 12px; font-weight: 800; }
.shop-map-selected-rating { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 4px; color: #b56a00; white-space: nowrap; }
.shop-map-selected-rating b { font-size: 15px; }
.shop-map-selected-rating small { color: #7b817d; font-size: 11px; }
.shop-map-match { overflow: hidden; color: #6a7770; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.shop-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.shop-map-actions > button {
  min-height: 39px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #087f79;
  color: #fff;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
}

.shop-map-actions .shop-map-route-button {
  color: #16120a;
  background: #ffdc32;
}

.shop-map-actions .shop-map-go-button {
  color: #fff;
  background: #171717;
}

.shop-yandex-marker {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -100%);
}

.shop-yandex-marker > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  color: #fff;
  background: #0f7c66;
  box-shadow: 0 8px 20px rgba(13, 35, 31, 0.24);
  transform: rotate(-45deg);
}

.shop-yandex-marker > span > b { transform: rotate(45deg); }
.shop-yandex-marker.selected > span { background: #e65c36; }

.shop-yandex-user-marker {
  display: block;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #0f7c66;
  box-shadow: 0 4px 14px rgba(13, 35, 31, 0.3);
  transform: translate(-50%, -50%);
}

.shop-map-reset {
  position: absolute;
  z-index: 900;
  right: 27px;
  bottom: 116px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 8px;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid rgba(58, 92, 79, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: #087f79;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(35, 55, 46, .16);
  backdrop-filter: blur(12px);
}

.shop-map-reset[hidden] { display: none; }
.shop-map-reset > span { grid-row: 1 / 3; font-size: 21px; transform: rotate(-45deg); }
.shop-map-reset small { color: #6f7a74; font-size: 10px; font-weight: 750; }

.shop-map-voice-wrap {
  position: absolute;
  z-index: 910;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  color: #34473e;
  pointer-events: none;
}

.shop-map-voice {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 5px;
  border: 7px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: #ff624f;
  color: #fff;
  box-shadow: 0 0 0 12px rgba(255, 98, 79, .14), 0 15px 36px rgba(113, 51, 42, .28);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.shop-map-voice::before,
.shop-map-voice::after {
  content: "";
  position: absolute;
  inset: -19px;
  border: 1px solid rgba(255, 98, 79, .28);
  border-radius: 50%;
  pointer-events: none;
}
.shop-map-voice::after { inset: -31px; opacity: .55; }
.shop-map-voice svg { width: 50px; height: 50px; fill: #fff; stroke: #fff; stroke-width: 4; }
.shop-map-voice svg rect { stroke: none; }
.shop-map-voice svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shop-map-voice-wrap > strong { color: #db4b3d; font-size: 15px; }
.shop-map-voice-wrap > small { margin-top: 1px; color: #78827d; font-size: 11px; font-weight: 750; }
.shop-map-voice.listening { animation: shop-voice-pulse .8s ease-in-out infinite alternate; background: #df3f35; }

@keyframes shop-voice-pulse {
  to { transform: scale(1.07); box-shadow: 0 0 0 21px rgba(255, 98, 79, .17), 0 18px 40px rgba(113, 51, 42, .32); }
}

.shop-map-marker {
  border: 0;
  background: transparent;
}

.shop-map-marker span {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 10px;
  transform: rotate(-45deg);
  background: #f0a227;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(39, 58, 49, .25);
  box-sizing: border-box;
}
.shop-map-marker span::after { content: attr(data-label); }
.shop-map-marker span { text-indent: 0; }
.shop-map-marker span::first-line { transform: rotate(45deg); }
.shop-map-marker span { line-height: 1; }
.shop-map-marker span { --marker-rotation: 45deg; }
.shop-map-marker span { font-variant-numeric: tabular-nums; }
.shop-map-marker span { padding: 0; }
.shop-map-marker span { writing-mode: horizontal-tb; }
.shop-map-marker span { direction: ltr; }
.shop-map-marker span { font-family: "Avenir Next", sans-serif; }
.shop-map-marker span { color: transparent; }
.shop-map-marker span::before { content: attr(data-index); }
.shop-map-marker span { color: #fff; }
.shop-map-marker.selected span { background: #ff624f; transform: rotate(-45deg) scale(1.14); }
.shop-map-marker span { display: flex; }
.shop-map-marker span { align-items: center; justify-content: center; }
.shop-map-marker span { transform-origin: center; }
.shop-map-marker span { text-shadow: 0 1px 1px rgba(0, 0, 0, .16); }
.shop-map-marker span { font-size: 0; }
.shop-map-marker span::after { content: "◆"; font-size: 13px; transform: rotate(45deg); }

.shop-nearby-map .leaflet-control-zoom {
  margin-right: 24px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(35, 55, 46, .15);
}
.shop-nearby-map .leaflet-control-zoom a { color: #29463a; }

.shop-map-floating-search {
  position: fixed;
  z-index: 1000;
  top: 18px;
  left: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.shop-map-floating-search .shop-map-search {
  width: min(560px, calc(100dvw - 172px));
  box-shadow: 0 10px 28px rgba(38, 59, 50, .15);
}

.shop-map-floating-search .shop-map-search[hidden] { display: none; }

.shop-map-search-launch {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #17372f;
  cursor: pointer;
  box-shadow: 0 4px 13px rgba(38, 59, 50, .16);
}

.shop-map-search-launch span {
  font-size: 27px;
  line-height: 1;
}

.shop-map-floating-account {
  position: fixed;
  z-index: 1000;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.shop-map-account-logout {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #f0caca;
  border-radius: 13px;
  background: #fff4f3;
  color: #a12b2b;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(38, 59, 50, .15);
}

.shop-map-account-logout[hidden] { display: none; }

.shop-map-account-menu {
  display: grid;
  min-width: 132px;
  overflow: hidden;
  border: 1px solid #d7e0da;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38, 59, 50, .15);
}

.shop-map-account-menu[hidden] { display: none; }

.shop-map-account-menu button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #edf1ee;
  background: #fff;
  color: #17372f;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.shop-map-account-menu button:last-child { border-bottom: 0; }
.shop-map-account-menu .shop-map-account-logout { color: #a12b2b; }

.shop-map-actions .shop-map-go-button {
  border: 1px solid #d6b64f;
  background: #fff8d9;
  color: #604d09;
}

.shop-map-actions .shop-map-reviews-button {
  border: 1px solid #cbd9d1;
  background: #fff;
  color: #29463a;
}

.shop-map-reviews-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  max-height: min(42dvh, 360px);
  overflow: auto;
  padding-top: 10px;
  border-top: 1px solid #e1e8e3;
}

.shop-map-reviews-panel[hidden] { display: none; }
.shop-map-reviews-empty { margin: 0; color: #687970; font-size: 13px; }
.shop-map-review { display: grid; gap: 6px; padding: 9px; border-radius: 11px; background: #f7faf8; }
.shop-map-review header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.shop-map-review header > span { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: #e6eee9; font-weight: 900; }
.shop-map-review header img { width: 100%; height: 100%; object-fit: cover; }
.shop-map-review header small { color: #7d8982; font-size: 11px; }
.shop-map-review p { margin: 0; white-space: pre-wrap; }
.shop-map-review > div { display: flex; gap: 6px; overflow-x: auto; }
.shop-map-review > div img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; }
.shop-review-ratings { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; overflow: visible !important; }
.shop-review-ratings span { display: grid; gap: 2px; }
.shop-review-ratings b { color: #65766c; font-size: 10px; }
.shop-review-ratings em { color: #e3a21a; font-size: 13px; font-style: normal; letter-spacing: 1px; }

.shop-order-review-editor { display: grid; gap: 9px; padding: 11px; border: 1px solid #dce5df; border-radius: 10px; background: #f8fbf9; }
.shop-order-review-editor textarea { width: 100%; resize: vertical; border: 1px solid #d5ded8; border-radius: 8px; padding: 9px; font: inherit; }
.shop-review-rating-editor { display: grid; gap: 7px; }
.shop-review-rating-row { display: grid; grid-template-columns: minmax(92px, auto) 1fr; align-items: center; gap: 8px; }
.shop-review-rating-row > span { color: #52645a; font-size: 13px; font-weight: 800; }
.shop-review-stars { display: flex; gap: 2px; }
.shop-review-stars button { padding: 0; border: 0; background: transparent; color: #cbd3ce; font-size: 25px; line-height: 1; }
.shop-review-stars button.active { color: #e3a21a; }
.shop-review-stars button:focus-visible { outline: 2px solid #087f79; outline-offset: 2px; }
.shop-order-review-images { display: flex; gap: 7px; overflow-x: auto; }
.shop-order-review-images img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.shop-order-review-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-order-review-actions label,
.shop-order-review-actions button { min-height: 38px; padding: 0 12px; border: 1px solid #cbd9d1; border-radius: 8px; background: #fff; color: #29463a; font: inherit; font-weight: 900; }
.shop-order-review-actions label { display: grid; place-items: center; cursor: pointer; }
.shop-order-review-actions label input { display: none; }
.shop-order-review-actions button { background: #087f79; border-color: #087f79; color: #fff; }
.shop-order-review-actions button:disabled { opacity: .55; }

@media (max-width: 420px) {
  .shop-review-ratings { grid-template-columns: 1fr; }
  .shop-review-rating-row { grid-template-columns: 1fr; gap: 3px; }
}

.shop-map-account,
.shop-map-search-launch {
  flex: 0 0 auto;
  cursor: pointer;
}

.shop-map-account img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

@media (max-width: 700px) {
  .shop-map-header {
    top: max(9px, env(safe-area-inset-top));
    left: 9px;
    right: 9px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
  }
  .shop-map-brand { padding-left: 5px; }
  .shop-map-brand strong { font-size: 23px; }
  .shop-map-brand span { font-size: 11px; }
  .shop-map-account { width: 40px; height: 40px; font-size: 15px; }
  .shop-map-search { grid-column: 1 / -1; grid-row: 2; min-height: 43px; }
  .shop-map-search button { min-width: 56px; }
  .shop-map-search .shop-map-inline-logout { min-width: 52px; }
  .shop-map-floating-search {
    top: max(9px, env(safe-area-inset-top));
    left: 9px;
    gap: 8px;
  }
  .shop-map-search-launch { width: 40px; height: 40px; }
  .shop-map-floating-search .shop-map-search { width: calc(100dvw - 106px); }
  .shop-map-floating-search .shop-map-search {
    position: fixed;
    top: calc(max(9px, env(safe-area-inset-top)) + 48px);
    left: 9px;
    right: 9px;
    width: auto;
  }
  .shop-map-floating-account {
    top: max(9px, env(safe-area-inset-top));
    right: 9px;
    gap: 8px;
  }
  .shop-map-account-logout { min-height: 40px; padding: 0 12px; }
  .shop-map-message { top: 62px; }
  .shop-map-message { top: 126px; font-size: 11px; }
  .shop-map-selected-card {
    top: auto;
    bottom: calc(119px + env(safe-area-inset-bottom));
    display: block;
    min-height: 218px;
    width: calc(100vw - 18px);
    padding: 13px;
    border-radius: 16px;
  }
  .shop-map-selected-layout { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; min-height: 190px; }
  .shop-map-selected-icon { width: 84px; height: 104px; border-radius: 18px; font-size: 40px; }
  .shop-map-selected-copy strong { font-size: 14px; }
  .shop-map-match { display: none; }
  .shop-map-selected-main .shop-map-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .shop-map-selected-main .shop-map-actions > button { width: 100%; min-height: 39px; padding: 0 7px; font-size: 11px; }
  .shop-map-reset {
    right: 11px;
    bottom: calc(354px + env(safe-area-inset-bottom));
    min-height: 43px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
  }
  .shop-map-reset small { display: none; }
  .shop-map-reset > span { grid-row: auto; }
  .shop-map-voice-wrap { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .shop-map-voice { width: 76px; height: 76px; border-width: 5px; box-shadow: 0 0 0 8px rgba(255, 98, 79, .14), 0 11px 26px rgba(113, 51, 42, .25); }
  .shop-map-voice::before { inset: -13px; }
  .shop-map-voice::after { display: none; }
  .shop-map-voice svg { width: 36px; height: 36px; }
  .shop-map-voice-wrap > strong { font-size: 13px; }
  .shop-map-voice-wrap > small { font-size: 10px; }
  .shop-nearby-map .leaflet-control-zoom { display: none; }
  .shop-nearby-map .leaflet-control-attribution { max-width: 65vw; overflow: hidden; white-space: nowrap; }
}

.shop-search-results-page {
  min-height: 100dvh;
  padding: 22px clamp(14px, 4vw, 54px) 48px;
  background: linear-gradient(145deg, #f4f8f5 0%, #eef5f2 52%, #f8f3e9 100%);
}

.shop-search-results-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 20px;
}

.shop-search-results-head > button,
.shop-search-results-head select {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd9d1;
  border-radius: 11px;
  background: #fff;
  color: #29463a;
  font: inherit;
  font-weight: 900;
}

.shop-search-results-head > div { min-width: 0; }
.shop-search-results-head small { color: #6c7b73; font-weight: 800; }
.shop-search-results-head h1 { display: inline; margin: 0 8px 0 0; font-size: clamp(22px, 4vw, 38px); }
.shop-search-results-head > div > span { color: #087f79; font-weight: 900; }
.shop-search-results-head label { display: grid; gap: 4px; color: #6c7b73; font-size: 12px; font-weight: 800; }
.shop-search-results-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; }
.shop-search-results-list .shop-search-result { margin: 0; }
.shop-search-rating { display: grid; gap: 2px; }
.shop-search-rating > b { color: #d49414; }
.shop-search-rating small { color: #7a8780; }

@media (max-width: 620px) {
  .shop-search-results-page { padding: 12px 10px 32px; }
  .shop-search-results-head { grid-template-columns: 1fr auto; gap: 10px; }
  .shop-search-results-head > button { grid-column: 1 / -1; justify-self: start; }
  .shop-search-results-head h1 { font-size: 24px; }
}

@media (max-width: 380px) {
  .shop-map-search > span { display: none; }
  .shop-map-search {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-map-voice.listening { animation: none; }
}

.shop-body {
  margin: 0;
  background: #eef4f6;
  color: #172033;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shop-app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 10px 86px;
  box-sizing: border-box;
}

.shop-loading,
.shop-empty-page,
.shop-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  color: #667189;
  font-weight: 800;
  text-align: center;
}

.shop-empty-page {
  min-height: calc(100vh - 20px);
  padding: 24px;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

.shop-header span,
.shop-header p {
  display: block;
  margin: 0;
  color: #667189;
  font-size: 12px;
  font-weight: 700;
}

.shop-header h1 {
  margin: 2px 0;
  font-size: 18px;
  line-height: 1.15;
}

.shop-user-button,
.shop-add-button,
.shop-cart-bar,
.shop-submit,
.shop-auth-form button {
  border: 0;
  border-radius: 8px;
  background: #377f73;
  color: #fff;
  font-weight: 900;
}

.shop-user-button {
  flex: 0 0 auto;
  max-width: 132px;
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-categories {
  display: flex;
  gap: 8px;
  padding: 12px 0 8px;
  overflow-x: auto;
}

.shop-categories button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  background: #fffef6;
  color: #172033;
  font-weight: 900;
}

.shop-categories button.active {
  border-color: #377f73;
  background: #e7f4ef;
  color: #245f56;
}

.shop-categories span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e6edf5;
  font-size: 11px;
}

.shop-product-grid {
  display: grid;
  gap: 8px;
}

.shop-product-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
}

.shop-product-image {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f6;
}

.shop-product-image img,
.shop-product-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-placeholder {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 5px;
  padding: 12px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background:
    linear-gradient(135deg, var(--shop-ph-start, #438e67), var(--shop-ph-end, #172033));
}

.shop-product-placeholder::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--shop-ph-mark, rgba(255,255,255,.26));
  opacity: .9;
}

.shop-product-placeholder span,
.shop-product-placeholder strong {
  position: relative;
  z-index: 1;
}

.shop-product-placeholder span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 17px;
}

.shop-product-placeholder strong {
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.20);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-main {
  min-width: 0;
}

.shop-product-main h2 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.shop-product-main p {
  margin: 3px 0 6px;
  color: #667189;
  font-size: 12px;
}

.shop-product-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.shop-product-meta b {
  color: #172033;
  font-size: 14px;
}

.shop-product-meta span {
  color: #667189;
}

.shop-add-button {
  min-width: 52px;
  min-height: 40px;
  padding: 0 10px;
}

.shop-cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(500px, calc(100vw - 20px));
  min-height: 54px;
  padding: 0 16px;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.22);
}
.shop-app > .shop-map-return {
  position: fixed;
  left: max(10px, calc((100vw - 520px) / 2 + 10px));
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(36,107,99,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #246b63;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(23,32,51,.16);
  backdrop-filter: blur(10px);
}

.shop-sheet {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(23, 32, 51, 0.36);
}

.shop-sheet-card {
  width: min(520px, 100vw);
  max-height: min(88vh, 760px);
  padding: 12px;
  overflow: auto;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-sizing: border-box;
}

.shop-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.shop-sheet-head h2 {
  margin: 0;
  font-size: 18px;
}

.shop-sheet-head button {
  width: 36px;
  height: 36px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font-size: 24px;
  line-height: 1;
}

.shop-cart-lines,
.shop-order-form,
.shop-auth-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.shop-payment-instructions {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fffef6;
}

.shop-payment-instructions strong {
  color: #172033;
  font-size: 13px;
}

.shop-payment-instructions p {
  margin: 0;
  color: #4c5870;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.shop-payment-methods {
  display: flex;
  gap: 18px;
  padding: 10px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
}

.shop-payment-methods legend { padding: 0 5px; color: #667189; font-size: 12px; font-weight: 800; }
.shop-payment-methods label { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 6px; }
.shop-payment-methods label.disabled { color: #9aa3b2; cursor: not-allowed; opacity: .68; }
.shop-payment-methods input { width: auto; min-height: 0; }
.shop-delivery-summary { display: grid; gap: 5px; padding: 10px; border-radius: 8px; background: #f3f7fb; }
.shop-delivery-summary span { display: flex; justify-content: space-between; color: #667189; font-size: 13px; }
.shop-delivery-summary b { color: #172033; }

.shop-cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fffef6;
}

.shop-cart-line b,
.shop-cart-line span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-cart-line span {
  color: #667189;
  font-size: 12px;
}

.shop-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shop-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  background: #fff;
  font-weight: 900;
}

.shop-qty input {
  width: 58px;
  height: 32px;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
}

.shop-order-form label,
.shop-auth-form label {
  display: grid;
  gap: 4px;
  color: #667189;
  font-size: 12px;
  font-weight: 800;
}

.shop-order-form textarea,
.shop-order-form input,
.shop-auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  box-sizing: border-box;
  color: #172033;
  font: inherit;
}

.shop-auth-panel {
  padding: 10px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #f8fafc;
}

.shop-auth-panel p {
  margin: 0;
  color: #667189;
  font-size: 13px;
}

.shop-cart-page,
.shop-auth-page,
.shop-account-page {
  display: grid;
  gap: 10px;
  min-height: calc(100vh - 96px);
}

.shop-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px;
}

.shop-page-title h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.shop-page-title b {
  color: #ff2d55;
  font-size: 18px;
}

.page-auth-panel,
.shop-account-summary,
.shop-account-telegram,
.shop-order-history {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
}

.shop-account-summary strong,
.shop-account-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-account-summary strong {
  font-size: 18px;
}

.shop-account-summary span {
  color: #667189;
  font-size: 13px;
}

.shop-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-account-row strong,
.shop-account-row span {
  min-width: 0;
}

.shop-account-row span {
  color: #667189;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-account-row span.ok {
  color: #377f73;
  font-weight: 900;
}

.shop-account-row button,
.shop-account-actions button,
.shop-send-telegram-login,
.shop-logout-button,
.shop-telegram-link {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-weight: 900;
  text-decoration: none;
}

.shop-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-send-telegram-login,
.shop-telegram-link,
.shop-logout-button {
  display: grid;
  place-items: center;
}

.shop-send-telegram-login {
  background: #377f73;
  border-color: #377f73;
  color: #fff;
}

.shop-send-telegram-login:disabled {
  opacity: 0.45;
}

.shop-logout-button {
  background: #fff2f2;
  border-color: #ffd2d2;
  color: #b4232a;
}

.shop-order-history-list {
  display: grid;
  gap: 8px;
}

.shop-order-history-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fffef6;
}

.shop-order-history-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-order-history-item span,
.shop-order-history-item em,
.shop-order-history-item small,
.shop-order-history-item p {
  min-width: 0;
  margin: 0;
  color: #667189;
  font-size: 12px;
  font-style: normal;
}

.shop-order-history-item .shop-order-receive-button {
  justify-self: start;
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 10px;
  background: #147d64;
  color: #fff;
  font-weight: 700;
}

.shop-order-history-item .shop-order-cancel-button {
  justify-self: start;
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #c85d64;
  border-radius: 10px;
  background: #fff;
  color: #a7353e;
  font-weight: 700;
}

.shop-order-history-item .shop-order-reorder-button {
  justify-self: start;
  width: auto;
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  border-radius: 10px;
  background: #087f79;
  color: #fff;
  font-weight: 800;
}

.shop-order-history-item .shop-order-reorder-button:disabled {
  opacity: .55;
}

.shop-order-history-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shop-auth-tabs button {
  min-height: 36px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.shop-auth-tabs button.active {
  border-color: #377f73;
  background: #e7f4ef;
  color: #245f56;
}

.shop-auth-form {
  display: grid;
  gap: 8px;
}

.shop-auth-form button,
.shop-submit {
  min-height: 46px;
  padding: 0 14px;
  font-size: 15px;
}

.shop-submit {
  width: 100%;
}

.shop-submit:disabled {
  opacity: 0.55;
}

.shop-search-page {
  display: grid;
  gap: 10px;
}

.shop-search-hero,
.shop-search-card,
.shop-search-result {
  border: 1px solid #d8e0ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.shop-search-hero {
  padding: 18px 14px;
  background: linear-gradient(135deg, #fff, #ffeef1);
}

.shop-search-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.1;
}

.shop-search-hero p {
  margin: 0;
  color: #667189;
  font-weight: 700;
}

.shop-search-card {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.shop-search-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shop-search-tabs button {
  min-height: 40px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  background: #fffef6;
  color: #172033;
  font-weight: 900;
}

.shop-search-tabs button.active {
  border-color: #ff2d55;
  background: #fff1f4;
  color: #df1f45;
}

.shop-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
}

.shop-search-form input {
  min-height: 46px;
  min-width: 0;
  border: 2px solid #ff2d55;
  border-radius: 12px;
  padding: 0 12px;
  color: #172033;
  font: inherit;
  font-weight: 800;
}

.shop-search-form button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #ff2d55;
  color: #fff;
  font-weight: 1000;
}

.shop-search-message {
  margin: 0;
  color: #667189;
  font-size: 12px;
  font-weight: 700;
}

.shop-search-results {
  display: grid;
  gap: 8px;
}

.shop-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
}

.shop-search-result h2,
.shop-search-result p,
.shop-search-result span {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-search-result h2 {
  font-size: 16px;
}

.shop-search-result p,
.shop-search-result > div > span,
.shop-search-result-meta {
  color: #667189;
  font-size: 12px;
  font-weight: 700;
}

.shop-search-result-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  white-space: nowrap;
}

.shop-search-result-meta b {
  color: #ff2d55;
}

.shop-search-matches {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.shop-search-matches span {
  display: inline-grid;
  grid-template-columns: 34px minmax(88px, 1fr);
  align-items: center;
  gap: 6px;
  flex: 0 0 160px;
  min-height: 42px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #f8fafc;
  color: #172033;
}

.shop-search-matches img,
.shop-search-matches .shop-product-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.shop-search-matches .shop-product-placeholder {
  padding: 0;
  align-content: center;
  justify-items: center;
}

.shop-search-matches .shop-product-placeholder::before,
.shop-search-matches .shop-product-placeholder strong {
  display: none;
}

.shop-search-matches .shop-product-placeholder span {
  width: 100%;
  height: 100%;
  background: transparent;
  font-size: 13px;
}

.shop-search-result > button {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #377f73;
  color: #fff;
  font-weight: 900;
}

.shop-storefront-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 8px;
  background: rgba(238, 244, 246, 0.96);
  backdrop-filter: blur(14px);
}

.shop-storefront-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 0;
}

.shop-storefront-title > span {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  color: #667189;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-storefront-title h1 {
  grid-column: 1;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-order-contact {
  grid-column: 2;
  align-self: center;
  display: grid;
  justify-items: end;
  min-width: 0;
  color: #246b63;
  text-decoration: none;
}

.shop-order-contact span {
  color: #667189;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.shop-order-contact strong {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.shop-top-categories {
  position: sticky;
  top: 62px;
  z-index: 4;
  display: flex;
  gap: 20px;
  padding: 8px 2px 10px;
  overflow-x: auto;
  background: rgba(238, 244, 246, 0.96);
  backdrop-filter: blur(14px);
}

.shop-top-categories button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #172033;
  font-size: 17px;
  font-weight: 1000;
}

.shop-top-categories button.active {
  color: #ff2d55;
}

.shop-top-categories button.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -5px;
  height: 3px;
  border-radius: 999px;
  background: #ff2d55;
}

.shop-top-categories span {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #ffe4ea;
  color: #df1f45;
  font-size: 11px;
}

.shop-restaurant-catalog {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.shop-category-rail {
  position: sticky;
  top: 68px;
  max-height: calc(100dvh - 156px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 1px 1px 16px;
  scrollbar-width: none;
}

.shop-category-rail::-webkit-scrollbar {
  display: none;
}

.shop-category-rail button {
  position: relative;
  width: 100%;
  min-height: 104px;
  padding: 6px 4px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.shop-category-image {
  width: 60px;
  height: 54px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #edf2f6;
  color: #377f73;
  font-size: 16px;
}

.shop-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-category-rail strong {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

.shop-category-rail em {
  color: #667189;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.shop-category-rail small {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e8edf5;
  color: #667189;
  font-size: 10px;
  font-weight: 900;
}

.shop-category-rail button.active {
  border-color: #377f73;
  background: #e7f4ef;
  color: #245f56;
  box-shadow: inset 3px 0 0 #377f73;
}

.shop-category-rail button.active small {
  background: #377f73;
  color: #fff;
}

.shop-restaurant-catalog .shop-masonry {
  min-width: 0;
  column-gap: 7px;
}

.shop-search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin: 4px 0 8px;
  padding: 0 12px;
  border: 2px solid #ff2d55;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  text-align: left;
}

.shop-search-strip input {
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: #172033;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.shop-search-strip button {
  height: 44px;
  border: 0;
  background: transparent;
  color: #ff2d55;
  font-size: 17px;
  font-weight: 1000;
}

.shop-search-strip span {
  overflow: hidden;
  color: #667189;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-search-strip b {
  color: #ff2d55;
  font-size: 17px;
}

.shop-flash-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: #ff2d55;
  color: #fff;
  overflow: hidden;
}

.shop-flash-strip b {
  flex: 0 0 auto;
  font-size: 17px;
}

.shop-flash-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.shop-flash-strip em {
  margin-left: auto;
  font-style: normal;
  font-weight: 1000;
}

.shop-masonry {
  column-count: 2;
  column-gap: 8px;
}

.shop-masonry-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 8px;
  break-inside: avoid;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
}

.shop-masonry-image {
  min-height: 120px;
  background: #eef2f6;
}

.shop-masonry-image img {
  display: block;
  width: 100%;
  min-height: 120px;
  object-fit: cover;
}

.shop-masonry-image .shop-product-placeholder {
  display: grid;
  width: 100%;
  min-height: 120px;
}

.shop-masonry-card h2 {
  margin: 8px 8px 3px;
  color: #172033;
  font-size: 15px;
  line-height: 1.25;
}

.shop-masonry-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px 8px;
}

.shop-masonry-price > b {
  color: #ff2d55;
  font-size: 17px;
}

.shop-masonry-price button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff0f4;
  color: #ff2d55;
  line-height: 1;
  font-weight: 700;
}

.shop-masonry-price button > span {
  position: absolute;
  top: 4px;
  color: #ff2d55;
  font-size: 11px;
  font-weight: 1000;
}

.shop-masonry-price button > b {
  position: absolute;
  bottom: 5px;
  color: #ff2d55;
  font-size: 24px;
  line-height: 1;
}

.shop-masonry-price button:not(.has-count) > b {
  position: static;
}

.shop-detail-page {
  min-height: calc(100vh - 96px);
}

.shop-detail-back {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: max(10px, calc((100vw - 520px) / 2 + 10px));
  z-index: 3;
  min-height: 32px;
  min-width: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(23, 32, 51, 0.14);
}

.shop-cart-page,
.shop-auth-page,
.shop-account-page {
  padding-top: 36px;
}

.shop-detail-image {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin: 10px 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.shop-detail-image img,
.shop-detail-image .shop-product-placeholder {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.shop-toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(460px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(23, 32, 51, .94);
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .22);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.shop-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shop-detail-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

.shop-detail-card span {
  color: #a36a2b;
  font-size: 13px;
  font-weight: 900;
}

.shop-detail-card h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.shop-detail-price {
  color: #ff2d55;
  font-size: 26px;
  font-weight: 1000;
}

.shop-detail-stock {
  color: #667189;
  font-weight: 800;
}

.shop-detail-qty {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
}

.shop-detail-qty button,
.shop-detail-qty input {
  height: 44px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: #172033;
  font: inherit;
  font-weight: 900;
}

.shop-detail-add {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: #ff2d55;
  color: #fff;
  font-size: 17px;
  font-weight: 1000;
}

/* Dedicated customer sign-in screen. The public shop is mobile-only. */

.shop-body.shop-auth-active {
  background: #f2f1ec;
}

.shop-body.shop-auth-active .shop-app {
  max-width: 520px;
  min-height: 100dvh;
  padding: 0;
}

.shop-auth-page.shop-auth-screen {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100dvh;
  padding:
    max(14px, env(safe-area-inset-top))
    18px
    max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 92% 4%, rgba(47, 111, 91, .14), transparent 30%),
    radial-gradient(circle at 4% 42%, rgba(183, 150, 89, .12), transparent 34%),
    #f2f1ec;
  font-family: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shop-auth-page.shop-auth-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(38, 54, 48, .04) 3px 4px);
}

.shop-auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.shop-auth-nav > span {
  color: #66716b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.shop-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 10px 0 7px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .66);
  color: #26362f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(38, 54, 47, .08);
  backdrop-filter: blur(14px);
  transition: background-color .2s ease, transform .2s ease;
}

.shop-auth-back svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-auth-back:active {
  transform: scale(.98);
}

.shop-auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.shop-auth-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  background: #273a32;
  color: #fff;
  box-shadow: 0 14px 30px rgba(45, 67, 57, .2);
}

.shop-auth-brand-mark b {
  font-size: 24px;
  font-weight: 800;
}

.shop-auth-brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.shop-auth-brand > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.shop-auth-brand small,
.shop-auth-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-auth-brand small {
  color: #738078;
  font-size: 12px;
  font-weight: 700;
}

.shop-auth-brand strong {
  color: #1d2c26;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.shop-auth-card {
  display: grid;
  gap: 18px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    0 24px 60px rgba(49, 69, 60, .13),
    inset 0 0 0 1px rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
}

.shop-auth-copy {
  display: grid;
  gap: 6px;
}

.shop-auth-copy small {
  color: #2f6f5b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.shop-auth-copy h1 {
  margin: 0;
  color: #17251f;
  font-size: clamp(27px, 8vw, 35px);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.shop-auth-copy p {
  max-width: 38ch;
  margin: 2px 0 0;
  color: #68746d;
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.shop-auth-card .shop-auth-tabs {
  gap: 3px;
  padding: 3px;
  border-radius: 13px;
  background: #ecefea;
}

.shop-auth-card .shop-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #717a75;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.shop-auth-card .shop-auth-tabs button.active {
  background: #fff;
  color: #1f332a;
  box-shadow: 0 5px 14px rgba(44, 63, 54, .1);
}

.shop-auth-card .shop-auth-tabs button:active {
  transform: scale(.98);
}

.shop-auth-native-form {
  gap: 14px;
  margin: 0;
}

.shop-auth-native-form .shop-auth-field {
  display: grid;
  gap: 7px;
}

.shop-auth-field > span:first-child {
  padding-left: 2px;
  color: #4f5c55;
  font-size: 12px;
  font-weight: 750;
}

.shop-auth-input {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #dce2de;
  border-radius: 14px;
  background: #f8faf8;
  box-sizing: border-box;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.shop-auth-input:focus-within {
  border-color: #377f68;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(55, 127, 104, .11);
}

.shop-auth-input svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #75817b;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-auth-native-form .shop-auth-input input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17251f;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
}

.shop-auth-password {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  padding-right: 7px;
}

.shop-auth-native-form .shop-auth-password button {
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #2f6f5b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.shop-auth-native-form .shop-auth-password button:active {
  background: rgba(55, 127, 104, .1);
  transform: scale(.98);
}

.shop-auth-native-form .shop-auth-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 16px 0 18px;
  border: 0;
  border-radius: 15px;
  background: #273f35;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 13px 24px rgba(39, 63, 53, .2);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.shop-auth-native-form .shop-auth-primary svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-auth-native-form .shop-auth-primary:active {
  transform: scale(.985);
  box-shadow: 0 8px 18px rgba(39, 63, 53, .18);
}

.shop-auth-native-form .shop-auth-primary:disabled {
  opacity: .66;
}

.shop-auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff0ef;
  color: #9e3d38;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.shop-auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  min-width: 0;
  color: #7b847f;
  font-size: 11px;
  font-weight: 650;
}

.shop-auth-footer span:last-child {
  max-width: 62vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-auth-back:focus-visible,
.shop-auth-card button:focus-visible,
.shop-auth-native-form input:focus-visible {
  outline: 3px solid rgba(55, 127, 104, .32);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .shop-auth-screen *,
  .shop-auth-screen *::before,
  .shop-auth-screen *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* unisale-social-auth */
.social-login-panel {
  margin-top: 18px;
}
.social-login-divider {
  align-items: center;
  color: var(--muted, #66706a);
  display: flex;
  font-size: 12px;
  gap: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.social-login-divider::before,
.social-login-divider::after {
  background: currentColor;
  content: "";
  flex: 1;
  height: 1px;
  opacity: .24;
}
.social-login-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.social-login-button {
  border: 1px solid rgba(25, 34, 29, .18);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 12px;
}
.social-login-button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}
.social-google {
  background: #fff;
  color: #202124;
}
.social-facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.social-instagram {
  background: linear-gradient(115deg, #f9ce34, #ee2a7b 48%, #6228d7);
  border-color: transparent;
  color: #fff;
}
.social-telegram {
  background: #229ed9;
  border-color: #229ed9;
  color: #fff;
}
/* registered-customer-checkout-only */

/* customer/business split: customer channel chooser */
.shop-channel-page {
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 90% 0, #d9f5eb 0, transparent 38%), #f5f7f4;
}
.shop-channel-head {
  display: grid;
  grid-template-columns: 54px 1fr 42px;
  gap: 13px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 26px;
}
.shop-channel-brand {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #087d6f;
  color: white;
  font-size: 27px;
  font-weight: 900;
  box-shadow: 0 12px 28px #087d6f38;
}
.shop-channel-head small,.shop-channel-head p { color: #64736f; }
.shop-channel-head h1 { margin: 2px 0; font-size: clamp(25px, 7vw, 38px); }
.shop-channel-head p { margin: 0; }
.shop-channel-head > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #087d6f;
  box-shadow: 0 8px 24px #183c3420;
}
.shop-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  max-width: 760px;
  margin: 0 auto;
}
.shop-channel-grid > button {
  min-height: 124px;
  padding: 18px;
  border: 1px solid #dbe7e2;
  border-radius: 24px;
  background: white;
  color: #17221f;
  box-shadow: 0 9px 24px #183c3412;
  text-align: left;
}
.shop-channel-grid > button:active { transform: scale(.98); }
.shop-channel-grid > button span { display: block; color: #087d6f; font-size: 34px; }
.shop-channel-grid > button strong { display: block; margin-top: 11px; font-size: 18px; }
.shop-channel-empty { grid-column: 1 / -1; padding: 28px; border-radius: 20px; background: white; color: #64736f; }
.shop-map-channel {
  position: fixed;
  z-index: 530;
  top: max(72px, calc(env(safe-area-inset-top) + 58px));
  left: 14px;
  max-width: 42vw;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #087d6f;
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 24px #183c3440;
}
@media (min-width: 680px) {
  .shop-channel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#shopGuestName, #shopGuestPhone,
label:has(#shopGuestName), label:has(#shopGuestPhone) {
  display: none !important;
}
.shop-fulfillment-panel{display:grid;gap:12px;margin:14px 0;padding:14px;border:1px solid var(--line,#d5dfdf);border-radius:18px;background:rgba(255,255,255,.76)}
.shop-fulfillment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shop-fulfillment-option{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line,#d5dfdf);border-radius:14px;cursor:pointer}
.shop-fulfillment-option:has(input:checked){border-color:#078c7d;background:#e8f7f2}
.shop-fulfillment-option input{accent-color:#078c7d}
.shop-scheduled-at{display:grid;gap:6px}
.shop-scheduled-at input{width:100%;min-height:44px;border:1px solid var(--line,#d5dfdf);border-radius:12px;padding:8px 10px;background:#fff;font:inherit}
@media(max-width:520px){.shop-fulfillment-options{grid-template-columns:1fr}}
