.commerce-menu {
  padding-block: 50px 100px;
  min-height: 70vh;
}
.commerce-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 55px;
  margin-bottom: 35px;
}
.commerce-heading h1 {
  font-size: clamp(3.25rem, 5.8vw, 5.6rem);
  margin-bottom: 18px;
}
.commerce-heading p {
  max-width: 53ch;
  font-size: 15px;
}
.commerce-heading #pickup-state {
  font-size: 12px;
  padding-block: 12px;
  /* Pickup, delivery and payment fit one or two lines, not a narrow column. */
  max-width: 44ch;
  color: var(--green);
  flex-shrink: 0;
}
.menu-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.commerce-search {
  display: grid;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  width: min(440px, 100%);
}
.commerce-search input,
.commerce-dialog input,
.commerce-dialog textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #9da99c;
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
.commerce-search input {
  font-size: 14px;
}
.commerce-search input::placeholder {
  color: #667063;
}
.commerce-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: var(--header-height);
  padding: 18px 0;
  background: var(--paper);
  z-index: 15;
  min-height: 82px;
  margin-top: 15px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  scroll-padding-inline: 24px;
  overscroll-behavior-x: contain;
}
.commerce-categories::-webkit-scrollbar {
  display: none;
}
.commerce-categories a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  flex-shrink: 0;
}
.commerce-categories a:hover,
.commerce-categories a[aria-current='true'] {
  background: var(--green);
  color: white;
  text-decoration: none;
  border-color: var(--green);
}
.commerce-section {
  scroll-margin-top: calc(var(--header-height) + 105px);
  margin-block: 38px 56px;
}
.commerce-section h2 {
  font-size: 28px;
  margin-bottom: 25px;
}
/* In search results, the place a shelf belongs to (Café or Supermarket) beside its name. */
.commerce-section-place {
  display: inline-block;
  margin-inline-start: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}
/* Offers (owner, 2 Nov 2026): combos at one price, first on the menu. The poster carries the
   offer's own art; the card says what is in it, the price against the items alone, and Add. */
.commerce-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.commerce-offer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.commerce-offer img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1199 / 1312;
  object-fit: cover;
  background: var(--crema-light);
}
.commerce-offer.is-unavailable img {
  opacity: 0.6;
}
.commerce-offer-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.commerce-offer h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.commerce-offer-tagline {
  color: var(--muted);
  font-size: 14px;
}
.commerce-offer-parts {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}
.commerce-offer-parts li + li::before {
  content: '+ ';
  color: var(--muted);
}
.commerce-offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.commerce-offer-price strong {
  font-size: 24px;
  color: var(--green);
}
.commerce-offer-price s {
  color: var(--muted);
  font-size: 14px;
}
.commerce-offer-price .tag {
  background: var(--matcha-light);
  color: var(--green);
}
.commerce-offer .button {
  width: 100%;
  min-height: 48px;
}
.cart-offer-saving {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  color: var(--green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.commerce-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 23px;
}
.commerce-product {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.product-explore {
  display: block;
  padding: 0;
  width: 100%;
  border: 0;
  background: none;
  text-align: start;
  color: inherit;
  border-radius: 10px;
  position: relative;
}
.product-image-wrap {
  display: block;
  position: relative;
  background: #e9ede5;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 10px;
}
.commerce-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}
.product-explore:hover img {
  transform: scale(1.04);
}
.commerce-product-copy {
  display: block;
  margin-top: 15px;
}
.commerce-product h3 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.commerce-product p {
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.55;
  color: var(--muted);
}
.commerce-product strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-top: 9px;
  color: var(--green);
}
/* Price, an optional tag and the add (or details) mark on one line. The whole card is the
   target; the mark only says what a tap does. */
.product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
}
.commerce-product .product-meta strong {
  margin: 0;
}
.product-meta .card-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-inline-start: auto;
  border: 1px solid #b6c2b2;
  border-radius: 5px;
  color: var(--green);
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.product-explore:hover .card-plus,
.product-explore:focus-visible .card-plus {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.card-plus svg {
  width: 18px;
  height: 18px;
}
.sold-out-label {
  line-height: 1.5;
}
.product-explore:hover {
  text-decoration: none;
}
.commerce-product.is-unavailable .product-image-wrap {
  background: #eceee7;
}
.commerce-product.is-unavailable img {
  opacity: 0.84;
}
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--green);
}
.product-image-placeholder .icon {
  width: 38%;
  height: 38%;
  opacity: 0.42;
  stroke-width: 1.2;
}
.commerce-basket-bar {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  inset-inline: 0;
  margin-inline: auto;
  width: min(520px, calc(100% - 32px));
  z-index: 25;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  min-height: 58px;
  box-shadow: 0 6px 24px #152a2230;
}
.commerce-dialog {
  border: 0;
  border-radius: 14px;
  width: min(920px, calc(100% - 48px));
  max-height: 90dvh;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-y: auto;
  box-shadow: 0 18px 65px #071d163b;
  overscroll-behavior: contain;
}
.commerce-dialog::backdrop {
  background: #101e17a6;
}
.dialog-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 14px #16322515;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5ebdf;
  padding: 18px;
}
.product-photo img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}
.product-detail-layout form {
  padding: 55px 32px 30px;
  min-width: 0;
}
.product-dialog h2 {
  font-size: 35px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.product-canonical {
  font-size: 15px;
  margin-top: 9px;
}
.product-tagline {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--green);
  margin-top: 26px;
}
.product-tagline:empty {
  display: none;
}
.product-description {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 14px;
}
.product-price-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-block: 24px;
  padding-block: 15px;
  border-block: 1px solid var(--line);
}
.product-price-row strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.product-price-row span {
  font-size: 12px;
  line-height: 1.5;
}
.product-purchase {
  display: flex;
  align-items: end;
  gap: 12px;
  position: sticky;
  bottom: -1px;
  background: var(--paper);
  padding-block: 12px;
  z-index: 2;
}
.commerce-dialog label {
  font-size: 12px;
  font-weight: 600;
  display: grid;
  gap: 7px;
}
/* Name and mobile: each label sits nearer its own field than the field above it. */
#details-fields {
  display: grid;
  gap: var(--space-4);
}
.product-purchase {
  align-items: center;
}
/* The basket's "−  1  +" stepper, in the product dialog too. */
.product-stepper {
  margin: 0;
  flex-shrink: 0;
}
.commerce-dialog .product-stepper input {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.product-stepper input::-webkit-outer-spin-button,
.product-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.basket-quantity button:disabled {
  color: #9da99c;
  background: transparent;
  cursor: not-allowed;
}
.commerce-primary {
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  padding: 12px 18px;
  background: var(--green);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.commerce-primary:disabled {
  background: #d7ddd2;
  color: #4f5c4d;
  cursor: not-allowed;
}
.commerce-primary[hidden] {
  display: none;
}
.product-purchase .commerce-primary {
  flex: 1;
}
.commerce-option {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  min-height: 48px;
  padding-block: 8px;
}
.commerce-option input {
  width: 21px;
  height: 21px;
  min-height: 21px;
  accent-color: var(--green);
}
.commerce-option.is-unavailable {
  color: var(--muted);
}

.commerce-option-group {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.commerce-option-group legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
}
.commerce-option-rule {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
#product-modifiers h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
#product-modifiers:empty {
  display: none;
}
.product-message {
  font-size: 12px;
  line-height: 1.65;
}
.product-message:empty {
  display: none;
}
.product-detail-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.product-detail-links .text-link {
  font-size: 12px;
}
.basket-dialog {
  width: min(530px, calc(100% - 32px));
  padding: 45px 28px 28px;
}
.basket-dialog h2 {
  font-size: 28px;
  padding-inline-end: 30px;
  margin: 0 0 13px;
}
.basket-dialog > p {
  font-size: 13px;
}
.basket-dialog form {
  display: grid;
  gap: 16px;
}
.commerce-cart-line {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.commerce-cart-line > div {
  min-width: 0;
}
.commerce-cart-line strong,
.commerce-cart-line small {
  display: block;
}
.commerce-cart-line small {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.commerce-remove {
  border: 1px solid #a9b7a4;
  background: transparent;
  color: var(--green);
  border-radius: 5px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
}
.basket-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.basket-quantity button {
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 4px;
}
.basket-quantity svg {
  width: 16px;
  height: 16px;
}
.basket-quantity span {
  min-width: 25px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.commerce-total {
  font-size: 24px;
  font-weight: 700;
  padding-block: 24px;
  color: var(--green);
}
.commerce-message {
  margin-block: 25px;
  color: var(--muted);
}
.commerce-message:empty {
  display: none;
}
.menu-feedback > .button {
  margin-bottom: 25px;
}
/* The placed order, centred at reading width under the menu heading. */
.commerce-confirmation {
  display: grid;
  justify-items: center;
  gap: 4px;
  max-width: 600px;
  margin-inline: auto;
  padding: 28px;
  background: var(--green-light);
  margin-block: 28px;
  border-radius: 10px;
  text-align: center;
  scroll-margin-top: calc(var(--header-height) + 105px);
}
.commerce-confirmation[hidden] {
  display: none;
}
.commerce-confirmation h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.commerce-confirmation p {
  font-size: 14px;
  margin-top: 8px;
}
#checkout-message {
  color: var(--error);
  font-size: 13px;
  line-height: 1.6;
}
.commerce-menu[aria-busy='true'] {
  cursor: progress;
}
body:has(dialog[open]) {
  overflow: hidden;
}
/* The basket bar would float over the open checkout's own footer. */
body:has(dialog[open]) .commerce-basket-bar {
  visibility: hidden;
}
@media (min-width: 1500px) {
  .commerce-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .commerce-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 22px;
  }
  .commerce-heading {
    gap: 35px;
  }
  .product-dialog h2 {
    font-size: 29px;
  }
  .product-detail-layout form {
    padding-inline: 24px;
  }
}
@media (max-width: 760px) {
  .commerce-menu {
    padding-block: 28px 85px;
  }
  .commerce-heading {
    display: block;
    margin-bottom: 23px;
  }
  .commerce-heading h1 {
    font-size: 45px;
    margin-bottom: 14px;
  }
  .commerce-heading p {
    font-size: 13px;
  }
  .commerce-heading #pickup-state {
    margin-top: 15px;
    padding: 0;
    font-size: 12px;
    max-width: none;
  }
  .menu-tools {
    display: block;
  }
  .menu-tools > .text-link {
    display: none;
  }
  .commerce-search {
    width: 100%;
    font-size: 12px;
  }
  .commerce-search input {
    font-size: 14px;
    min-height: 46px;
  }
  .commerce-categories {
    margin-top: 10px;
    margin-inline: -20px;
    padding: 12px 20px;
    min-height: 70px;
    gap: 6px;
  }
  .commerce-categories a {
    font-size: 12px;
    padding-inline: 12px;
  }
  .commerce-section {
    margin-block: 27px 38px;
    scroll-margin-top: calc(var(--header-height) + 87px);
  }
  .commerce-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .commerce-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .commerce-product h3 {
    font-size: 14px;
    line-height: 1.45;
  }
  .commerce-product p {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 4px;
  }
  .commerce-product strong {
    font-size: 13px;
  }
  .commerce-product-copy {
    margin-top: 12px;
  }
  .product-meta .card-plus {
    width: 32px;
    height: 32px;
  }
  .commerce-dialog.product-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    inset: auto 0 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
  }
  .product-detail-layout {
    display: block;
    min-height: 0;
  }
  .product-photo {
    height: 260px;
    padding: 12px;
  }
  .product-photo img {
    height: 100%;
    width: 100%;
  }
  .product-detail-layout form {
    padding: 24px 22px 22px;
  }
  .product-dialog h2 {
    font-size: 31px;
  }
  .product-canonical {
    font-size: 14px;
    margin-top: 7px;
  }
  .product-tagline {
    font-size: 20px;
    margin-top: 19px;
  }
  .product-description {
    font-size: 13px;
    margin-top: 11px;
  }
  .product-price-row {
    margin-block: 16px;
    padding-block: 13px;
  }
  .product-purchase {
    margin-top: 10px;
  }
  .product-purchase .commerce-primary {
    font-size: 13px;
    padding-inline: 10px;
  }
  .basket-dialog {
    padding: 50px 22px 25px;
    width: calc(100% - 20px);
    max-height: 94dvh;
  }
  .basket-dialog h2 {
    font-size: 25px;
  }
  .commerce-cart-line {
    font-size: 13px;
  }
  .commerce-basket-bar {
    font-size: 12px;
    bottom: 12px;
    min-height: 55px;
  }
  .product-message {
    font-size: 12px;
  }
  .dialog-close {
    inset-block-start: 10px;
    inset-inline-end: 10px;
  }
  html[lang='ar'] .commerce-heading h1 {
    font-size: 43px;
  }
  html[lang='ar'] .commerce-product h3 {
    font-size: 14px;
    line-height: 1.7;
  }
  html[lang='ar'] .product-dialog h2 {
    line-height: 1.6;
  }
}
@media (max-width: 359px) {
  .commerce-categories {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .commerce-product-grid {
    gap: 23px 12px;
  }
  .commerce-product h3 {
    font-size: 13px;
  }
  .commerce-product p {
    font-size: 12px;
  }
  .product-photo {
    height: 225px;
  }
  .product-detail-layout form {
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .commerce-product img {
    transition: none;
  }
  .product-explore:hover img {
    transform: none;
  }
}
/* Departments are the one switch between the store's sections: a segmented control, so they
   read as a choice of place, while categories below are pills of the same family. */
.commerce-departments {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  margin-block: 18px 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  scrollbar-width: none;
}
.commerce-departments[hidden] {
  display: none;
}
.commerce-departments button {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 88px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.commerce-departments button:hover {
  background: var(--green-light);
}
.commerce-departments button[aria-pressed='true'] {
  background: var(--green);
  color: white;
}
.commerce-brands {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 24px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.commerce-brands select {
  min-height: 44px;
  min-width: min(280px, 100%);
  padding: 9px 40px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230e3b2e' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  color: var(--green);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  appearance: none;
}
html[dir='rtl'] .commerce-brands select {
  padding: 9px 16px 9px 40px;
  background-position: left 16px center;
}
@media (max-width: 760px) {
  .commerce-departments {
    display: flex;
  }
  .commerce-departments button {
    flex: 1 0 auto;
    min-width: 0;
    padding-inline: 14px;
  }
  .commerce-brands select {
    flex: 1;
    min-width: 0;
  }
}
.checkout-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.checkout-group legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 7px;
}
.commerce-dialog .checkout-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #9da99c;
  border-radius: 6px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.commerce-dialog .checkout-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: var(--green-light);
}
.commerce-dialog .checkout-option input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex-shrink: 0;
  padding: 0;
  accent-color: var(--green);
}
.checkout-option span {
  display: grid;
  gap: 2px;
}
.checkout-option .option-caption {
  display: flex;
  align-items: center;
  gap: 10px;
}
.option-caption .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--green);
}
.checkout-option small {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.checkout-single {
  font-size: 14px;
  margin: 0;
}
.checkout-single span {
  color: var(--muted);
}
.checkout-delivery {
  display: grid;
  gap: 16px;
}
.checkout-delivery[hidden] {
  display: none;
}
.checkout-areas {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.checkout-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.checkout-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.checkout-recipient summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
}
.checkout-recipient[open] {
  display: grid;
  gap: 14px;
}
#checkout-message {
  color: var(--ink);
}
#checkout-message.is-error {
  color: var(--error);
}
.commerce-dialog [aria-invalid='true'] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}
.commerce-confirmation h2:focus {
  outline: none;
}
.commerce-confirmation .button {
  margin-top: 12px;
}
.product-detail-links .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ------------------------------------------------------------------
   Search, empty results and the stepped checkout (2026-10).
   ------------------------------------------------------------------ */
.search-field {
  position: relative;
  display: block;
}
.search-field .icon {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.commerce-search .search-field input {
  padding-inline-start: 44px;
}
#menu-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  margin-block: var(--space-5);
}
.commerce-basket-bar .icon {
  width: 22px;
  height: 22px;
}
.commerce-basket-bar span:nth-child(2) {
  margin-inline-end: auto;
}
.product-price-row .tag {
  margin-inline-start: var(--space-2);
}

.checkout-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.checkout-dialog[open] {
  display: flex;
}
.checkout-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-block-end: 1px solid var(--line);
  background: var(--paper);
}
/* Only the title row shares its line with the close button; the steps below use the full
   width, so each step stays a full touch target at 320 px. */
.checkout-head h2 {
  grid-column: 2;
  font-size: 24px;
  margin: 0;
  padding-inline-end: 56px;
}
.checkout-back {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target);
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.checkout-back .icon {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}
html[dir='rtl'] .checkout-back .icon {
  transform: none;
}
.checkout-back[hidden] + h2 {
  grid-column: 1 / -1;
}
.checkout-head .dialog-close {
  inset-block-start: 18px;
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--green);
}
.checkout-step-label {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}
/* Focus lands here only by script, when a step opens; it is not a control, so no ring. */
.checkout-step-label:focus,
.checkout-step-label:focus-visible {
  outline: none;
}
.checkout-steps {
  grid-column: 1 / -1;
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
}
.checkout-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
}
.checkout-steps li::before {
  content: '';
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line);
}
.checkout-steps li.is-done::before,
.checkout-steps li.is-current::before {
  background: var(--green);
}
.checkout-steps li.is-current {
  color: var(--ink);
}
/* A label wraps onto a second line on a phone rather than being cut ("Pickup or / delivery"). */
.checkout-steps span,
.checkout-step-link {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
}
/* A button centres its label in its 44px target: start it at the top, level with the other steps. */
.checkout-step-link {
  display: flex;
  align-items: flex-start;
  min-height: var(--target);
  margin-block-start: -12px;
  padding: 12px 0 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  text-align: start;
}
/* A column, so the footer sits at the bottom of a full-height phone dialog, not mid-screen. */
.checkout-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.checkout-notices {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) 0;
}
.checkout-notices:empty {
  display: none;
}
.checkout-identity {
  padding: var(--space-4) var(--space-5) 0;
}
.checkout-dialog form#pickup-form {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
.checkout-step {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.checkout-step-title {
  font-size: 18px;
}
.checkout-lines .commerce-cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: var(--space-3);
  padding-block: var(--space-4);
}
.checkout-lines .commerce-cart-line:first-child {
  padding-block-start: 0;
}
.cart-line-photo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-s);
  background: #ecefe8;
}
.cart-line-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.cart-line-detail .tag {
  justify-self: start;
}
.cart-line-meta {
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cart-line-actions {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.cart-line-actions .basket-quantity {
  margin: 0;
}
.basket-quantity button {
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  color: var(--green);
}
.commerce-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: var(--line);
}
.commerce-remove .icon {
  width: 18px;
  height: 18px;
}
.checkout-choice {
  display: grid;
  gap: var(--space-3);
}
.checkout-group {
  margin: 0;
}
.commerce-dialog .checkout-option {
  min-height: 56px;
}
.checkout-pickup-info p,
.checkout-pickup-only p {
  color: var(--ink);
}
.checkout-pickup-info {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--green-light);
  font-size: var(--text-s);
}
.checkout-note.is-error {
  color: var(--error);
}
.checkout-signed {
  font-size: var(--text-s);
  color: var(--ink);
}
.checkout-review {
  display: grid;
  gap: var(--space-4);
}
.review-lines {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-3);
  display: grid;
  gap: var(--space-2);
  border-block-end: 1px solid var(--line);
  font-size: var(--text-s);
}
.review-lines li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.review-lines li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-block-end: var(--space-3);
  border-block-end: 1px solid var(--line);
  font-size: var(--text-s);
}
.review-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.review-row > .text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding-inline: var(--space-2);
  margin-inline-end: calc(-1 * var(--space-2));
}
.review-label {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 700;
}
.review-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  font-size: var(--text-s);
}
.review-totals dt {
  color: var(--muted);
}
.review-totals dd {
  margin: 0;
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.review-totals .is-total {
  font-size: var(--text-l);
  font-weight: 800;
  color: var(--green);
}
.review-totals dt:nth-last-of-type(1) {
  color: var(--ink);
  font-weight: 800;
  align-self: center;
}
.checkout-foot {
  position: sticky;
  inset-block-end: 0;
  margin-block-start: auto;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5) max(var(--space-4), env(safe-area-inset-bottom));
  background: var(--paper);
  border-block-start: 1px solid var(--line);
}
.checkout-foot .commerce-total {
  padding: 0;
  font-size: var(--text-m);
}
.checkout-foot .commerce-total:empty {
  display: none;
}
.checkout-foot .commerce-primary {
  width: 100%;
}
.checkout-foot #checkout-message:empty {
  display: none;
}
#checkout-message:not(.is-error) {
  color: var(--muted);
}
.commerce-confirmation .state-art {
  width: 120px;
  height: 120px;
}

@media (max-width: 760px) {
  .checkout-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .checkout-head {
    padding: var(--space-4) 20px var(--space-3);
  }
  .checkout-head h2 {
    font-size: 21px;
  }
  .checkout-head .dialog-close {
    inset-block-start: 12px;
    inset-inline-end: 12px;
  }
  .checkout-steps li {
    font-size: 12px;
  }
  .checkout-step,
  .checkout-notices,
  .checkout-identity {
    padding-inline: 20px;
  }
  .checkout-foot {
    padding-inline: 20px;
  }
  .checkout-lines .commerce-cart-line {
    grid-template-columns: 56px 1fr auto;
  }
  .cart-line-photo {
    width: 56px;
    height: 56px;
  }
}
/* The step heading already names the choice; the legend stays for screen readers. */
.checkout-step .checkout-group legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* "Use points" on the review step is its own question, so its legend is shown. */
.checkout-step .review-points legend {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  font-size: var(--text-s);
  font-weight: 800;
  color: var(--ink);
}

/* The menu error carries the connection illustration beside its message. */
.menu-feedback[data-state='error'] {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  column-gap: 16px;
}
.menu-feedback[data-state='error']::before {
  content: '';
  grid-row: span 2;
  width: 72px;
  height: 72px;
  background: url(/assets/editorial/connection-error.webp) center / contain no-repeat;
}
.menu-feedback[data-state='error'] > .button {
  justify-self: start;
}

/* A field's own error, directly under it. */
.field-error {
  margin: -4px 0 0;
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
/* The offer to verify, after "continue without an account": one inset row. */
.checkout-identity {
  margin: var(--space-4) var(--space-5) 0;
}
/* Inside the checkout dialog the WhatsApp check is part of the step, not a card in a card. */
.checkout-dialog .checkout-identity {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.checkout-dialog .checkout-identity:has(.checkout-verify-row) {
  padding: 12px 14px;
  border-radius: 5px;
  background: var(--green-light);
}
.checkout-verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkout-verify-row > .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--green);
}
.checkout-verify-row p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.checkout-verify-row .button {
  flex-shrink: 0;
}
/* An empty basket shows only its own state panel. */
.checkout-dialog.is-empty .checkout-step-label,
.checkout-dialog.is-empty .checkout-steps,
.checkout-dialog.is-empty .checkout-step-title,
.checkout-dialog.is-empty .checkout-foot {
  display: none;
}
@media (max-width: 760px) {
  .checkout-identity {
    margin-inline: 20px;
  }
}
/* The search field's clear button is the site's own close icon, never the browser's. */
#menu-search::-webkit-search-cancel-button,
#menu-search::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.commerce-search .search-field input {
  padding-inline-end: 48px;
}
.search-clear {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 2px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--muted);
}
.search-clear[hidden] {
  display: none;
}
.search-clear:hover {
  color: var(--green);
}
.search-clear .icon {
  width: 18px;
  height: 18px;
}
/* With no results the category rail has nothing to show and takes no space. */
.commerce-categories:empty {
  display: none;
}
/* The WhatsApp updates box in the checkout (owner's switch), styled as on the order page. */
.checkout-consent {
  display: grid;
  gap: 6px;
}
.checkout-consent .order-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
.checkout-consent .order-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--green);
}
.checkout-consent .order-consent input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
