:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d8e0ea;
  --brand: #0f7a83;
  --accent: #e7792b;
  --bg: #f4f7fa;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #172033;
  color: white;
  min-height: 64px;
}

.topbar > div:first-child {
  display: grid;
  gap: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  background: #253149 !important;
}

.account-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-button span {
  color: white;
  font-size: 13px;
}

.topbar span {
  color: #cbd5e1;
  font-size: 13px;
}

.topbar button,
button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 40px;
}

.delivery-cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(560px, calc(100% - 16px));
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #172033;
  color: white;
  box-shadow: 0 16px 34px rgba(23, 32, 51, .28);
}

.delivery-cart-bar[hidden] {
  display: none;
}

.delivery-cart-summary {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.delivery-cart-summary span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.delivery-cart-summary strong {
  color: white;
  font-size: 19px;
  white-space: nowrap;
}

.delivery-cart-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  background: var(--accent);
}

.delivery-cart-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-cart-button span {
  color: white;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

body.cart-bar-visible main {
  padding-bottom: 86px;
}

main {
  width: min(1240px, calc(100% - 24px));
  margin: 16px auto 40px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

h1,
h2,
p {
  margin-top: 0;
}

.catalog-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.catalog-header input {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.company-list-view {
  display: grid;
  gap: 14px;
}

.company-list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 18px 2px 4px;
}

.company-list-head h1 {
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1.1;
}

.company-list-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.company-list {
  display: grid;
  gap: 12px;
}

.company-directory-mode main {
  width: min(100% - 28px, 1120px);
}

.company-directory-mode .topbar {
  display: none;
}

.company-directory-mode .company-list-head {
  display: none;
}

.marketplace-home {
  display: grid;
  gap: 28px;
  padding-bottom: 28px;
}

.marketplace-top {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0 4px;
}

.marketplace-menu-button {
  width: 40px;
  min-height: 40px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
}

.marketplace-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.marketplace-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.marketplace-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  border-radius: 999px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.marketplace-search {
  position: relative;
  display: block;
  min-width: 0;
}

.marketplace-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 46px 0 16px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.marketplace-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 122, 131, .13);
}

.marketplace-search svg {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.marketplace-location {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.marketplace-location svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketplace-account {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.marketplace-rail {
  display: grid;
  gap: 12px;
}

.marketplace-rail-soft {
  margin-inline: calc((100vw - min(100vw - 28px, 1120px)) / -2);
  padding: 28px calc((100vw - min(100vw - 28px, 1120px)) / 2);
  background: #fff;
  border-block: 1px solid rgba(231, 121, 43, .12);
}

.marketplace-rail header,
.marketplace-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.marketplace-rail h2,
.marketplace-results h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.marketplace-tile-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 120px;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.marketplace-tile {
  display: grid;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 3px;
  color: var(--ink);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

.marketplace-tile.active {
  border-color: var(--accent);
  background: rgba(231, 121, 43, .08);
  color: var(--accent);
  font-weight: 900;
}

.marketplace-tile.active .marketplace-tile-art {
  box-shadow: 0 0 0 3px rgba(231, 121, 43, .18), inset 0 -28px 42px rgba(255, 255, 255, .18);
}

.marketplace-tile-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -28px 42px rgba(255, 255, 255, .18);
}

.marketplace-tile-art img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.marketplace-tile.tone-green .marketplace-tile-art { background: linear-gradient(135deg, #0f7a83, #8bd17c); }
.marketplace-tile.tone-orange .marketplace-tile-art { background: linear-gradient(135deg, #e7792b, #ffc06a); }
.marketplace-tile.tone-blue .marketplace-tile-art { background: linear-gradient(135deg, #2563eb, #8bdff2); }
.marketplace-tile.tone-yellow .marketplace-tile-art { background: linear-gradient(135deg, #d19400, #ffe27a); }
.marketplace-tile.tone-pink .marketplace-tile-art { background: linear-gradient(135deg, #e43f6f, #ffb3c9); }
.marketplace-tile.tone-purple .marketplace-tile-art { background: linear-gradient(135deg, #7c3aed, #d8b4fe); }
.marketplace-tile.tone-brown .marketplace-tile-art { background: linear-gradient(135deg, #8a3a13, #d8a46f); }
.marketplace-tile.tone-red .marketplace-tile-art { background: linear-gradient(135deg, #b91c1c, #fb923c); }

.marketplace-promotion-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 178px;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.marketplace-promotion-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 248px;
  border: 1px solid rgba(216, 224, 234, .88);
  border-radius: 8px;
  padding: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 32, 51, .06);
}

.marketplace-promotion-card img {
  width: 100%;
  aspect-ratio: 1.2;
  border-radius: 8px;
  object-fit: cover;
  background: #eef5f6;
}

.marketplace-promotion-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.marketplace-promotion-card small {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.marketplace-promotion-card strong {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.marketplace-promotion-card em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-promotion-card b {
  align-self: end;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

.marketplace-promotion-card.loading span,
.marketplace-promotion-card.loading strong {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3f7, #f8fafc, #eef3f7);
}

.marketplace-promotion-card.loading span {
  width: 100%;
  aspect-ratio: 1.2;
}

.marketplace-promotion-card.loading strong {
  width: 80%;
  height: 18px;
}

.marketplace-results {
  display: grid;
  gap: 16px;
}

.marketplace-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.marketplace-filter-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.marketplace-filter-row button.active {
  border-color: rgba(15, 122, 131, .25);
  background: #eaf7f6;
  color: var(--brand);
}

.marketplace-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.company-directory-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px 0 0;
  background: var(--card);
  box-shadow: 0 8px 18px rgba(23, 32, 51, .05);
  overflow: hidden;
}

.company-directory-card.is-closed {
  opacity: .78;
}

.company-directory-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.company-card-main {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  align-items: center;
}

.company-directory-logo-frame {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #f3f7f8;
  overflow: hidden;
}

.company-directory-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-directory-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 0;
}

.company-directory-body h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.company-card-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.company-card-actions {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 26px;
  flex: 0 0 auto;
  min-width: 132px;
  padding: 14px 0 12px;
}

.company-card-status.open {
  background: #dcfce7;
  color: #166534;
}

.company-card-status.closed {
  background: #fee2e2;
  color: #991b1b;
}

.company-card-meta {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
}

.company-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.company-card-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-rating b {
  color: #ffb21a;
  font-size: 18px;
  line-height: 1;
}

.company-hours-button {
  justify-self: start;
  position: relative;
  z-index: 3;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.company-card-menu-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.company-card-menu-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.open-company-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.group-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.subgroup-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: thin;
}

.group-tabs button {
  min-height: 32px;
  background: #e8eef5;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.subgroup-tabs button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.group-tabs button.active,
.subgroup-tabs button.active {
  background: var(--brand);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 9px;
  align-items: stretch;
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 6px;
}

.product-pagination button {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.product-pagination button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.product-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-ellipsis {
  min-width: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(23, 32, 51, .045);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f6f8fa;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 5px;
  padding: 9px;
}

.product-body h2 {
  display: -webkit-box;
  min-height: 34px;
  margin-bottom: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.18;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-body p {
  display: -webkit-box;
  min-height: 32px;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  align-self: end;
  padding-top: 2px;
}

.product-footer button {
  flex: 0 0 auto;
  min-width: 38px;
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
  font-size: 0;
}

.product-footer button::before {
  content: "+";
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.price {
  color: #075d66;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

dialog {
  width: min(680px, calc(100% - 8px));
  max-height: min(92vh, 760px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(15, 23, 42, .42);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 10px;
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 0 12px 12px;
  background: #f3f6fa;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: transparent;
  color: white;
  width: 34px;
  height: 34px;
  padding: 0;
}

.item-dialog-head {
  margin: 0 -12px;
  padding: 10px 44px 10px 16px;
  background: #172033;
  color: white;
}

.item-dialog-head h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1;
}

.item-dialog-head p {
  margin: 3px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: white;
}

.company-hero {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 78px;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .06);
}

.company-logo-frame {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  background: white;
  overflow: hidden;
}

.company-logo-frame img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.company-selected-mode .company-list-head {
  display: none;
}

.company-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 0;
}

.company-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.company-hero h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}

.company-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

.company-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}

.company-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #13182a;
  font-size: 16px;
}

.company-info span + span {
  border-left: 1px solid #6b7280;
  padding-left: 10px;
}

.company-info span:nth-child(1)::before {
  content: "◷";
  color: #6b6f8a;
}

.company-info span:nth-child(2)::before {
  content: "▣";
  color: #6b6f8a;
}

.company-info span:nth-child(3)::before {
  content: "▤";
  color: #6b6f8a;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111827;
  font-weight: 700;
}

.rating-pill::first-letter {
  color: #f4b32c;
  font-size: 28px;
  line-height: 1;
}

.promotion-banner {
  position: relative;
  min-height: 112px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #172239;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .06);
}

.promotion-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, #172239, #1f6f78);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transition: opacity 240ms ease;
}

.promotion-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.promotion-slide img {
  width: 152px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f5;
}

.promotion-slide span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.promotion-slide small {
  color: #f5b632;
  font-weight: 900;
  text-transform: uppercase;
}

.promotion-slide strong {
  overflow-wrap: break-word;
  font-size: 21px;
}

.promotion-slide em {
  color: #ffffff;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.promotion-pizza-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.promotion-pizza-prices b {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.promotion-add-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(12, 18, 30, 0.24);
}

.promotion-add-button::before {
  content: "+";
  margin-right: 7px;
  font-size: 20px;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8eef5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.status-pill {
  margin-bottom: 8px;
}

.status-pill.open {
  background: #dcfce7;
  color: #166534;
}

.status-pill.closed {
  background: #fee2e2;
  color: #991b1b;
}

.share-link-button {
  justify-self: center;
  align-self: end;
  margin: 0 16px 22px 0;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1.5px solid #ff3131;
  border-radius: 18px;
  background: #fff;
  color: #ff3131;
  box-shadow: none;
}

.install-app-button {
  justify-self: center;
  align-self: end;
  margin: 0 16px 76px 0;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1.5px solid var(--brand);
  border-radius: 18px;
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.share-link-button svg,
.install-app-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.more-info-button {
  justify-self: start;
  min-height: auto;
  padding: 8px 0;
  background: transparent;
  color: #ff1d25;
  font-size: 16px;
  font-weight: 500;
}

.info-dialog-card {
  gap: 16px;
}

.info-dialog-card h2,
.info-dialog-card h3,
.info-dialog-card p {
  margin: 0;
}

.info-dialog-card .close-button {
  color: var(--ink);
  background: #e8eef5;
}

#installDialog {
  position: fixed;
  inset: auto 14px 14px auto;
  width: min(380px, calc(100vw - 28px));
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 80;
}

#installDialog::backdrop {
  background: transparent;
}

.install-dialog-card {
  max-width: 380px;
  text-align: center;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(219, 227, 239, .9);
  box-shadow: 0 18px 50px rgba(15, 29, 54, .18);
}

.install-dialog-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(231, 121, 43, .12);
  color: var(--accent);
}

.install-dialog-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-dialog-card h2 {
  margin: 0;
  font-size: 24px;
}

.install-dialog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.install-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

#installDialog.install-help-only .install-dialog-actions {
  grid-template-columns: 1fr;
}

.install-dialog-card button:not(.close-button) {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  background: var(--accent);
  font-size: 17px;
  font-weight: 900;
}

.install-dialog-card .ghost-button {
  border: 1px solid var(--line);
  background: #f3f6fb;
  color: var(--muted);
}

.install-dialog-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.info-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.info-status-row span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.hours-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hours-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.hours-line span {
  color: var(--muted);
}

.option-grid,
.additional-list {
  display: grid;
  gap: 10px;
}

.choice-group {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.choice-group-head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
}

.choice-step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18777f;
  color: white;
  font-size: 19px;
  font-weight: 900;
}

.choice-group-head strong {
  display: block;
  color: #172033;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.choice-group-head small,
.choice-group-head span,
.choice-group-head em {
  color: #657286;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.choice-group-head small,
.choice-group-head span {
  text-transform: uppercase;
}

.choice-grid,
.additional-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}

.choice-card > span {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.choice-card strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.choice-card small {
  justify-self: center;
  border-radius: 6px;
  padding: 5px 10px;
  background: #e9f2f3;
  color: #075d66;
  font-size: 13px;
  font-weight: 900;
}

.choice-card input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.half-flavor-card {
  min-height: 66px;
}

.half-flavor-card.selected {
  border-color: #18777f;
  background: #f0fbfc;
  box-shadow: inset 0 0 0 1px #18777f;
}

.half-flavor-card input {
  accent-color: #18777f;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 0;
  background: #18777f;
  font-size: 20px;
}

.qty strong {
  min-width: 26px;
  text-align: center;
}

.additional-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name name"
    "price qty";
  align-items: center;
  gap: 8px;
}

.additional-row > span {
  display: contents;
}

.additional-row > span strong {
  grid-area: name;
  justify-self: start;
  text-align: left;
}

.additional-row > span small {
  grid-area: price;
  justify-self: start;
  text-align: center;
  white-space: normal;
}

.additional-row .qty {
  grid-area: qty;
  justify-self: end;
}

.additional-row .qty button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  font-size: 18px;
}

.additional-row .qty strong {
  min-width: 20px;
}

.prep-field {
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px 10px;
  background: white;
}

.prep-field span {
  color: #657286;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prep-field textarea {
  min-height: 54px;
  resize: vertical;
}

.item-total-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #18777f;
  color: white;
}

.item-total-bar span {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.item-total-bar strong {
  font-size: 24px;
}

.empty-additional {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  justify-content: end;
  align-items: center;
  gap: 12px;
}

#itemDialog footer {
  grid-template-columns: 1fr auto;
}

#itemDialog footer .item-total-bar {
  grid-column: 1 / -1;
}

#itemDialog #addItemButton {
  justify-self: end;
  background: #f2bf89;
  color: white;
}

.cart-items {
  display: grid;
  gap: 12px;
  max-height: min(70vh, 620px);
  overflow: auto;
}

.cart-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

#cartDialog {
  width: min(980px, calc(100% - 12px));
}

.cart-dialog-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  background: #f7f9fc;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-right: 40px;
}

.checkout-steps button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

.checkout-steps button svg,
.checkout-navigation button svg,
#submitOrderButton svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-steps button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.checkout-steps button.completed {
  border-color: #9fcfd0;
  background: #eaf6f6;
  color: var(--brand);
}

.checkout-panel[hidden] {
  display: none !important;
}

.checkout-panel {
  min-height: min(560px, 68vh);
}

.order-details-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.order-details-panel h2,
.order-summary-panel h2 {
  margin: 0 0 4px;
}

.neighborhood-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.neighborhood-picker-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.neighborhood-picker-button.selected {
  border-color: #9ed7d4;
  background: #eef9f7;
}

.neighborhood-picker-button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.neighborhood-picker-button strong,
.neighborhood-option strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neighborhood-picker-button small,
.neighborhood-option small {
  color: var(--muted);
  font-size: 12px;
}

.neighborhood-picker-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neighborhood-dialog-card {
  width: min(520px, calc(100vw - 20px));
  gap: 12px;
}

.neighborhood-dialog-card h2 {
  margin: 0;
  padding-right: 40px;
}

.neighborhood-dialog-card .close-button {
  color: var(--ink);
  background: #e8eef5;
}

.neighborhood-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 460px);
  overflow: auto;
  padding-right: 2px;
}

.neighborhood-option {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.neighborhood-option.active {
  border-color: #0f7a83;
  background: #eef9f7;
}

.neighborhood-option span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.neighborhood-option b {
  flex: 0 0 auto;
  color: #075d66;
  font-size: 14px;
}

.empty-neighborhood {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.payment-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-fieldset legend {
  margin-bottom: 7px;
  font-weight: 700;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.payment-option {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: center;
}

.payment-option:has(input:checked) {
  border-color: var(--brand);
  background: #eaf6f6;
  color: var(--brand);
}

.payment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.payment-option svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-option span {
  font-size: 13px;
  line-height: 1.15;
}

.cart-dialog-card .close-button {
  color: var(--ink);
  background: #e8eef5;
}

.cart-main h2,
.order-summary-panel h3 {
  margin-bottom: 14px;
}

.cart-product-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e5ebf3;
  padding: 10px 0 14px;
}

.cart-product-line img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
  background: #f6f8fa;
}

.cart-product-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-product-body p,
.cart-product-body small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.remove-cart-button {
  justify-self: start;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
}

.cart-product-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.cart-qty button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 0;
  padding: 0;
  background: white;
  color: var(--ink);
}

.cart-qty strong {
  min-width: 28px;
  text-align: center;
}

.cart-line-price {
  color: var(--accent);
}

.order-summary-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.review-cart-items {
  display: grid;
  gap: 8px;
}

.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5ebf3;
  padding: 10px 2px;
}

.review-item div {
  display: grid;
  gap: 3px;
}

.review-item small {
  color: var(--muted);
}

.checkout-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.checkout-navigation button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.checkout-navigation .primary-step-button,
.checkout-navigation #submitOrderButton {
  background: var(--accent);
  color: white;
}

.checkout-navigation .secondary-step-button,
.checkout-navigation .continue-shopping-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.summary-lines {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #e5ebf3;
  padding-bottom: 10px;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.summary-lines strong {
  color: var(--ink);
}

.summary-lines .discount-line,
.summary-lines .discount-line strong {
  color: #198754;
}

.summary-lines .summary-total {
  border-top: 1px solid #e5ebf3;
  margin-top: 4px;
  padding-top: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.summary-lines .summary-total strong {
  color: var(--accent);
  font-size: 18px;
}

.order-summary-panel footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.order-summary-panel footer > strong {
  display: none;
}

.order-summary-panel #submitOrderButton {
  width: 100%;
  background: var(--accent);
}

.history-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 144px;
  background: var(--brand);
}

.history-button svg,
.history-account-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-dialog-card {
  gap: 14px;
}

.history-account-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 38px;
}

.history-account-head > div {
  display: grid;
  gap: 2px;
}

.history-account-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eaf6f6;
  color: var(--brand);
}

.account-fields {
  display: grid;
  gap: 10px;
}

.account-fields textarea {
  min-height: 68px;
  resize: vertical;
}

.history-dialog-card .close-button {
  color: var(--ink);
  background: #e8eef5;
}

.history-dialog-card h2,
.history-dialog-card p {
  margin: 0;
}

.history-dialog-card p {
  color: var(--muted);
}

.history-list {
  display: grid;
  gap: 10px;
  max-height: min(68vh, 560px);
  overflow: auto;
}

.history-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.history-card > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-card > div > span:last-child {
  flex-basis: 100%;
}

.order-status {
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8eef5;
  color: var(--ink) !important;
  font-size: 11px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.order-status.status-recebido,
.order-status.status-em_preparo {
  background: #fff0cf;
  color: #805400 !important;
}

.order-status.status-pronto,
.order-status.status-saiu_entrega {
  background: #dff3f1;
  color: #075d66 !important;
}

.order-status.status-finalizado {
  background: #e1f5e8;
  color: #176b36 !important;
}

.order-status.status-cancelado {
  background: #fde5e5;
  color: #a32020 !important;
}

.history-card span,
.history-card li {
  color: var(--muted);
  font-size: 13px;
}

.history-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.history-card footer {
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.history-card footer strong {
  align-self: center;
  color: var(--brand);
  font-size: 18px;
}

.history-card footer button {
  background: var(--accent);
}

.empty-history {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.continue-shopping-button {
  width: auto;
  border: 1px solid var(--accent);
  background: white;
  color: var(--accent);
}

.delivery-fee-line {
  background: #eef9f7;
  border-color: #b9dedc;
}

.delivery-fee-line strong,
.delivery-fee-line small {
  color: #075d66;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  width: max-content;
  max-width: calc(100% - 24px);
  background: #0f7a83;
  color: white;
  border-radius: 8px;
  padding: 13px 18px;
  box-shadow: 0 16px 34px rgba(23, 32, 51, .24);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .company-directory-mode main {
    width: min(100% - 14px, 640px);
    margin-top: 0;
  }

  .topbar {
    padding: 12px;
  }

  main {
    width: min(100% - 16px, 640px);
    margin-top: 10px;
  }

  .catalog-header {
    display: grid;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .company-list-head {
    padding-top: 8px;
  }

  .marketplace-home {
    gap: 18px;
  }

  .marketplace-top {
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 8px;
    padding-top: 8px;
  }

  .marketplace-brand {
    gap: 8px;
    font-size: 18px;
  }

  .marketplace-brand-mark {
    width: 31px;
    height: 31px;
  }

  .marketplace-search {
    grid-column: 1 / -1;
    order: 2;
  }

  .marketplace-search input {
    min-height: 42px;
    font-size: 14px;
  }

  .marketplace-location {
    min-height: 36px;
    max-width: 132px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .marketplace-location span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .marketplace-account {
    min-height: 36px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .marketplace-rail-soft {
    margin-inline: -7px;
    padding: 18px 7px;
  }

  .marketplace-rail h2,
  .marketplace-results h2 {
    font-size: 18px;
  }

  .marketplace-tile-row {
    grid-auto-columns: 92px;
    gap: 10px;
  }

  .marketplace-tile {
    gap: 6px;
    font-size: 12px;
  }

  .marketplace-tile-art {
    font-size: 18px;
  }

  .marketplace-promotion-row {
    grid-auto-columns: 142px;
    gap: 10px;
  }

  .marketplace-promotion-card {
    min-height: 218px;
    padding: 7px;
  }

  .marketplace-promotion-card strong {
    min-height: 31px;
    font-size: 13px;
  }

  .marketplace-promotion-card small,
  .marketplace-promotion-card em {
    font-size: 10.5px;
  }

  .marketplace-promotion-card b {
    font-size: 13px;
  }

  .marketplace-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .marketplace-filter-row {
    width: 100%;
  }

  .marketplace-filter-row button {
    min-height: 31px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .marketplace-company-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .company-directory-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-right: 10px;
  }

  .company-card-main {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  .company-directory-body h2 {
    font-size: 15px;
    line-height: 1.1;
  }

  .company-card-meta {
    font-size: 12px;
    gap: 5px;
  }

  .company-directory-logo-frame {
    width: 104px;
    height: 104px;
  }

  .company-card-status {
    font-size: 10px;
    padding: 4px 7px;
  }

  .company-card-actions {
    gap: 18px;
    min-width: 42px;
    padding-top: 10px;
  }

  .company-card-menu-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
  }

  .company-card-menu-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .company-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 9px;
    min-height: 106px;
    padding: 0 48px 0 0;
    margin-bottom: 12px;
  }

  .company-logo-frame {
    width: 96px;
    height: 106px;
  }

  .promotion-banner {
    min-height: 100px;
    margin-bottom: 12px;
  }

  .promotion-slide {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .promotion-slide img {
    width: 82px;
    height: 72px;
  }

  .promotion-slide small {
    font-size: 11px;
  }

  .promotion-slide strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .promotion-slide em {
    font-size: 18px;
  }

  .promotion-pizza-prices {
    gap: 4px;
  }

  .promotion-pizza-prices b {
    min-height: 23px;
    padding: 2px 6px;
    font-size: 11px;
  }

  .promotion-add-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0;
    border-radius: 12px;
  }

  .promotion-add-button::before {
    margin: 0;
    font-size: 22px;
  }

  .company-copy {
    gap: 5px;
    padding: 8px 0;
  }

  .company-hero h1 {
    font-size: 18px;
    line-height: 1.05;
  }

  .company-title-line {
    gap: 7px;
  }

  .rating-pill {
    font-size: 13px;
  }

  .company-hero p {
    font-size: 13px;
  }

  .company-info {
    gap: 6px;
  }

  .company-info span {
    font-size: 12px;
  }

  .company-info span + span {
    padding-left: 6px;
  }

  .status-pill {
    max-width: 100%;
    border-radius: 8px;
    font-size: 12px;
  }

  .share-link-button {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 38px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    border-radius: 12px;
  }

  .install-app-button {
    position: absolute;
    right: 7px;
    bottom: 46px;
    width: 38px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    border-radius: 12px;
  }

  .more-info-button {
    font-size: 12px;
    padding: 2px 0;
  }

  .hours-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .product-card {
    grid-template-columns: 86px 1fr;
    grid-template-rows: auto;
    min-height: 104px;
  }

  .product-card img {
    width: 86px;
    height: 100%;
    min-height: 104px;
    aspect-ratio: auto;
  }

  .product-body {
    min-width: 0;
    gap: 4px;
    padding: 8px;
  }

  .product-body h2 {
    min-height: auto;
    font-size: 13px;
    line-height: 1.18;
  }

  .product-body p {
    min-height: auto;
    font-size: 11px;
    line-height: 1.24;
  }

  .product-footer {
    align-items: center;
  }

  .product-footer button {
    min-width: 34px;
    width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .product-footer button::before {
    font-size: 22px;
  }

  .price {
    font-size: 12px;
  }

  .choice-group-head {
    grid-template-columns: 32px 1fr;
  }

  .choice-group-head em {
    grid-column: 2;
  }

  .choice-grid,
  .additional-group-list {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    overflow-x: auto;
  }

  .choice-card {
    gap: 8px;
    min-height: 58px;
    padding: 8px;
  }

  .choice-card strong {
    font-size: 12px;
  }

  .choice-card small {
    padding: 4px 8px;
    font-size: 11px;
  }

  .additional-group-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    overflow-x: visible;
  }

  .additional-row {
    min-height: 58px;
    padding: 8px 10px;
  }

  .additional-row > span {
    display: contents;
  }

  .additional-row strong {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .additional-row small {
    justify-self: start;
    padding: 4px 7px;
    font-size: 11px;
    line-height: 1;
  }

  .qty {
    flex: 0 0 auto;
    gap: 5px;
  }

  .qty button {
    width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 0;
    font-size: 16px;
    line-height: 1;
  }

  .qty strong {
    min-width: 20px;
    font-size: 13px;
  }

  .cart-dialog-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .item-dialog-head {
    padding: 14px;
  }

  .item-dialog-head h2 {
    font-size: 24px;
    line-height: 1;
  }

  .item-dialog-head p {
    font-size: 12px;
  }

  .additional-list {
    gap: 8px;
  }

  .additional-total {
    min-height: 48px;
    padding: 8px 10px;
  }

  .additional-total strong {
    font-size: 20px;
  }

  .checkout-panel {
    min-height: 0;
  }

  .checkout-steps {
    gap: 5px;
    padding-right: 34px;
  }

  .checkout-steps button {
    min-height: 44px;
    gap: 5px;
    padding: 8px 6px;
    font-size: 12px;
  }

  .checkout-steps button svg {
    width: 17px;
    height: 17px;
  }

  .checkout-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-navigation button {
    width: 100%;
    padding-inline: 10px;
  }

  .payment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-option {
    min-height: 54px;
    justify-content: flex-start;
  }

  .cart-product-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-product-line img {
    width: 72px;
    height: 72px;
  }

  .cart-product-actions {
    grid-column: 2;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
  }

  .account-fields {
    gap: 8px;
  }

  .cart-line-price {
    justify-self: end;
  }

  .order-summary-panel {
    position: static;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 13px;
  }

  .marketplace-top {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .marketplace-menu-button {
    width: 34px;
    min-height: 34px;
  }

  .marketplace-brand {
    font-size: 16px;
  }

  .marketplace-brand-mark {
    width: 28px;
    height: 28px;
  }

  .marketplace-location {
    max-width: 42px;
    padding-inline: 10px;
  }

  .marketplace-location span {
    display: none;
  }

  .marketplace-account {
    min-height: 34px;
    padding-inline: 12px;
  }

  .marketplace-tile-row {
    grid-auto-columns: 82px;
  }

  .marketplace-tile {
    font-size: 11px;
  }

  .marketplace-tile-art {
    font-size: 16px;
  }

  .topbar {
    gap: 10px;
    min-height: 54px;
    padding: 9px 10px;
  }

  .topbar button {
    padding-inline: 10px;
    min-height: 36px;
  }

  .topbar span {
    font-size: 11px;
  }

  main {
    width: calc(100% - 10px);
    margin-top: 6px;
  }

  .account-button {
    width: 42px;
    min-width: 42px;
    padding: 0 !important;
    justify-content: center;
  }

  .account-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .delivery-cart-bar {
    bottom: calc(6px + env(safe-area-inset-bottom));
    width: calc(100% - 12px);
    min-height: 66px;
    padding: 7px 8px;
  }

  .delivery-cart-summary strong {
    font-size: 17px;
  }

  .delivery-cart-summary span {
    font-size: 11px;
  }

  .delivery-cart-button {
    min-height: 48px;
    padding-inline: 12px;
  }

  .delivery-cart-button span {
    font-size: 12px;
  }

  .catalog-header input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .company-list-head h1 {
    font-size: 23px;
  }

  .company-list-head p {
    font-size: 12px;
  }

  .company-directory-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 0 8px 0 0;
  }

  .company-card-main {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 9px;
  }

  .company-directory-logo-frame {
    width: 86px;
    height: 86px;
  }

  .company-directory-body {
    gap: 5px;
    padding: 9px 0;
  }

  .company-directory-body h2 {
    font-size: 13px;
  }

  .company-card-meta {
    font-size: 11px;
    gap: 4px;
  }

  .open-company-button {
    min-height: 38px;
    font-size: 13px;
  }

  .delivery-cart-button svg {
    width: 20px;
    height: 20px;
  }

  .product-card {
    grid-template-columns: 78px 1fr;
    min-height: 98px;
  }

  .product-card img {
    width: 78px;
    min-height: 98px;
  }

  .product-footer {
    display: flex;
    gap: 6px;
  }

  .product-body {
    padding: 7px;
  }

  .product-body h2 {
    font-size: 12px;
  }

  .product-body p {
    font-size: 10.5px;
  }

  .price {
    font-size: 11px;
  }

  dialog {
    width: calc(100% - 4px);
  }

  .choice-grid,
  .additional-group-list {
    grid-template-columns: 1fr;
  }

  .additional-group-list {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  }

  .additional-row {
    grid-template-areas:
      "name name"
      "price qty";
    gap: 6px;
    padding: 8px;
  }

  .additional-row .qty button {
    width: 26px;
    height: 26px;
    min-height: 26px;
  }

  .additional-row .qty strong {
    min-width: 18px;
  }

  .choice-group {
    padding: 8px;
  }

  .choice-group-head {
    gap: 8px;
  }

  .choice-step {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .choice-group-head strong {
    font-size: 15px;
  }

  .choice-group-head span,
  .choice-group-head em {
    font-size: 10px;
  }

  .choice-card {
    min-height: 54px;
    padding: 7px;
  }

  .choice-card strong {
    font-size: 11.5px;
  }

  .choice-card small {
    padding: 4px 7px;
    font-size: 10.5px;
  }

  .choice-card input {
    width: 16px;
    height: 16px;
  }

  .item-dialog-head h2 {
    font-size: 21px;
  }

  .item-dialog-head p {
    font-size: 11px;
  }

  .prep-field textarea,
  .checkout-panel input,
  .checkout-panel textarea,
  .checkout-panel select {
    font-size: 13px;
  }

  .dialog-actions {
    gap: 7px;
  }

  .dialog-actions button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .company-hero {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 90px;
    padding-right: 42px;
  }

  .company-logo-frame {
    width: 76px;
    height: 90px;
  }

  .company-hero h1 {
    font-size: 16px;
  }

  .company-info span,
  .more-info-button,
  .status-pill {
    font-size: 10.5px;
  }

  .product-card {
    grid-template-columns: 70px 1fr;
    min-height: 92px;
  }

  .product-card img {
    width: 70px;
    min-height: 92px;
  }

  .additional-group-list {
    grid-template-columns: 1fr;
  }

  .additional-row {
    min-height: 52px;
  }

  .additional-row strong {
    font-size: 11px;
  }

  .additional-row small {
    font-size: 10px;
  }

  .qty button {
    width: 24px;
    height: 24px;
    min-height: 24px;
    font-size: 14px;
  }

  .qty strong {
    min-width: 16px;
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
