/* Guest login overlay - shared by storefront templates */
.sf-auth {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 22, 30, 0.45);
}
.sf-auth.is-open { display: flex; }
.sf-session-ended {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: calc(100% - 24px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #272b42;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.sf-auth__panel {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  color: #272b42;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 28px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
.sf-auth__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sf-auth__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.sf-auth__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f2f0ec;
  color: #272b42;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.sf-auth__intro { margin: 0 0 14px; color: #6d7185; }
.sf-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.sf-auth__card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
}
.sf-auth__card--tg { background: #229ed9; }
.sf-auth__card--wa { background: #25d366; }
.sf-auth__card-title { font-weight: 700; }
.sf-auth__card-hint { font-size: 0.85rem; opacity: 0.9; }
.sf-auth__steps {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  color: #4a4e63;
}
.sf-auth__status { margin: 0; color: #6d7185; font-size: 0.9rem; }
.sf-auth__warn {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6e5;
  color: #6a4b12;
}
.sf-auth__account { margin: 0 0 16px; }
.sf-auth__h {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
}
.sf-auth__h:first-child { margin-top: 0; }
.sf-auth__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-auth__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
  font-size: 0.9rem;
}
.sf-auth__list span { color: #6d7185; }
.sf-auth__empty { margin: 0 0 8px; color: #6d7185; font-size: 0.9rem; }
@media (min-width: 800px) {
  .sf-auth {
    align-items: center;
    padding: 24px;
  }
  .sf-auth__panel {
    border-radius: 20px;
    max-width: 420px;
    max-height: 85vh;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  }
}
.sf-auth__logout {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #272b42;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.sf-auth-open { cursor: pointer; }
.sf-auth-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
}
.wl-user .sf-auth-mark,
.bl-iconbtn .sf-auth-mark,
.ye-login .sf-auth-mark {
  width: 100%;
  height: 100%;
}
button.bl-tab.sf-auth-open .sf-auth-mark {
  width: 1.75rem;
  height: 1.75rem;
}
.sf-auth-initial {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
button.bl-tab.sf-auth-open .sf-auth-initial {
  font-size: 0.8rem;
}
.sf-auth-ok {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.sf-auth-ok svg {
  width: 8px;
  height: 8px;
  display: block;
}
button.bl-tab.sf-auth-open .sf-auth-ok {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 1px #fff;
}
button.bl-tab.sf-auth-open .sf-auth-ok svg {
  width: 7px;
  height: 7px;
}
.wl-user,
.ye-login,
.bl-iconbtn,
button.bl-tab.sf-auth-open {
  overflow: visible;
}
.wl-logo img,
.ye-mark img,
.bl-wordmark--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.wl-logo--img,
.ye-mark--img,
.bl-wordmark--img {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.wl-top--over-hero .wl-logo--img { background: #fff; }
.wl-user:not(:disabled) { cursor: pointer; }
.ye-user {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  color: #21201f;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
}
.ye-user .ye-ico,
.ye-user svg { width: 18px; height: 18px; fill: currentColor; }

.sf-hours-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.sf-hours-wrap.is-closed {
  color: #9a3412;
  font-weight: 700;
}
.sf-closed {
  margin: 12px 16px 4px;
  max-width: var(--wl-max, 720px);
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff6e5;
  color: #6a4b12;
}
body.bl .sf-closed { max-width: var(--bl-max, 560px); margin-left: auto; margin-right: auto; }
body.ye .sf-closed { max-width: 1200px; margin-left: auto; margin-right: auto; }
.sf-closed__when { display: block; font-size: 1rem; }
.sf-closed__hint { margin: 4px 0 0; font-size: 0.9rem; }
.sf-closed-chip {
  display: inline-block;
  margin-top: 4px;
  color: #9a3412;
  font-weight: 700;
}
.sf-cart__closed {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6e5;
  color: #6a4b12;
  font-size: 0.9rem;
}
.sf-cart__closed strong { display: block; margin-bottom: 4px; }
.sf-hours-tip {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.sf-hours-pop {
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 10px 12px;
  background: #fff;
  color: #21201f;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  text-align: left;
  font-weight: 400;
}
.bl-stat:last-child .sf-hours-pop {
  left: auto;
  right: 0;
}
.sf-hours-wrap.is-open { z-index: 40; }
.wl-venue-head .sf-hours-pop {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.sf-hours-pop__days {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-hours-pop__day {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  font-size: 0.85rem;
}
.sf-hours-pop__day.is-today { font-weight: 700; }

.sf-item-unavail img { filter: grayscale(1) opacity(0.7); }
.sf-unavail {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(33, 32, 31, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: help;
  z-index: 2;
}
.wl-item__add.sf-unavail,
.bl-item__add.sf-unavail {
  width: auto;
  height: auto;
  padding: 4px 8px;
}
.ye-dish__add.sf-unavail {
  width: auto;
  margin-top: 8px;
}
.sf-unavail__pop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  max-width: min(220px, calc(100vw - 24px));
  padding: 8px 10px;
  background: #fff;
  color: #21201f;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  z-index: 40;
}
.sf-unavail:hover .sf-unavail__pop,
.sf-unavail:focus .sf-unavail__pop,
.sf-unavail:focus-within .sf-unavail__pop { display: block; }

.sf-lang { position: relative; flex-shrink: 0; }
.sf-lang__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.sf-lang__code {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-lang__ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}
.sf-lang__menu {
  position: absolute;
  z-index: 50;
  right: 0;
  top: calc(100% + 6px);
  min-width: 88px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  color: #21201f;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.sf-lang__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}
.sf-lang__menu button.is-active {
  font-weight: 700;
  background: #f5f4f2;
}
.ye-top .sf-lang { margin-left: auto; }
.ye-top .sf-lang + .ye-addr { margin-left: 0; }
.ye-top .sf-lang + .ye-login { margin-left: 0; }
.ye-top .sf-lang__btn {
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: rgba(92, 90, 87, 0.1);
}
.ye-top .sf-lang__code { display: none; }
.bl-top .sf-lang__menu { left: 0; right: auto; }
.wl-top .sf-lang { margin-left: auto; }
.wl-top .sf-lang + .wl-user { margin-left: 0; }
.wl-top .wl-search ~ .sf-lang { margin-left: 0; }
.wl-top .sf-lang__btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 999px;
  background: rgba(39, 43, 66, 0.08);
}
.wl-top .sf-lang__ico { display: none; }
.wl-top--over-hero .sf-lang__btn {
  background: rgba(0, 0, 0, 0.35);
}
.sf-back-ico {
  width: 1.15em;
  height: 1.15em;
  display: block;
  flex-shrink: 0;
}

/* Overflow category picker: All (total category count) */
.sf-catnav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sf-catnav > nav {
  flex: 1;
  min-width: 0;
}
.sf-catmore {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin: 0;
  padding: 8px 4px 8px 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  color: inherit;
}
.sf-catmore[hidden] { display: none; }
.sf-catmore__chev {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.sf-catnav.is-open { z-index: 6; }
.sf-catnav.is-open .sf-catmore__chev { transform: rotate(180deg); }
@media (max-width: 639px) {
  body.wl .sf-catmore,
  body.wl .sf-catmore__pop { display: none !important; }
}
.sf-catmore__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: min(340px, calc(100vw - 24px));
  max-width: min(480px, calc(100vw - 16px));
  max-height: 70vh;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}
.sf-catmore__pop[hidden] { display: none; }
.sf-catmore__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-catmore__item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.wl .sf-catmore { color: var(--wl-accent); }
body.wl .sf-catmore__item.is-active {
  background: var(--wl-accent-soft);
  color: #0a3d52;
}

body.kiosk .sf-auth { align-items: center; }
body.kiosk .sf-auth__panel {
  max-width: 36rem;
  border-radius: 20px;
}
body.kiosk .sf-auth__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
body.kiosk .sf-auth__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
body.kiosk .sf-auth__qr {
  width: min(52vw, 16rem);
  height: min(52vw, 16rem);
  background: #fff;
  padding: 10px;
  border-radius: 16px;
}
body.kiosk .sf-auth__qr-label { font-weight: 700; }
body.kiosk .sf-auth__balances {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 8px;
}
body.kiosk .sf-auth__bal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 1rem;
}
body.kiosk .sf-auth__bal span { color: #6d7185; }
body.kiosk .sf-auth__bal strong { font-size: 1.25rem; }
