.merchant {
  --merchant-sidebar: #282022;
  --merchant-paper: #f7f4f3;
  --merchant-accent: #9b2d44;
  --merchant-line: #e7dddd;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--merchant-paper);
}

.merchant-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-width: 0;
  background: var(--merchant-sidebar);
  padding: 30px 17px;
  overflow-y: auto;
}

.partner-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  white-space: nowrap;
  color: #76515c;
  font-size: 15px;
  font-weight: 550;
  line-height: 1;
}
.partner-wordmark strong {
  color: #8c2c43;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.065em;
}
.merchant-brand {
  display: flex;
  align-items: center;
  margin: 0 13px 18px;
  padding: 0 0 20px;
  border-bottom: 1px solid #49373d;
}
.merchant-brand .partner-wordmark { color: #e4b7c1; }
.merchant-brand .partner-wordmark strong { color: #fff8f7; }
.topbar .partner-wordmark strong { font-size: 30px; }
.login-panel .partner-wordmark { margin-bottom: 4px; }
.merchant-nav { display: grid; gap: 6px; }
.merchant-nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  border-radius: 9px;
  padding: 8px 13px;
  color: #e8dbde;
  font-size: 14px;
  font-weight: 560;
}
.merchant-nav a:hover { background: #3b2c32; color: #fff; }
.merchant-nav a[aria-current="page"] { background: #60343f; color: #fff; }
.restaurant-portal[data-embedded="partner"] .merchant-top,
.restaurant-portal[data-embedded="partner"] .merchant-brand,
.restaurant-portal[data-embedded="partner"] .merchant-nav a[href="#current-orders"] { display: none; }
.restaurant-portal[data-embedded="partner"] .merchant-sidebar { padding-top: 18px; }
.merchant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid var(--merchant-line);
  background: #fffdfc;
  padding: 13px clamp(20px, 4.5vw, 64px);
}
.merchant-location { display: flex; align-items: center; gap: 14px; min-width: 0; }
.merchant-location strong { font-size: 16px; overflow-wrap: anywhere; }
.merchant-location select { min-width: 140px; max-width: min(350px, 47vw); }
.merchant-environment { display: inline-flex; align-items: center; gap: 7px; color: #69545a; white-space: nowrap; }
.merchant-environment::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b34b65; }
.merchant-main { max-width: 1250px; margin-inline: auto; padding: 38px clamp(20px, 4.5vw, 64px) 62px; }
.merchant-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 25px; }
.merchant-heading h1 { font-size: clamp(28px, 3.4vw, 43px); letter-spacing: -.045em; }
.merchant-heading p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.merchant .button.primary, .merchant-editor .button.primary { background: #9b2d44; border-color: #9b2d44; }
.merchant .button.primary:hover, .merchant-editor .button.primary:hover { background: #822239; border-color: #822239; }
.merchant-card { border-radius: 15px; border: 1px solid var(--merchant-line); background: #fffdfc; min-width: 0; }
.merchant-feature {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  border-radius: 17px;
  background: #f0dce0;
  color: #44232b;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 18px;
}
.merchant-feature h2 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -.035em; }
.merchant-feature p { margin-top: 9px; color: #654a51; }
.merchant-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.merchant-metric, .merchant-shortcut, .merchant-campaign { padding: 23px; }
.merchant-metric span { display: block; color: var(--muted); font-size: 14px; }
.merchant-metric strong { display: block; margin-top: 9px; font-size: 30px; font-weight: 650; line-height: 1.1; }
.merchant-shortcut h2 { font-size: 21px; }
.merchant-shortcut p { color: var(--muted); margin: 7px 0 17px; }
.merchant-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, 235px); gap: 12px; margin: 0 0 14px; }
.merchant-toolbar input, .merchant-toolbar select { min-height: 45px; }
.merchant-menu-rows { list-style: none; padding: 0; margin: 0; overflow: hidden; }
.merchant-menu-row {
  display: grid;
  grid-template-columns: 88px minmax(140px, 1fr) 80px 128px auto;
  align-items: center;
  gap: 15px;
  padding: 14px 17px;
}
.merchant-menu-row + .merchant-menu-row { border-top: 1px solid var(--merchant-line); }
.merchant-thumb { width: 88px; height: 68px; overflow: hidden; border-radius: 9px; background: #f3eae9; display: grid; place-items: center; }
.merchant-thumb img { display: block; object-fit: cover; width: 100%; height: 100%; }
.merchant-thumb-empty { color: #725b60; font-size: 11px; }
.merchant-item { min-width: 0; }
.merchant-item strong { font-size: 16px; overflow-wrap: anywhere; }
.merchant-item small { display: block; color: var(--muted); margin-top: 3px; }
.merchant-item p { color: var(--muted); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.merchant-price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.merchant-menu-row > .pill { justify-self: start; }
.merchant-row-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.merchant-empty { padding: clamp(27px, 4vw, 46px); }
.merchant-empty h2, .merchant-section h2 { font-size: 23px; }
.merchant-empty p { color: var(--muted); margin: 8px 0 19px; }
.merchant-empty p:last-child { margin-bottom: 0; }
.merchant-section + .merchant-section { margin-top: 30px; }
.merchant-section h2 { margin-bottom: 13px; }
.merchant-campaigns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.merchant-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.merchant-percent { display: inline-flex; padding: 5px 12px; border-radius: 9px; background: #f7e5e8; color: #8f2a40; font-size: 23px; font-weight: 680; }
.merchant-campaign h3 { font-size: 20px; margin: 0 0 7px; overflow-wrap: anywhere; }
.merchant-campaign p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.merchant-campaign .merchant-row-actions { margin-top: 17px; }
.merchant-test-order { display: block; margin-top: 4px; }
.merchant-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 15px; gap: 10px; color: var(--muted); }
.merchant-pager button + button { margin-left: 7px; }

.merchant-editor { width: min(680px, calc(100% - 30px)); }
.merchant-editor [hidden] { display: none; }
.merchant-editor h2 { margin-bottom: 23px; }
.merchant-editor fieldset { min-width: 0; border: 1px solid #e8dfe0; border-radius: 12px; padding: 12px; margin: 0 0 16px; }
.merchant-editor legend { font-weight: 650; padding-inline: 5px; }
.merchant-photo-box { display: grid; grid-template-columns: 146px minmax(0, 1fr); gap: 16px; align-items: center; }
.merchant-photo-box.highlight { outline: 2px solid #9b2d44; outline-offset: 2px; border-radius: 8px; }
.merchant-photo-preview { display: grid; place-items: center; width: 146px; height: 110px; overflow: hidden; border-radius: 9px; background: #f3eae9; }
.merchant-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.merchant-photo-preview span { font-size: 13px; color: var(--muted); }
.merchant-photo-pick .field { margin-bottom: 7px; }
.merchant-photo-pick .field input { font-size: 13px; }
.merchant-photo-pick p { font-size: 13px; margin: 6px 0; }
.merchant-product-options { max-height: 165px; overflow-y: auto; }
.merchant-product-options .check { margin-bottom: 9px; }
.merchant-product-options .check:last-child { margin-bottom: 0; }
#modifier-editor h2 { margin-bottom: 10px; }
#modifier-editor [data-modifier-option] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #e8dfe0;
}
#modifier-editor [data-modifier-option] .field { margin: 0; }
#modifier-editor [data-modifier-option] .button { min-height: 42px; }
#modifier-editor fieldset .dialog-actions { margin-top: 7px; }
.merchant-hours { display: grid; gap: 17px; }
.merchant-hours > .button { justify-self: start; }
.merchant-hours-settings { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 16px 18px; }
.merchant-hours-settings .check { margin: 0; }
.merchant-hours-schedules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 15px; }
.merchant-hours-card { margin: 0; padding: 12px 17px 17px; }
.merchant-hours-card[hidden], .merchant-hours-day [hidden] { display: none; }
.merchant-hours-card > legend { font-size: 21px; font-weight: 650; padding: 0 6px; }
.merchant-hours-day { min-width: 0; margin: 1px 0 12px; padding: 8px 0 0; border: 0; }
.merchant-hours-day + .merchant-hours-day { border-top: 1px solid var(--merchant-line); }
.merchant-hours-day legend { font-size: 15px; font-weight: 650; padding: 0 8px 0 0; }
.merchant-hours-day > .button { margin-top: 6px; }
.merchant-hours-interval { display: flex; align-items: end; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; }
.merchant-hours-interval label { display: grid; gap: 3px; flex: 1 1 80px; font-size: 12px; color: var(--muted); }
.merchant-hours-interval input { max-width: 100%; min-height: 34px; padding: 6px 8px; }
.merchant-hours-interval > .button { min-height: 34px; }
.refund-form { padding: 22px; }
.refund-form h2 { font-size: 22px; margin-bottom: 14px; }
.refund-form [data-refundable] { margin: -5px 0 16px; }
.refund-history, #promotion-analytics { margin-top: 30px; }
.refund-card { border-color: var(--merchant-line, #e7dddd); }
.refund-card .refund-reason { white-space: pre-wrap; overflow-wrap: anywhere; }

.current-order-tools, .current-order-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.current-order-tools .button[aria-pressed="true"] { color: #852742; background: #f7e5e8; border-color: #e3b9c4; }
.current-board-sound { margin: -10px 0 16px; font-size: 14px; }
.current-order-filters { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--merchant-line); }
.current-order-filters button {
  display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 13px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 620;
}
.current-order-filters button:hover { background: #f1e6e7; }
.current-order-filters button[aria-pressed="true"] { background: #f0dce0; color: #75293a; }
[data-group-count]:not(:empty) {
  display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding-inline: 4px;
  border-radius: 7px; background: #fffdfc; color: #685157; font-size: 12px;
}
.current-board-status:not(:empty) { margin-bottom: 16px; color: #6a5059; }
.current-board-status.is-error { color: #992846; }
.current-order-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 335px), 1fr)); gap: 22px; align-items: start; }
.current-order-board .merchant-section + .merchant-section { margin-top: 0; }
.current-order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 12px; }
.current-order { padding: 17px; }
.current-order-new { border-top: 3px solid #9b2d44; padding-top: 15px; }
.current-order-top { display: flex; justify-content: space-between; align-items: start; gap: 8px 12px; flex-wrap: wrap; }
.current-order-top h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.current-order-top .muted, .current-order-meta { margin-top: 4px; font-size: 13px; }
.current-order-meta { color: var(--muted); }
.current-order-test { display: inline-block; margin-top: 8px; color: #71533d; font-size: 12px; }
.current-order-total { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.current-order-total strong { font-size: 19px; }
.current-order-total span { font-size: 13px; color: var(--muted); }
.current-order .merchant-row-actions { margin-top: 13px; }
.current-reject { color: #862945; }
.current-order-dialog h2 { margin-bottom: 10px; }
.current-order-detail-meta { display: flex; align-items: center; gap: 10px; }
.current-order-detail-meta .current-order-test { margin-top: 0; }
.current-order-detail-times, .current-order-detail-courier { margin-top: 10px; font-size: 14px; }
.current-order-lines { list-style: none; margin: 15px 0 0; padding: 0; border-top: 1px solid #e7dddd; }
.current-order-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e7dddd; }
.current-order-lines p { margin-top: 4px; font-size: 13px; }
.current-order-lines strong { overflow-wrap: anywhere; }
.current-line-quantity { color: var(--muted); }
.current-order-detail-total { display: flex; justify-content: space-between; padding: 12px 0; font-size: 17px; }
.current-order-decision { padding: 12px 13px; margin: 8px 0 12px; border-radius: 9px; background: #f8efe9; color: #503840; font-size: 14px; }
.current-order-dialog .dialog-actions { flex-wrap: wrap; }

@media (max-width: 1160px) {
  .merchant-menu-row { grid-template-columns: 78px minmax(0, 1fr) auto auto; }
  .merchant-thumb { width: 78px; }
  .merchant-menu-row .merchant-row-actions { grid-column: 2 / -1; }
}
@media (max-width: 820px) {
  .merchant { display: block; }
  .merchant-sidebar { height: auto; position: static; padding: 15px 17px 10px; }
  .merchant-brand { margin: 0 0 8px; padding: 5px 11px 13px; }
  .merchant-brand .partner-wordmark strong { font-size: 29px; }
  .merchant-nav { display: flex; overflow: auto; gap: 5px; }
  .merchant-nav a { min-height: 37px; font-size: 13px; white-space: nowrap; }
  .merchant-top { min-height: 64px; }
  .merchant-main { padding-top: 25px; }
}
@media (max-width: 560px) {
  .merchant-location { align-items: flex-start; flex-direction: column; gap: 3px; }
  .merchant-heading, .merchant-feature { align-items: flex-start; flex-direction: column; }
  .merchant-campaigns { grid-template-columns: minmax(0, 1fr); }
  .merchant-metrics { gap: 6px; }
  .merchant-metric { padding: 12px 9px; }
  .merchant-metric span { font-size: 12px; }
  .merchant-metric strong { font-size: 24px; }
  .merchant-toolbar { grid-template-columns: minmax(0, 1fr); }
  .merchant-menu-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px 10px; padding: 12px; }
  .merchant-thumb { width: 62px; height: 56px; }
  .merchant-menu-row > .pill { grid-column: 2 / -1; }
  .merchant-editor .form-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .merchant-photo-box { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .merchant-photo-preview { width: 76px; height: 73px; }
}
