:root {
  --store-gutter: clamp(12px, 2.2vw, 32px);
}

.kiosk {
  grid-template-columns: 190px minmax(0, 1fr) 340px;
  max-width: 1460px;
  width: min(100%, calc(100vw - (2 * var(--store-gutter))));
}

.catalog {
  padding: 16px;
}

.checkout-dialog {
  max-width: 1080px;
  width: min(1080px, calc(100vw - 40px));
}

.checkout-dialog .checkout-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.02;
}

.checkout-dialog .checkout-section {
  margin-top: 12px;
  padding: 14px;
}

.checkout-cart-summary {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.checkout-cart-summary > header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.checkout-cart-summary h3 {
  font-size: 18px;
  margin: 2px 0 0;
}

.checkout-cart-summary > header > span {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.checkout-cart-summary .cart-lite-lines {
  margin-top: 0;
}

.checkout-cart-summary .cart-lite-line {
  background: #fff;
  padding: 8px 10px;
}

.delivery-map-preview.is-collapsed {
  background: #fff;
  padding: 9px 10px;
}

.delivery-map-preview.is-collapsed .delivery-map-preview-head {
  align-items: center;
}

.delivery-map-preview-head button {
  background: #111827;
  border-color: #111827;
  color: #fff;
  min-height: 40px;
}

.delivery-map-preview.is-expanded {
  padding: 10px;
}

@media (max-width: 1240px) {
  .kiosk {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body {
    background: #fff;
  }

  .kiosk {
    border: 0;
  }

  .side-nav {
    gap: 6px;
    padding: 8px 10px 7px;
  }

  .brand {
    gap: 9px;
    min-height: 40px;
  }

  .brand .mark {
    height: 38px;
    width: 38px;
  }

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

  .brand span {
    display: none;
  }

  .brand-powered {
    font-size: 9px;
    margin-top: 0;
  }

  .categories {
    gap: 5px;
    margin: 0;
    padding: 2px 0;
    scrollbar-width: none;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  .categories button {
    min-height: 36px;
    min-width: auto;
    padding: 0 12px;
  }

  .catalog {
    padding: 9px 10px 12px;
  }

  .topbar {
    margin-bottom: 7px;
  }

  .step {
    min-height: 30px;
    padding: 0 8px;
  }

  .fulfilment-summary {
    min-height: 48px;
    padding: 7px 9px;
  }

  .promo-card {
    padding: 7px 10px;
  }

  .menu-grid {
    gap: 8px;
  }

  .menu-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 132px;
  }

  .menu-card .image-button {
    height: 100%;
    min-height: 132px;
  }

  .menu-card-body {
    gap: 6px;
    grid-template-rows: 1fr auto;
    min-width: 0;
    padding: 10px;
  }

  .menu-card h3 {
    font-size: 17px;
    line-height: 1.1;
    margin: 2px 0 4px;
  }

  .menu-card p:not(.category-label):not(.unavailable-note) {
    display: -webkit-box;
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .menu-card .badges {
    display: none;
  }

  .menu-card footer strong {
    font-size: 18px;
  }

  .menu-card footer button {
    min-height: 38px;
    padding: 0 11px;
  }

  .checkout-dialog {
    width: calc(100vw - 8px);
  }

  .checkout-dialog .checkout-head h2 {
    font-size: 28px;
  }

  .checkout-dialog .checkout-section {
    margin-top: 10px;
    padding: 12px;
  }

  .delivery-map-preview-head {
    align-items: center;
    flex-direction: row;
  }

  .delivery-map-preview-head button {
    width: auto;
  }
}

@media (max-width: 560px) {
  .menu-card {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 122px;
  }

  .menu-card .image-button {
    min-height: 122px;
  }

  .menu-card-body {
    padding: 9px;
  }

  .menu-card h3 {
    font-size: 16px;
  }

  .menu-card p:not(.category-label):not(.unavailable-note) {
    -webkit-line-clamp: 1;
  }

  .menu-card footer {
    gap: 8px;
  }

  .menu-card footer strong {
    font-size: 17px;
  }

  .menu-card footer button {
    min-height: 36px;
    padding: 0 9px;
  }

  .checkout-modal {
    align-items: flex-end;
    padding: 4px;
  }

  .checkout-dialog {
    border-radius: 12px 12px 0 0;
    max-height: calc(100svh - 4px);
    padding: 12px;
  }

  .checkout-dialog .checkout-head h2 {
    font-size: 25px;
  }

  .checkout-cart-summary {
    padding: 10px;
  }

  .checkout-cart-summary .cart-lite-line p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .delivery-address-grid {
    grid-template-columns: minmax(0, 1fr) 106px;
  }

  .delivery-map-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-map-preview-head button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
