/* SI menu — add buttons, the cart, table service, toasts. Loaded in order after the files before it (see index.html). */
.card .add {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  display: grid;
  place-items: center;
  z-index: 2;
}
.card .add svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.card .add .q {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 17px;
}
.cart-bar {
  position: fixed;
  z-index: 31;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  width: calc(min(460px, 100%) - 32px);
  height: 54px;
  border-radius: 16px;
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  box-shadow: 0 12px 30px var(--shade);
  font-weight: 600;
  font-size: 15px;
  animation: pop 0.25s ease;
}
.cart-bar #cbLabel {
  flex: 1;
  text-align: start;
}
.cart-bar .cb-count {
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--on-accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.cart-bar #cbTotal {
  font-size: 19px;
}
@keyframes pop {
  from {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}
.app.has-cart .toast {
  bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom, 0px));
}
.app.has-cart {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 84px);
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
}
.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.stepper button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.stepper b {
  min-width: 26px;
  text-align: center;
  font-size: 18px;
}
.add-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.add-row .btn {
  margin-top: 0;
  flex: 1;
}
.cart-list {
  display: grid;
  gap: 8px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.cart-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.cart-item .ci {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-item .ci b {
  font-size: 14px;
  font-weight: 600;
}
.cart-item .ci span {
  font-size: 13px;
  color: var(--accent);
}
.cart-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.cart-sum b {
  color: var(--accent);
  font-size: 24px;
}
.table-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 4px;
}
.table-field label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.table-field input {
  width: 90px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  outline: none;
}
.table-field input:focus {
  border-color: var(--accent);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
/* an odd number of items (some switched off): the last one fills its line, no hole beside it */
.svc-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 108px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}
.svc svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  stroke-width: 1.6;
}
.svc[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}
.sent-box {
  margin-top: 14px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  opacity: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 70;
  transition: 0.25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.body-lock {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .welcome:not(.greeting) .w-center,
  .welcome:not(.greeting) .w-langs,
  .welcome.greeting .w-greet > *,
  .welcome.greeting .w-greet > :nth-child(n),
  .panel {
    animation: none;
  }
  .sheet,
  .welcome {
    transition: none;
  }
}
