/* SI menu — offers, photos, table, banners, allergens, loyalty, display switches, the waiter button. Loaded in order after the files before it (see index.html). */
/* live system additions */
.ku-font {
  font-family: var(--f-ku);
}
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt14 {
  margin-top: 14px;
}
.muted {
  color: var(--ink-soft);
  font-size: 13px;
}
.ar-inline {
  font-family: var(--f-ar);
  letter-spacing: 0;
  text-transform: none;
}
.social {
  font-size: 16px;
}
.contact a.tel {
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.tag.sold {
  background: var(--ink-soft);
  color: var(--bg);
}
.tag.sale {
  background: var(--ink);
  color: var(--bg);
}
/* the price before the offer, struck through */
s.was {
  font-size: 0.8em;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration-thickness: 1.5px;
}
.slide .pill s.was {
  color: inherit;
  opacity: 0.7;
}
.card.off .nm,
.card.off .price {
  opacity: 0.55;
}
.sold-txt {
  color: var(--heart);
  margin: 8px 0 0;
}
.btn:disabled,
.svc:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.svc {
  font: inherit;
}
.svc.sent {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.svc small {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}
.form-msg {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  border-radius: 12px;
  padding: 10px 12px;
}
.form-msg.err {
  background: color-mix(in srgb, var(--heart) 14%, var(--surface));
  color: var(--ink);
  border: 1px solid var(--heart);
}
.form-msg.ok {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid var(--accent);
}
.order-pill {
  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: 50px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  box-shadow: 0 12px 30px var(--shade);
  font-size: 14px;
  animation: pop 0.25s ease;
}
.order-pill b {
  font-weight: 600;
}
.order-pill span:not(.dot) {
  flex: 1;
  text-align: start;
  color: var(--accent);
}
.order-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bg);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: ping 1.6s infinite;
}
.order-pill .dot.st-paid,
.order-pill .dot.st-served {
  animation: none;
}
.order-pill .dot.st-cancelled {
  background: var(--ink-soft);
  animation: none;
}
@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
}
.app.has-pill {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 80px);
}
.orders-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.oc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.oc-head span {
  color: var(--accent);
  font-size: 17px;
}
.steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.steps li {
  position: relative;
  padding-top: 14px;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}
.steps li::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.steps li.done {
  color: var(--ink);
  font-weight: 600;
}
.steps li.done::before {
  background: var(--accent-bg);
}

/* dish photos and descriptions (uploaded from the dashboard) */
.card.has-ph {
  padding-top: 0;
  flex-basis: 162px;
}
.card .cph {
  margin: 0 -12px 8px;
  height: 112px;
  border-radius: 19px 19px 0 0;
  overflow: hidden;
  background: var(--surface-2);
}
.card .cph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card.has-ph .fav {
  top: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
}
.card.has-ph .nm {
  padding-inline-end: 0;
}
.grid .card.has-ph .cph {
  height: 120px;
}
.desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

/* the table is fixed by its QR */
.table-field.fixed {
  justify-content: space-between;
}
.table-field.fixed span {
  font-size: 14px;
}
.table-field.fixed b {
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.table-field.warn {
  font-size: 13px;
  line-height: 1.7;
  border-color: var(--accent);
  color: var(--ink);
}
.table-tag {
  cursor: default;
}

/* closed banner, Wi-Fi chip, allergens, line notes, upsell, ETA */
.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.notice:empty {
  display: none;
}
.closed-banner {
  flex: 1 1 100%;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  text-align: center;
}
.wifi-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
.als {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.al {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.al.kcal {
  color: var(--accent);
}
.cart-item .ln {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.ups {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.up {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.up img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.up div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.up .num {
  color: var(--accent);
  font-size: 13px;
}
.up .small-add {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
}
.eta {
  font-size: 13px;
  color: var(--accent);
  margin: 6px 0 0;
}

/* loyalty points */
.pts {
  text-align: center;
  margin: 12px 0;
}
.pts .ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: grid;
  place-content: center;
}
.pts .ring b {
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.pts .ring small {
  color: var(--ink-soft);
  font-size: 12px;
}
.pts p {
  margin: 6px 0 10px;
  font-size: 14px;
}
.pts .bar {
  height: 8px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pts .bar i {
  display: block;
  height: 100%;
  background: var(--accent-bg);
  width: 0;
  transition: width 0.5s;
}

/* Display switches (Settings → Display in the dashboard): each hidden part gets a no-<key> class */
.no-search .search,
.no-promo .promo,
.no-chips .chips-bar,
.no-footer .foot,
.no-themeBtn #modeBtn,
.no-svc #svcBtn,
.no-prices .card .price,
.no-prices .item-meta .p,
.no-prices .slide .pill,
.no-prices .up .num,
.no-secondName .card .sub,
.no-sigBadge .tag:not(.sold),
.no-sigBadge .sig-txt,
.no-favs .fav,
.no-favs .nav [data-act='favs'],
.no-navCats .nav [data-act='cats'],
.no-navBook .nav [data-act='book'],
.no-booking .nav [data-act='book'],
.no-navRate .nav [data-act='rate'],
.no-navContact .nav [data-act='contact'],
.no-nav .nav,
.no-photos .item-photo,
.no-desc .sheet .desc,
.no-options .note-box,
.no-allergens .al:not(.kcal),
.no-kcal .al.kcal,
.no-otherNames .sheet .names,
.no-orderNotes .cart-notes,
.no-myOrders #orderPill,
.no-eta .eta {
  display: none !important;
}
.no-sigBadge .card.sig {
  border-color: var(--line);
}
.w-langs.in-sheet {
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
}
.w-langs.in-sheet button {
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
}
.app.no-nav {
  --nav-h: 0px;
}

/* "Call waiter": a labelled gold button above the bottom bar, so customers can't mistake it for a notification bell */
.svc-fab {
  position: fixed;
  z-index: 32;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  inset-inline-start: max(16px, calc((100vw - 460px) / 2 + 16px));
  height: 48px;
  padding-inline: 14px 18px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 26px var(--shade);
  animation: fab-in 0.35s ease;
}
.svc-fab .i {
  width: 22px;
  height: 22px;
  animation: ring 1.2s ease 0.8s 2;
  transform-origin: 50% 10%;
}
.app.has-cart .svc-fab,
.app.has-pill .svc-fab {
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 74px);
}
.app.has-call {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 72px);
}
.app.has-call.has-cart,
.app.has-call.has-pill {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 136px);
}
@keyframes fab-in {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}
@keyframes ring {
  0%,
  100% {
    transform: rotate(0);
  }
  15%,
  45% {
    transform: rotate(14deg);
  }
  30%,
  60% {
    transform: rotate(-14deg);
  }
  75% {
    transform: rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-fab,
  .svc-fab .i {
    animation: none;
  }
}
