.biz-dialog:has(.pos-picker-form) {
  width: min(760px, calc(100% - 48px));
  max-width: 760px;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #faf6ef;
  box-shadow: 0 24px 70px #27101345;
  color: #342b27;
  overflow: auto;
}
.biz-dialog:has(.pos-picker-form)::backdrop {
  background: #20131480;
}
.biz-dialog:has(.pos-picker-form) > header {
  padding: 22px 28px;
  margin: 0;
  background: #602a33;
  color: #fff1db;
  border-bottom: 1px solid #c29d68;
  gap: 20px;
}
.biz-dialog:has(.pos-picker-form) > header h2 {
  color: #fff1db !important;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .02em;
}
.biz-dialog:has(.pos-picker-form) > header .biz-icon-btn {
  width: 38px;
  height: 38px;
  color: #fff1db;
  background: #ffffff14;
  border: 1px solid #e6c79d55;
  border-radius: 8px;
}
.biz-dialog:has(.pos-picker-form) > .biz-message {
  margin: 14px 28px;
}
.biz-dialog .pos-picker-form {
  display: block;
  padding: 20px 28px 0;
  gap: 0;
}
.pos-picker-form > .biz-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  border-bottom: 1px solid #e3d8c8;
  padding-bottom: 14px;
}
.pos-picker-form > .biz-tabs button {
  height: 40px;
  min-width: 114px;
  font-size: 14px;
  border-radius: 7px;
  background: transparent;
  color: #6d6055;
}
.pos-picker-form > .biz-tabs button.active {
  background: #eee1d5;
  color: #762f3a;
  font-weight: 650;
}
.pos-picker-context {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  color: #746254;
  font-size: 12px;
  flex-wrap: wrap;
}
.pos-table {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #69333a;
  font-size: 15px;
}
.pos-picker svg {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}
.pos-picker-hint {
  margin-left: auto;
}
.pos-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #dbcbb8;
  border-radius: 8px;
  padding: 0 14px;
  color: #8a705c;
}
.biz-dialog .pos-search input {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #342b27;
  outline: none;
  font-size: 14px;
}
.pos-search:focus-within {
  border-color: #8c3a46;
  box-shadow: 0 0 0 2px #8c3a4612;
}
.pos-search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  color: #746254;
}
.pos-categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 14px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbb8a7 transparent;
}
.pos-categories button {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  padding: 9px 14px;
  font-size: 13px;
  border: 1px solid #e3d8c8;
  border-radius: 20px;
  background: #fffdf9;
  color: #6a594c;
  cursor: pointer;
}
.pos-categories button span {
  font-size: 11px;
  opacity: .8;
}
.pos-categories button.active {
  background: #792f3c;
  border-color: #792f3c;
  color: #fff3df;
}
.pos-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: min(420px, 43dvh);
  align-content: start;
  min-height: 180px;
  overflow: auto;
  padding: 1px 5px 2px 1px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bba898 #f4ece2;
}
.pos-dish {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 136px;
  border: 1px solid #e4d9cc;
  border-radius: 10px;
  overflow: hidden;
  background: #fffdfa;
}
.pos-dish.is-selected {
  border-color: #b16d75;
  background: #fffaf4;
}
.pos-dish-info {
  padding: 14px;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.biz-dialog .pos-dish h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
  color: #352a26;
}
.pos-dish-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.pos-price {
  font-size: 18px;
  font-weight: 650;
  color: #8c3340;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pos-price small {
  font-size: 11px;
  font-weight: 400;
  color: #7c6c5e;
}
.pos-add {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #853643;
  color: #fff7e7;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
}
.pos-add:hover {
  background: #632732;
}
.pos-add:disabled {
  opacity: .5;
  cursor: wait;
}
.pos-dish-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 9px;
  border-top: 1px solid #eee3d7;
  padding-top: 8px;
}
.pos-dish-status small {
  font-size: 11px;
  color: #765c4e;
}
.pos-remove {
  padding: 3px 0;
  border: 0;
  background: none;
  color: #8c3340;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pos-remove:disabled {
  opacity: .5;
  cursor: wait;
}
.pos-picker-feedback {
  min-height: 20px;
  line-height: 20px;
  font-size: 12px;
  color: #7d5947;
  margin: 10px 0 !important;
}
.pos-picker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #dfcdb4;
  background: #f6ecdf;
  margin: 0 -28px;
  padding: 18px 28px;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.pos-picker-footer > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6f5947;
}
.pos-picker-footer strong {
  color: #803441;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.pos-picker-footer small {
  font-size: 11px;
}
.pos-picker-footer .biz-btn {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  font-size: 14px;
  flex: none;
  border-radius: 8px;
}
.pos-empty {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 10px;
  color: #78604b;
  gap: 10px;
}
.pos-empty strong {
  font-size: 15px;
}
.pos-empty p {
  font-size: 12px;
  margin: 0;
}
.pos-empty button {
  border: 0;
  color: #8c3340;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}
.pos-picker-form:has(> label) {
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.biz-dialog:has(.pos-picker-form) :is(button, input, select):focus-visible {
  outline: 2px solid #a6535b;
  outline-offset: 3px;
}
.biz-dialog .pos-search input:focus-visible {
  outline: none;
}
@media (max-width:700px) {
  .biz-dialog:has(.pos-picker-form) {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .biz-dialog:has(.pos-picker-form) > header {
    padding: 16px;
  }
  .biz-dialog:has(.pos-picker-form) > header h2 {
    font-size: 19px;
  }
  .biz-dialog .pos-picker-form {
    padding: 15px 16px 0;
  }
  .pos-picker-form > .biz-tabs {
    margin-bottom: 13px;
    padding-bottom: 10px;
  }
  .pos-picker-context {
    gap: 6px 14px;
    margin-bottom: 12px;
  }
  .pos-picker-hint {
    margin-left: 0;
    width: 100%;
    font-size: 11px;
  }
  .pos-menu-grid {
    grid-template-columns: 1fr;
    height: 32dvh;
    gap: 10px;
  }
  .pos-dish-info {
    padding: 12px;
  }
  .pos-dish {
    min-height: 126px;
  }
  .pos-dish h3 {
    font-size: 14px;
  }
  .pos-picker-footer {
    margin: 0 -16px;
    padding: 14px 16px;
    gap: 10px;
  }
  .pos-picker-footer > div {
    gap: 2px 6px;
  }
  .pos-picker-footer > div > span {
    width: 100%;
    font-size: 12px;
  }
  .pos-picker-footer strong {
    font-size: 22px;
  }
  .pos-picker-footer small {
    display: none;
  }
  .pos-picker-footer .biz-btn {
    font-size: 12px;
    padding: 0 14px;
    gap: 8px;
  }
  .pos-categories {
    padding: 10px 0 12px;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }
  .pos-categories button {
    padding: 8px 12px;
  }
  .pos-picker-feedback {
    font-size: 11px;
    margin: 8px 0;
  }
  .pos-picker-form:has(> label) {
    padding-bottom: 20px;
  }
}
.pos-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: min(400px, 43dvh);
}
.pos-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px 5px;
  color: #6b3c3d;
  flex: none;
}
.pos-category-heading strong {
  font-size: 14px;
  font-weight: 650;
}
.pos-category-heading span {
  font-size: 11px;
  color: #816957;
}
.pos-dish {
  min-height: 62px;
  flex: none;
  border-radius: 8px;
}
.pos-dish-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 14px;
}
.pos-dish-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-width: 0;
}
.biz-dialog .pos-dish h3 {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.pos-row-count {
  color: #8c3340;
  background: #f3e5df;
  font-size: 11px;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
.pos-dish-action {
  gap: 20px;
  margin: 0;
}
.pos-price {
  font-size: 16px;
}
.pos-price small {
  display: none;
}
.pos-add {
  width: 32px;
  height: 32px;
}
.pos-add svg {
  width: 18px;
  height: 18px;
}
.pos-dish-status {
  grid-column: 1/-1;
  margin-top: 0;
  padding-top: 7px;
  justify-content: space-between;
}
.pos-empty {
  min-height: 180px;
  flex: 1;
}
@media (max-width:700px) {
  .pos-menu-grid {
    height: 32dvh;
    gap: 7px;
  }
  .pos-dish {
    min-height: 58px;
  }
  .pos-dish-info {
    padding: 10px 12px;
    gap: 6px 9px;
  }
  .pos-dish-action {
    gap: 12px;
  }
  .pos-price {
    font-size: 14px;
  }
  .pos-category-heading {
    padding: 8px 2px 4px;
  }
}
