.delivery-list-panel {
  min-height: 0;
}

.delivery-list-panel .table-wrap {
  min-height: 320px;
  width: 100%;
}

.delivery-period-control {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  margin-left: 6px;
}

.delivery-period-control span {
  color: var(--muted);
  font-size: 12px;
}

.delivery-period-control select,
.delivery-custom-period input,
.delivery-field input,
.delivery-compact-form input,
.delivery-compact-form textarea,
.delivery-inline-search input,
.delivery-order-meta input,
.delivery-order-meta textarea,
.delivery-order-line input,
.delivery-order-line select,
.delivery-detail-editor input,
.delivery-detail-editor textarea,
.delivery-detail-editor select {
  background: #fff;
  border: 1px solid #b9c2c8;
  border-radius: 3px;
  color: #20242a;
  font: inherit;
  min-height: 34px;
  padding: 6px 9px;
}

.delivery-custom-period,
.delivery-show-deleted-header {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.delivery-custom-period span { color: var(--muted); font-size: 11px; }
.delivery-custom-period input { min-height: 34px; width: 138px; }
.delivery-show-deleted-header { margin-right: 10px; white-space: nowrap; }

.delivery-status-tabs {
  background: #e8ecef;
  border-bottom: 1px solid #c5cdd2;
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  min-height: 54px;
  overflow-x: auto;
}

.delivery-status-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid #cbd2d6;
  color: #3d464c;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  justify-content: center;
  min-width: 92px;
  padding: 9px 8px;
}

.delivery-status-tabs button strong {
  background: rgb(255 255 255 / 70%);
  border-radius: 12px;
  min-width: 24px;
  padding: 2px 7px;
}

.delivery-status-tabs button.active {
  background: #34444c;
  color: #fff;
}

.delivery-status-tabs button.active strong {
  background: rgb(255 255 255 / 18%);
}

.delivery-table {
  border-collapse: collapse;
  table-layout: fixed;
}

.delivery-table th,
.delivery-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-table th {
  position: relative;
}

.delivery-table tbody tr[data-delivery-order-row] {
  border-bottom: 2px solid #fff;
  cursor: pointer;
  transition: filter 100ms ease;
}

.delivery-table tbody tr[data-delivery-order-row]:hover,
.delivery-table tbody tr[data-delivery-order-row].selected {
  filter: brightness(.95);
  outline: 2px solid #1976a5;
  outline-offset: -2px;
}

.delivery-table td small {
  color: #5a646a;
  display: block;
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-row-new { background: #fff4c6; }
.delivery-row-preparing { background: #f5e7d7; }
.delivery-row-ready { background: #dff1cf; }
.delivery-row-en-route { background: #d8eaf5; }
.delivery-row-completed { background: #edf0f1; color: #5b6469; }
.delivery-row-cancelled { background: #f1e2e2; color: #7c5555; }
.delivery-row-attention { background: #ffd8a8; }
.delivery-row-blocked { background: #f5b9b9; }
.delivery-row-deleted { background: #ececec; color: #7a7f82; opacity: .72; }

.delivery-status-cell {
  font-weight: 700;
}

.delivery-issue-dot {
  background: #d9880b;
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  margin-left: 7px;
  vertical-align: middle;
  width: 12px;
}

.delivery-issue-dot.blocked { background: #c63737; }

.delivery-loading::before {
  animation: delivery-spin .8s linear infinite;
  border: 2px solid #c8d2d8;
  border-top-color: #1976a5;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  width: 14px;
}

@keyframes delivery-spin { to { transform: rotate(360deg); } }

.delivery-wizard-layer,
.delivery-order-drawer-layer {
  background: rgb(15 24 29 / 52%);
  inset: 0;
  position: fixed;
  z-index: 4600;
}

.delivery-wizard-layer {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 28px;
}

.delivery-wizard-layer.delivery-wizard-layer-fullscreen {
  padding: 0;
}

.delivery-wizard {
  background: #f5f7f8;
  border-radius: 5px;
  box-shadow: 0 18px 60px rgb(0 0 0 / 34%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(760px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  min-height: 520px;
  overflow: hidden;
  position: relative;
  width: min(1240px, calc(100vw - 56px));
}

.delivery-wizard.delivery-wizard-fullscreen {
  border-radius: 0;
  height: 100vh;
  max-height: none;
  width: 100vw;
}

.delivery-wizard-header,
.delivery-order-drawer > header {
  align-items: center;
  background: #34444c;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
}

.delivery-wizard-header h2,
.delivery-order-drawer h2 {
  font-size: 22px;
  margin: 2px 0 0;
}

.delivery-wizard-step,
.delivery-order-drawer > header span {
  color: #cbd7dd;
  font-size: 12px;
}

.delivery-wizard-header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.delivery-wizard-header-actions .drawer-fullscreen-toggle {
  height: 40px;
  left: auto;
  position: relative;
  top: auto;
  width: 40px;
}

.delivery-wizard-header-actions .drawer-fullscreen-toggle::before,
.delivery-wizard-header-actions .drawer-fullscreen-toggle::after { border-color: #fff; }

.delivery-wizard-resize-handle {
  background: linear-gradient(135deg, transparent 48%, #718089 49%, #718089 56%, transparent 57%);
  border-radius: 2px;
  bottom: 4px;
  cursor: nwse-resize;
  height: 28px;
  position: absolute;
  right: 4px;
  touch-action: none;
  width: 28px;
  z-index: 8;
}

.delivery-wizard-resize-handle::before,
.delivery-wizard-resize-handle::after { display: none; }

.delivery-icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.delivery-wizard-body {
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.delivery-wizard-order-body {
  overflow: hidden;
}

.delivery-wizard-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid #ccd4d8;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  padding: 12px 18px;
}

.delivery-wizard-footer > span { color: var(--muted); text-align: center; }

.delivery-mode-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 50px auto;
  max-width: 920px;
}

.delivery-mode-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0;
  max-width: 650px;
}

.delivery-mode-card,
.delivery-choice-card,
.delivery-address-card {
  background: #fff;
  border: 2px solid #d0d8dc;
  border-radius: 5px;
  color: #20242a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 8px;
  min-height: 110px;
  padding: 20px;
  text-align: left;
}

.delivery-mode-card strong { font-size: 21px; }
.delivery-mode-card span,
.delivery-choice-card span,
.delivery-address-card span,
.delivery-address-card small { color: #657178; }

.delivery-mode-card:hover,
.delivery-mode-card.selected,
.delivery-choice-card.selected,
.delivery-address-card.selected {
  background: #eef8fc;
  border-color: #1976a5;
}

.delivery-step-stack {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 920px;
}

.delivery-inline-search {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.delivery-inline-search input { min-height: 40px; }

.delivery-client-assistant {
  background: #fff;
  border: 1px solid #b9c5cb;
  box-shadow: 0 8px 24px rgb(25 39 46 / 14%);
  display: grid;
  max-height: 280px;
  min-height: 64px;
  overflow: auto;
}

.delivery-client-suggestion {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e1e6e9;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 3px 14px;
  grid-template-columns: minmax(180px, 1fr) auto;
  padding: 11px 13px;
  text-align: left;
}

.delivery-client-suggestion:hover,
.delivery-client-suggestion:focus-visible,
.delivery-client-suggestion.selected { background: #eaf5fa; outline: none; }
.delivery-client-suggestion span,
.delivery-client-suggestion small { color: #657178; }
.delivery-client-suggestion small { grid-column: 1 / -1; }
.delivery-client-assistant-status { color: var(--muted); margin: 0; padding: 20px; text-align: center; }
.delivery-client-assistant-status.is-error { color: #a22d2d; }

.delivery-choice-list,
.delivery-address-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-choice-card { min-height: 84px; padding: 14px; }

.delivery-address-card {
  background: #fff;
  border: 1px solid #b9c4c9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 0;
}

.delivery-address-card.selected { background: #f1f4ab; border-color: #99a631; }
.delivery-address-choice {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 5px;
  grid-row: 1 / 3;
  padding: 14px 14px 6px;
  text-align: left;
}
.delivery-address-map-view {
  align-self: center;
  background: transparent;
  border: 0;
  color: #1677a8;
  cursor: pointer;
  grid-column: 2;
  grid-row: 1;
  height: 44px;
  justify-self: center;
  padding: 8px;
  width: 44px;
}
.delivery-address-map-view svg { height: 27px; width: 27px; }
.delivery-address-choice small { color: #657178; }
.delivery-address-edit {
  background: transparent;
  border: 0;
  color: #1677a8;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin: 0 12px 10px;
  padding: 3px 0;
  text-decoration: underline;
}
.delivery-address-form-actions { align-items: center; display: grid; gap: 10px; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto auto; }
.delivery-compact-form .delivery-address-form-actions > button { grid-column: auto; }
.delivery-address-map-open { align-items: center; display: inline-flex; height: 42px; justify-content: center; padding: 7px; width: 48px; }
.delivery-address-map-open svg { height: 25px; width: 25px; }

.delivery-address-assistant {
  background: #fff;
  border: 1px solid #b9c5cb;
  box-shadow: 0 8px 24px rgb(25 39 46 / 14%);
  display: grid;
  max-height: 220px;
  overflow: auto;
}

.delivery-address-assistant[hidden] { display: none; }
.delivery-address-assistant-status { color: var(--muted); margin: 0; padding: 14px; text-align: center; }
.delivery-address-assistant-status.is-busy::before {
  animation: delivery-spin .8s linear infinite;
  border: 2px solid #c8d2d8;
  border-radius: 50%;
  border-top-color: #1976a5;
  content: "";
  display: inline-block;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  width: 14px;
}

.delivery-address-suggestion { background: #fff; border: 0; border-bottom: 1px solid #e1e6e9; color: inherit; cursor: pointer; font: inherit; padding: 12px 14px; text-align: left; }
.delivery-address-suggestion:hover,
.delivery-address-suggestion:focus-visible { background: #eaf5fa; outline: none; }

.delivery-address-map-layer {
  align-items: center;
  background: rgb(15 24 29 / 62%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 12600;
}

.delivery-address-map-dialog {
  background: #f5f7f8;
  box-shadow: 0 18px 60px rgb(0 0 0 / 38%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(720px, calc(100vh - 56px));
  max-width: 980px;
  overflow: hidden;
  width: min(980px, calc(100vw - 56px));
}

.delivery-address-map-dialog > header { align-items: center; background: #34444c; color: #fff; display: flex; justify-content: space-between; padding: 14px 18px; }
.delivery-address-map-dialog > header h2 { font-size: 21px; margin: 0; }
.delivery-address-map-dialog > header button { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 31px; height: 40px; line-height: 1; width: 40px; }
.delivery-address-map-dialog > main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.delivery-address-map-viewport { min-height: 360px; position: relative; }
.delivery-address-map-canvas { height: 100%; min-height: 360px; width: 100%; }
.delivery-address-map-loading { align-items: center; background: rgb(255 255 255 / 68%); display: flex; inset: 0; justify-content: center; position: absolute; z-index: 3; }
.delivery-address-map-loading span { animation: delivery-spin .8s linear infinite; border: 5px solid #d5dde1; border-radius: 50%; border-top-color: #1976a5; height: 48px; width: 48px; }
.delivery-address-map-zoom { align-items: center; background: #34444c; border: 0; color: #fff; cursor: pointer; display: flex; font-size: 28px; height: 48px; justify-content: center; position: absolute; right: 16px; width: 48px; z-index: 4; }
.delivery-address-map-zoom.is-in { top: 16px; }
.delivery-address-map-zoom.is-out { bottom: 16px; }
.delivery-address-map-result { background: #fff; border-top: 1px solid #cad3d7; display: grid; gap: 4px; min-height: 74px; padding: 11px 18px; }
.delivery-address-map-result .is-error { color: #a22d2d; }
.delivery-address-map-result small { color: var(--muted); }
.delivery-address-map-dialog > footer { align-items: center; background: #fff; border-top: 1px solid #ccd4d8; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px; }

.delivery-step-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.delivery-step-actions.end { justify-content: flex-end; }

.delivery-compact-form {
  background: #fff;
  border: 1px solid #cbd3d7;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.delivery-compact-form h3,
.delivery-compact-form button,
.delivery-compact-form .wide { grid-column: 1 / -1; }

.delivery-compact-form label,
.delivery-field,
.delivery-order-meta label,
.delivery-detail-editor label {
  display: grid;
  font-size: 12px;
  gap: 5px;
}

.delivery-selected-client,
.delivery-order-context {
  align-items: center;
  background: #e5ecef;
  display: flex;
  gap: 12px;
  padding: 10px 12px;
}

.delivery-empty-note { color: var(--muted); padding: 18px; text-align: center; }

.delivery-order-editor {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(380px, .9fr) minmax(520px, 1.2fr);
  height: 100%;
  min-height: 430px;
}

.delivery-product-picker,
.delivery-order-lines {
  background: #fff;
  border: 1px solid #ccd4d8;
  min-height: 0;
  padding: 14px;
}

.delivery-product-picker {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.delivery-order-lines {
  overflow: auto;
}

.delivery-product-results,
.delivery-line-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  overflow: auto;
}

.delivery-line-list { max-height: 330px; }

.delivery-product-picker-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.delivery-product-layout-switch .button { min-width: 66px; }

.delivery-product-search-field { display: block; min-width: 0; position: relative; }
.delivery-product-search-field input { padding-right: 34px; width: 100%; }
.delivery-product-search-field button {
  background: transparent;
  border: 0;
  color: #6e7a80;
  cursor: pointer;
  font-size: 21px;
  height: 30px;
  line-height: 28px;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 30px;
}
.delivery-product-search-field button:hover,
.delivery-product-search-field button:focus-visible { color: #b63232; outline: 1px solid #8a9aa2; }

.delivery-product-results.is-list { display: block; }

.delivery-product-list-table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.delivery-product-list-table th,
.delivery-product-list-table td {
  border-bottom: 1px solid #d9dee3;
  overflow: hidden;
  padding: 5px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-product-list-table th {
  background: #fff;
  color: #6a7379;
  font-weight: 400;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 2;
}

.delivery-product-list-table .delivery-product-sku-col { width: 92px; }
.delivery-product-list-table .delivery-product-price-col { width: 118px; }

.delivery-product-list-category td {
  background: #e7e9ea;
  color: #62696e;
  font-size: 13px;
  padding: 7px 8px;
}

.delivery-product-list-category small {
  float: right;
  font-size: 11px;
  font-weight: 400;
}

.delivery-product-group-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.delivery-product-group-toggle small { margin-left: auto; }
.delivery-product-list-caret {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  height: 7px;
  margin: -3px 10px 0 2px;
  transform: rotate(45deg);
  transition: transform 120ms ease;
  width: 7px;
}
.delivery-product-group-toggle.collapsed .delivery-product-list-caret { margin-top: 1px; transform: rotate(-45deg); }

.delivery-product-list-row {
  background: #fff;
  cursor: pointer;
}

.delivery-product-list-row:nth-child(odd) { background: #fafafa; }
.delivery-product-list-row:hover,
.delivery-product-list-row:focus-visible { background: #eaf5fa; outline: 2px solid #0789da; outline-offset: -2px; }
.delivery-product-list-row td:first-child { position: relative; padding-left: 22px; }
.delivery-product-list-row td:first-child strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.delivery-product-list-row td:first-child small { color: #7a8388; display: block; font-size: 10px; }

.delivery-product-sale-dot {
  background: #1eaa68;
  border-radius: 50%;
  height: 7px;
  left: 8px;
  position: absolute;
  top: 10px;
  width: 7px;
}

.delivery-product-results.is-tiles {
  align-content: start;
  display: block;
}

.delivery-product-category-tiles {
  background: #34444c;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  padding: 5px;
}

.delivery-product-category-tile {
  align-items: center;
  background: #f5f7f8;
  border: 0;
  color: #29343a;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 7px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 8px;
  text-align: left;
}

.delivery-product-category-tile.active { background: #dfe977; }
.delivery-product-category-tile:hover,
.delivery-product-category-tile:focus-visible { box-shadow: inset 0 0 0 3px #83a3b3; outline: none; }
.delivery-product-category-tile strong { font-size: 12px; overflow-wrap: anywhere; }
.delivery-product-category-tile small { color: #647178; font-size: 11px; }
.delivery-product-category-icon { color: #5f747f; height: 32px; width: 32px; }
.delivery-product-category-icon svg { height: 100%; width: 100%; }
.delivery-product-expanded-groups { margin-top: 6px; }

.delivery-product-tile-group {
  margin-bottom: 8px;
}

.delivery-product-tile-group > h4 {
  background: #e7e9ea;
  color: #62696e;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  padding: 7px 9px;
}

.delivery-product-tile-group > div {
  background: #34444c;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  padding: 5px;
}

.delivery-product-tile {
  background: #fff;
  border: 0;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  grid-template-columns: 64px minmax(0, 1fr);
  height: 86px;
  overflow: hidden;
  padding: 7px;
  text-align: left;
}

.delivery-product-tile:hover,
.delivery-product-tile:focus-visible { box-shadow: inset 0 0 0 3px #d8e86f; outline: none; }

.delivery-product-tile-media {
  align-items: center;
  background: #e8edf0;
  color: #7c8b94;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.delivery-product-tile-media img,
.delivery-product-tile-placeholder { height: 100%; width: 100%; }
.delivery-product-tile-media img { object-fit: cover; position: relative; z-index: 1; }
.delivery-product-tile-placeholder { align-items: center; display: flex; justify-content: center; position: absolute; }
.delivery-product-tile-placeholder svg { height: 34px; width: 34px; }
.delivery-product-tile.has-image .delivery-product-tile-placeholder { visibility: hidden; }

.delivery-product-tile-copy {
  display: grid;
  gap: 3px;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  min-width: 0;
}

.delivery-product-tile-copy strong {
  display: -webkit-box;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.delivery-product-tile-copy small { color: #7a858b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-product-tile-copy b { color: #577080; font-size: 12px; font-weight: 400; }

.delivery-order-line {
  align-items: end;
  border-bottom: 1px solid #e0e4e6;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(110px, 1fr) auto 72px 34px;
  min-width: 520px;
  padding: 20px 0 9px;
}

.delivery-order-line-name-wrap { align-items: flex-end; display: flex; gap: 5px; min-height: 34px; min-width: 0; padding-bottom: 7px; }
.delivery-order-line-name { font-size: 13px; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-order-line-controls {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: max-content;
}
.delivery-line-modifier-icon {
  align-items: center;
  background: #edf2f4;
  border: 1px solid #b9c8cf;
  border-radius: 3px;
  color: #526872;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  padding: 4px;
  position: relative;
  width: 34px;
}
.delivery-line-modifier-icon:hover,
.delivery-line-modifier-icon:focus-visible { border-color: #1677a8; color: #1677a8; outline: none; }
.delivery-line-modifier-icon.has-selection { background: #e7f3d0; border-color: #8cae4a; }
.delivery-line-modifier-icon svg { height: 18px; width: 18px; }
.delivery-line-modifier-icon small { background: #34444c; border-radius: 8px; color: #fff; font-size: 9px; line-height: 15px; min-width: 15px; padding: 0 3px; position: absolute; right: -6px; text-align: center; top: -6px; }
.delivery-order-line-option { align-items: flex-end; display: flex; flex: 0 1 92px; height: 34px; min-width: 0; }
.delivery-order-line-option > span { color: #9aa3a8; font-size: 11px; }
.delivery-line-option-link {
  align-items: center;
  background: #e7f3d0;
  border: 1px solid #8cae4a;
  border-radius: 3px;
  color: #1677a8;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.delivery-line-option-link:hover,
.delivery-line-option-link:focus-visible { background: #dcebbb; border-color: #789b37; color: #0a5278; outline: none; }
.delivery-line-quantity-field { display: block; flex: 0 0 82px; font-size: 11px; position: relative; }
.delivery-line-quantity-field > span:first-child { bottom: calc(100% + 2px); left: 0; position: absolute; }
.delivery-line-quantity-control {
  border: 1px solid #b9c2c8;
  border-radius: 3px;
  display: grid;
  grid-template-columns: 24px minmax(32px, 1fr) 24px;
  min-height: 34px;
  overflow: hidden;
}
.delivery-line-quantity-control button {
  background: #fff;
  border: 0;
  color: #303b41;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.delivery-line-quantity-control button:first-child { border-right: 1px solid #d5dbde; }
.delivery-line-quantity-control button:last-child { border-left: 1px solid #d5dbde; }
.delivery-line-quantity-control .delivery-line-quantity-value { color: #1677a8; font-size: 12px; font-weight: 600; }
.delivery-line-quantity-control button:hover,
.delivery-line-quantity-control button:focus-visible { background: #eaf5fa; outline: none; }
.delivery-order-line-price { align-items: center; display: flex; font-size: 11px; font-weight: 600; justify-content: flex-end; min-height: 34px; text-align: right; white-space: nowrap; }
.delivery-order-line .delivery-icon-button { align-self: end; color: #b83434; height: 34px; width: 34px; }

.delivery-line-configurator-backdrop { position: absolute; z-index: 40; }
.delivery-line-configurator {
  left: 50%;
  max-height: calc(100% - 48px);
  max-width: 760px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  z-index: 41;
}
.delivery-line-configurator .confirm-header > div { display: grid; gap: 3px; }
.delivery-line-configurator .confirm-header span { color: #cbd7dd; font-size: 11px; }
.delivery-line-configurator .confirm-header h3 { margin: 0; }
.delivery-line-configurator-body { display: grid; gap: 16px; max-height: min(560px, calc(100vh - 210px)); overflow: auto; }
.delivery-line-configurator-group { display: grid; gap: 8px; }
.delivery-line-configurator-group h4 { align-items: baseline; display: flex; gap: 10px; margin: 0; }
.delivery-line-configurator-group h4 small { color: #6c777d; font-size: 11px; font-weight: 400; }
.delivery-line-optional-modifiers { border-top: 1px solid #d9e0e4; display: grid; gap: 8px; padding-top: 14px; }
.delivery-line-optional-modifiers > h4 { color: #57656d; font-size: 13px; margin: 0; text-transform: uppercase; }
.delivery-line-modifier-group-toggle {
  align-items: center;
  background: #eef2f4;
  border: 0;
  color: #39474e;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}
.delivery-line-modifier-group-toggle small { color: #6c777d; font-size: 11px; font-weight: 400; margin-left: auto; }
.delivery-line-configurator-group.collapsed .delivery-line-modifier-group-toggle .delivery-product-list-caret { margin-top: 1px; transform: rotate(-45deg); }
.delivery-line-option-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.delivery-line-choice {
  background: #fff;
  border: 2px solid #cbd4d9;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 5px;
  min-height: 62px;
  padding: 10px;
  text-align: left;
}
.delivery-line-choice span { color: #647178; font-size: 11px; }
.delivery-line-choice:hover,
.delivery-line-choice.selected { background: #eef8fc; border-color: #1976a5; }
.delivery-line-modifier-choice {
  background: #fff;
  border: 2px solid #cbd4d9;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 70px;
}
.delivery-line-modifier-choice.has-stepper { grid-template-columns: minmax(0, 1fr) 30px 38px; }
.delivery-line-modifier-choice:hover,
.delivery-line-modifier-choice.selected { background: #eef8fc; border-color: #1976a5; }
.delivery-line-modifier-choice-main {
  background: transparent;
  border: 0;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  text-align: left;
}
.delivery-line-modifier-choice-main span,
.delivery-line-modifier-choice-main small { color: #647178; font-size: 11px; }
.delivery-line-modifier-choice-main:focus-visible { outline: 2px solid #1976a5; outline-offset: -2px; }
.delivery-line-modifier-count {
  align-self: center;
  align-items: center;
  background: #1976a5;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  justify-self: center;
  line-height: 1;
  padding: 0;
  width: 24px;
}
.delivery-line-modifier-stepper {
  border-left: 1px solid #cbd4d9;
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.delivery-line-modifier-stepper button {
  background: #f5f8f9;
  border: 0;
  color: #26343b;
  cursor: pointer;
  font: 600 20px/1 Arial, sans-serif;
  min-height: 34px;
  padding: 0;
}
.delivery-line-modifier-stepper button + button { border-top: 1px solid #cbd4d9; }
.delivery-line-modifier-stepper button:hover:not(:disabled),
.delivery-line-modifier-stepper button:focus-visible { background: #dff0f8; color: #0b648e; outline: none; }
.delivery-line-modifier-stepper button:disabled { color: #aeb8bd; cursor: default; }

.delivery-line-split-backdrop { position: absolute; z-index: 46; }
.delivery-line-split-dialog {
  background: #303d3d;
  color: #fff;
  display: grid;
  gap: 10px;
  left: 50%;
  max-width: min(94%, 620px);
  padding-top: 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  z-index: 47;
}
.delivery-line-split-dialog > header { font-size: 18px; text-align: center; }
.delivery-line-split-dialog > p { color: #e6ee59; font-size: 19px; margin: 12px 0 0; text-align: center; }
.delivery-line-split-formula { background: #555956; font-size: 34px; min-height: 66px; padding: 12px; text-align: center; }
.delivery-line-split-body { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 224px; padding: 0 10px; }
.delivery-line-split-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.delivery-line-split-keypad button,
.delivery-line-split-keypad span { background: #fff; border: 1px solid #717b7c; color: #1f252d; font-size: 44px; min-height: 70px; }
.delivery-line-split-keypad button.active { background: #e6ee59; }
.delivery-line-split-modes { align-content: start; display: grid; gap: 8px; }
.delivery-line-split-modes button { background: #fff; border: 0; color: #485053; min-height: 70px; padding: 8px; }
.delivery-line-split-modes button.active { background: #e6ee59; }
.delivery-line-split-dialog > footer { background: #1f2021; display: flex; gap: 50px; justify-content: center; margin-top: 8px; padding: 13px; }
.delivery-line-split-dialog > footer button { background: transparent; border: 0; color: #fff; cursor: pointer; font: inherit; min-height: 42px; min-width: 100px; }
.delivery-line-split-dialog > footer button:first-child { color: #e6ee59; }

.delivery-order-total {
  align-items: center;
  border-top: 2px solid #34444c;
  display: flex;
  font-size: 19px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 4px;
}

.delivery-order-meta {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.delivery-order-meta > *,
.delivery-requested-for-fields > label { min-width: 0; }
.delivery-order-meta input,
.delivery-order-meta select,
.delivery-order-meta textarea { box-sizing: border-box; max-width: 100%; width: 100%; }
.delivery-order-comment { display: grid; font-size: 12px; gap: 5px; margin-top: 12px; width: 100%; }
.delivery-order-comment textarea { box-sizing: border-box; min-height: 74px; width: 100%; }

.delivery-order-drawer-layer {
  display: flex;
  justify-content: flex-end;
}

.delivery-order-drawer {
  background: #f5f7f8;
  box-shadow: -12px 0 36px rgb(0 0 0 / 28%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  max-width: 100vw;
  width: min(720px, 78vw);
}

.delivery-order-drawer.delivery-order-fullscreen { width: 100vw; }

.delivery-order-drawer-header-actions { align-items: center; display: flex; gap: 8px; }
.delivery-order-drawer-header-actions .drawer-fullscreen-toggle {
  height: 40px;
  left: auto;
  position: relative;
  top: auto;
  width: 40px;
}
.delivery-wizard-header-actions .drawer-close,
.delivery-order-drawer > header .drawer-close {
  height: 40px;
  position: relative;
  right: auto;
  top: auto;
  width: 40px;
}
.delivery-wizard-header-actions .drawer-close::before,
.delivery-wizard-header-actions .drawer-close::after,
.delivery-order-drawer > header .drawer-close::before,
.delivery-order-drawer > header .drawer-close::after {
  background: #fff;
  left: 5px;
  top: 19px;
  width: 30px;
}
.delivery-order-drawer-header-actions .drawer-fullscreen-toggle::before,
.delivery-order-drawer-header-actions .drawer-fullscreen-toggle::after { border-color: #fff; }
.delivery-order-drawer-header-actions .button {
  background: transparent;
  border-color: #adbec7;
  color: #fff;
  min-height: 40px;
}
.delivery-order-drawer-header-actions .button:hover { background: rgb(255 255 255 / 12%); }

.delivery-order-drawer-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.delivery-order-drawer-loading { padding: 30px; }

.delivery-detail-summary {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delivery-detail-summary > div {
  background: #fff;
  display: grid;
  gap: 4px;
  padding: 11px;
}

.delivery-detail-editable { cursor: pointer; outline: 1px solid transparent; transition: outline-color 100ms ease, background 100ms ease; }
.delivery-detail-editable:hover,
.delivery-detail-editable:focus-visible { background: #eef8fc; outline: 2px solid #1976a5; outline-offset: -2px; }
.delivery-detail-section.delivery-detail-editable h3 { align-items: center; display: flex; justify-content: space-between; }
.delivery-detail-section.delivery-detail-editable h3 span { color: #1677a8; font-size: 11px; font-weight: 400; text-decoration: underline; }

.delivery-detail-summary span { color: #68747a; font-size: 11px; }

.delivery-detail-section,
.delivery-detail-editor {
  background: #fff;
  border: 1px solid #d2d9dd;
  padding: 14px;
}

.delivery-detail-section h3,
.delivery-detail-editor h3 { font-size: 15px; margin: 0 0 12px; }

.delivery-detail-party { display: flex; gap: 10px; justify-content: space-between; margin: 7px 0; }
.delivery-detail-section address { display: grid; font-style: normal; gap: 5px; margin-top: 10px; }
.delivery-detail-section address small { color: #657178; }

.delivery-detail-alert {
  border-left: 5px solid #d8890c;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.delivery-detail-alert.attention { background: #fff0d9; }
.delivery-detail-alert.blocked { background: #f9dada; border-color: #c63737; }

.delivery-detail-lines article {
  align-items: center;
  border-bottom: 1px solid #e3e7e9;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 9px 0;
}

.delivery-detail-lines article > div { display: grid; gap: 3px; }
.delivery-detail-lines article span { color: #5c686f; }
.delivery-detail-lines article small { grid-column: 1 / -1; }

.delivery-event-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.delivery-event-list li { border-left: 2px solid #9eb8c5; display: grid; gap: 12px; grid-template-columns: 110px minmax(0, 1fr); padding: 0 0 16px 13px; }
.delivery-event-list time { color: #66747b; font-size: 12px; }
.delivery-event-list li > div { display: grid; gap: 3px; }
.delivery-event-list li span { color: #66747b; font-size: 12px; }

.delivery-detail-editor { display: grid; gap: 11px; }
.delivery-detail-editor-grid { display: grid; gap: 10px; grid-template-columns: 180px minmax(0, 1fr); }
.delivery-detail-editor-grid .wide { grid-column: 1 / -1; }
.delivery-detail-editor .button { justify-self: end; }
.delivery-cancel-editor { border-color: #e4c0c0; }
.delivery-cancel-editor .button.is-confirmation-armed {
  background: #8e1f1f;
  box-shadow: 0 0 0 3px rgb(142 31 31 / 18%);
}

.delivery-cancel-restore { border-color: #b8d5c1; }
.delivery-row-delivered { background: #dcebd8; }

.delivery-requested-for-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
}

.delivery-requested-for-fields > small {
  color: #66747a;
  grid-column: 1 / -1;
  line-height: 1.35;
}

.delivery-settings-note {
  background: #eef4f6;
  border: 1px solid #cbd8dd;
  border-radius: 6px;
  color: #405159;
  padding: 12px 14px;
}

.delivery-payment-timing-block .settings-block-body { display: grid; gap: 10px; }
.delivery-payment-timing-block .settings-block-body > p { margin: 0 0 4px; }
.delivery-fulfillment-types-block .settings-block-body { display: grid; gap: 10px; }
.delivery-fulfillment-types-block .settings-block-body > p { margin: 0; }
.delivery-fulfillment-type-options { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.delivery-payment-timing-block .check-row { align-items: center; display: flex; gap: 9px; }

.delivery-price-mapping-block .settings-block-body { display: grid; gap: 10px; }
.delivery-price-mapping-block .settings-block-body > p { margin: 0 0 4px; }
.delivery-price-mapping-table { display: grid; gap: 8px; }

.delivery-price-mapping-row {
  align-items: center;
  border-bottom: 1px solid #e3e8ea;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 360px);
  padding: 9px 0;
}

.delivery-price-mapping-row:last-child { border-bottom: 0; }
.delivery-price-mapping-row > span { display: grid; gap: 3px; }
.delivery-price-mapping-row small { color: #66747a; line-height: 1.3; }
.delivery-price-mapping-row select { min-height: 38px; width: 100%; }

.delivery-schedule-table { display: grid; gap: 8px; }

.delivery-schedule-row {
  align-items: center;
  border-bottom: 1px solid #e3e8ea;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 160px) minmax(120px, 160px);
  padding: 8px 0;
}

.delivery-schedule-row:last-child { border-bottom: 0; }
.delivery-schedule-row label:not(.check-row) { display: grid; gap: 4px; }
.delivery-schedule-row label > span { color: #617078; font-size: 12px; }
.delivery-settings-actions { justify-content: flex-end; padding: 8px 0 18px; }
.delivery-zones-body { display: grid; gap: 12px; }
.delivery-zones-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.delivery-zones-toolbar > span { color: #617078; margin-left: auto; }
.delivery-zones-layout { display: grid; gap: 12px; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); }
.delivery-zones-list { border: 1px solid #d5dde0; display: grid; align-content: start; max-height: 720px; overflow: auto; }
.delivery-zone-row { align-items: center; background: #fff; border: 0; border-bottom: 1px solid #e3e8ea; cursor: pointer; display: grid; gap: 9px; grid-template-columns: 7px minmax(0, 1fr); padding: 10px; text-align: left; }
.delivery-zone-row:hover { background: #eef4f6; }
.delivery-zone-row > i { align-self: stretch; min-height: 42px; }
.delivery-zone-row > span { display: grid; gap: 4px; min-width: 0; }
.delivery-zone-row small { color: #617078; }
.delivery-zone-empty { align-items: center; border: 1px dashed #bcc9ce; display: grid; gap: 7px; justify-items: center; min-height: 260px; padding: 24px; text-align: center; }
.delivery-zone-form { display: grid; gap: 12px; min-width: 0; }
.delivery-zone-fields { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(150px, 1fr)); }
.delivery-zone-fields > label:not(.check-row) { display: grid; gap: 4px; }
.delivery-zone-fields > label > span { color: #617078; font-size: 12px; }
.delivery-zone-fields input:not([type="checkbox"]), .delivery-zone-fields select { min-height: 38px; width: 100%; }
.delivery-zone-fields input[type="color"] { max-width: 60px; padding: 2px; }
.delivery-zone-vat-note { grid-column: 1 / -1; margin: 0; }
.delivery-zone-fields [data-delivery-zone-vat-amount] { display: flex; align-items: center; min-height: 38px; padding: 8px; background: #eef4f6; }
.delivery-zone-fields .check-row { align-items: center; align-self: end; display: flex; gap: 8px; min-height: 38px; }
.delivery-zone-map-toolbar { display: flex; flex-wrap: wrap; gap: 7px; }
.delivery-zone-map-toolbar .button.is-active { background: #1d8fc6; border-color: #147aa9; color: #fff; }
.delivery-zone-map-status { background: #eef4f6; color: #44545c; min-height: 20px; padding: 7px 10px; }
.delivery-zone-map { align-items: center; background: #eef2f3; border: 1px solid #bdc9ce; display: flex; justify-content: center; min-height: 580px; }
.delivery-zone-map > p { color: #617078; padding: 20px; }
.delivery-zone-test-result { background: #eef4f6; display: grid; gap: 4px; padding: 9px 11px; }
.delivery-zone-test-result .is-error { color: #b93737; }
.delivery-zone-form details textarea { box-sizing: border-box; min-height: 170px; resize: vertical; width: 100%; }
.delivery-zone-form details textarea.is-invalid { border-color: #b93737; }
.delivery-zone-form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.button-danger { background: #b93737; border-color: #a22d2d; color: #fff; }
.delivery-delete-dialog { width: min(460px, calc(100vw - 32px)); }

@media (max-width: 1100px) {
  .delivery-status-tabs { grid-template-columns: repeat(9, minmax(105px, 1fr)); }
  .delivery-mode-grid { grid-template-columns: 1fr; margin: 10px auto; }
  .delivery-order-editor { grid-template-columns: 1fr; }
  .delivery-wizard-order-body { overflow: auto; }
  .delivery-product-results { max-height: 320px; }
  .delivery-order-drawer { width: min(760px, 92vw); }
}

@media (max-width: 760px) {
  .delivery-wizard-layer { padding: 0; }
  .delivery-address-map-layer { padding: 0; }
  .delivery-address-map-dialog { height: 100vh; width: 100vw; }
  .delivery-address-map-dialog > footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .delivery-address-map-dialog > footer .button { min-width: 0; }
  .delivery-wizard { border-radius: 0; height: 100vh; max-height: none; width: 100vw; }
  .delivery-choice-list,
  .delivery-address-grid,
  .delivery-compact-form,
  .delivery-order-meta,
  .delivery-detail-summary,
  .delivery-detail-editor-grid { grid-template-columns: 1fr; }
  .delivery-compact-form .wide,
  .delivery-detail-editor-grid .wide { grid-column: auto; }
  .delivery-requested-for-fields,
  .delivery-price-mapping-row,
  .delivery-schedule-row { grid-template-columns: 1fr; }
  .delivery-product-picker-toolbar { grid-template-columns: 1fr; }
  .delivery-zones-layout,
  .delivery-zone-fields { grid-template-columns: 1fr; }
  .delivery-zones-toolbar > span { margin-left: 0; width: 100%; }
  .delivery-order-line { grid-template-columns: minmax(110px, 1fr) auto 72px 34px; }
  .delivery-order-drawer { width: 100vw; }
  .delivery-wizard-resize-handle { display: none; }
}
