/* Customer view only. Loaded after lanay.css. */

/* Background: soft dotted pattern */
[data-role="customer"] {
  background:
    radial-gradient(#e6cfc4 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(160deg, #f6e3dc, #fbf4ec 60%, #fffaf5);
}

.cust {
  background: transparent;
}

/* Header */
.cust .top {
  background: linear-gradient(135deg, #fff, #fdf1ec);
  box-shadow: 0 6px 18px -12px #5a1d1a55;
  position: relative;
  z-index: 2;
}

.cust .logo-s {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px -4px #b3262c99;
}

.cust .top h1 {
  font-size: 20px;
}

.cust .tb-chip {
  background: var(--ac);
  color: #fff;
  padding: 5px 14px;
  box-shadow: 0 6px 12px -6px var(--ac);
}

/* Hero slideshow */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 34px -18px #b3262c;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 176px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  background: linear-gradient(135deg, #a51f26, #d8452f 65%, #ee8a4a);
}

.slide::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #ffffff26;
}

.slide::after {
  content: "";
  position: absolute;
  right: 46px;
  bottom: -70px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff1a;
}

.sl-pic {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 1;
  width: 124px;
  height: 108px;
  translate: 0 -50%;
  border-radius: 18px;
  box-shadow: 0 14px 24px -12px #0006;
}

.sl-logo {
  position: absolute;
  right: 22px;
  top: 50%;
  z-index: 1;
  width: 118px;
  height: 118px;
  translate: 0 -50%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 26px -10px #0006;
}

.sl-ic {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 1;
  color: #ffffff59;
}

.sl-ic svg {
  width: 84px;
  height: 84px;
  stroke-width: 1.4;
}

.sl-tx {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 18px 22px 30px;
}

.sl-tx small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.sl-tx > b {
  display: block;
  max-width: calc(100% - 140px);
  margin: 2px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.sl-tx .script {
  color: #fff;
  font-size: 40px;
  margin: 8px 0 4px;
}

.sl-tx p {
  max-width: 290px;
  opacity: 0.92;
  font-size: 14px;
}

.sl-tx .chip {
  background: #ffffff33;
  color: #fff;
}

.sl-ft {
  gap: 12px;
}

.sl-ft b {
  font-size: 18px;
}

.sl-ft .add {
  background: #fff;
  color: var(--ac);
  box-shadow: none;
}

.sl-Unlimited {
  background: linear-gradient(135deg, #7a4f08, #b9801a 70%, #e0b04a);
}

.sl-Ramen,
.sl-Korean,
.sl-Meals,
.sl-Bento {
  background: linear-gradient(135deg, #6b3f1d, #b0642a 70%, #d98d4a);
}

.sl-Starters,
.sl-Sides,
.sl-Filipino {
  background: linear-gradient(135deg, #3f5f2a, #6f9a4a 70%, #9cc070);
}

.dots-s {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dots-s button {
  width: 7px;
  height: 7px;
  padding: 0;
  min-height: 0;
  border-radius: 99px;
  background: #ffffff80;
  transition: 0.25s;
}

.dots-s button.on {
  width: 20px;
  background: #fff;
}

/* Sticky search and categories */
.cust .mbar {
  position: sticky;
  top: -10px;
  z-index: 3;
  margin: -6px auto 0;
  padding: 10px 0 0;
  margin-bottom: -8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(#fbf1ea 80%, #fbf1ea00);
}

.cust .search {
  border-radius: 99px;
  padding: 9px 16px;
  min-height: 0;
  border: 0;
  box-shadow: 0 6px 18px -10px #5a1d1a55;
}

.cats {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

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

.cats .pill {
  padding: 6px 14px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 10px -6px #5a1d1a55;
}

.cats .pill.on {
  box-shadow: 0 8px 16px -6px var(--ac);
}

/* Menu list */
.cust .menu {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .cust .menu {
    grid-template-columns: 1fr 1fr;
  }
}

.cust .menu .sec {
  grid-column: 1 / -1;
  margin: 10px 2px 0;
  font-size: 15px;
  color: var(--ac);
}

.cust .empty-note {
  grid-column: 1 / -1;
  padding: 36px 0;
  text-align: center;
  color: var(--mut);
}

.cust .dish-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 18px;
}

.cust .dish-row .dish {
  width: 76px;
  height: 76px;
  border-radius: 14px;
}

.cust .dish-row .dish svg.ph {
  width: 80%;
  height: auto;
  padding: 0;
  background: none;
}

.cust .dish-row .dish .tag {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d6a032;
  color: #fff;
}

.cust .dish-row .dish .tag svg {
  width: 12px;
  height: 12px;
  padding: 0;
  background: none;
}

.cust .dish-row.off .dish {
  filter: grayscale(1);
}

.cust .info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-height: 76px;
}

.cust .dish-row .nm {
  line-height: 1.25;
}

.cust .dish-row .cn {
  font-size: 11px;
}

.cust .dish-row .ds {
  font-size: 12px;
  line-height: 1.35;
}

.cust .dish-row .ds.more {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.cust .dish-row .ds.more.open {
  display: block;
}

.cust .dish-row .row {
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.cust .dish-row .pr {
  color: var(--ac);
  font-size: 15px;
  white-space: nowrap;
}

.cust .dish-row .qty {
  gap: 4px;
}

.cust .dish-row .qty button {
  width: 28px;
  height: 28px;
}

.cust .dish-row .qty b {
  min-width: 18px;
}

/* Add button and stepper */
.add {
  background: var(--ac);
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 8px 14px -8px var(--ac);
  transition: 0.15s;
}

.add:active {
  transform: scale(0.92);
}

.cust .qty {
  background: var(--soft);
  padding: 3px;
  border-radius: 99px;
  gap: 6px;
}

.cust .qty button {
  border-radius: 50%;
  background: #fff;
}

.cust .qty .p {
  background: var(--ac);
}

/* Floating cart bar */
.cartbar {
  position: sticky;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 10px 12px 10px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, #a51f26, #d8452f);
  box-shadow: 0 16px 30px -10px #b3262c;
  animation: rise 0.35s both;
}

.cartbar .n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--ac);
  font-weight: 700;
}

.cartbar span {
  flex: 1;
  font-weight: 600;
}

/* Bottom tabs */
.cust .tabs {
  box-shadow: 0 -8px 20px -14px #5a1d1a55;
  padding-bottom: env(safe-area-inset-bottom);
}

.cust .tabs .nav {
  position: relative;
}

.cust .tabs .nav b {
  position: relative;
  width: 44px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  transition: 0.2s;
}

.cust .tabs .nav.on {
  background: none;
  color: var(--ac);
  box-shadow: none;
  font-weight: 600;
}

.cust .tabs .nav.on b {
  background: var(--soft);
}

.bdg {
  position: absolute;
  top: -4px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--ac);
  color: #fff;
  font: 700 11px/18px Poppins, sans-serif;
  font-style: normal;
  text-align: center;
}

/* Order tracker */
.cust .step {
  position: relative;
  font-size: 11px;
}

.cust .step i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #fff;
  color: var(--mut);
  border: 2px solid #eadfd5;
  transition: 0.4s;
}

.cust .step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: #eadfd5;
}

.cust .step.on:not(:first-child)::before {
  background: var(--ac);
}

.cust .step.on i {
  background: var(--ac);
  border-color: var(--ac);
  color: #fff;
  box-shadow: 0 6px 12px -4px var(--ac);
}

.cust .order-total {
  background: #fff;
  padding: 14px 18px;
  border-radius: 18px;
  border: 2px dashed #e6cfc4;
}

.cust .request-thread {
  gap: 12px;
}

.cust .request-thread h3 {
  font-size: 16px;
}

.cust .request-message {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3ead9;
  overflow-wrap: anywhere;
}

.cust .request-message.from-customer {
  background: var(--soft);
}

.cust .request-message b {
  font-size: 12px;
}

.cust .request-message p {
  margin-top: 4px;
  white-space: pre-wrap;
}

/* Help tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  text-align: center;
  font-weight: 600;
  border-radius: 18px;
  background: var(--soft);
  transition: 0.2s;
}

.tile:hover {
  transform: translateY(-3px);
}

.tile:active {
  transform: scale(0.96);
}

.tile span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  box-shadow: 0 10px 18px -8px var(--ac);
}

.tile span svg {
  width: 24px;
  height: 24px;
}

.tile.done {
  background: #e4eed8;
  color: #4a6a2e;
}

.tile.done span {
  background: #6f9a4a;
  box-shadow: none;
}

.rate-label {
  text-align: center;
  color: var(--ac);
  font-weight: 600;
  min-height: 22px;
}

/* Welcome screens */
[data-role="customer"] .login h2 {
  font-size: 26px;
}

[data-role="customer"] .login .brand {
  animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* Landing screen (shown first after scanning the QR) */
.land {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: fade 0.5s;
}

.land::before,
.land::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: drift 9s ease-in-out infinite;
}

.land::before {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -100px;
  background: #e0563a;
}

.land::after {
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -80px;
  background: #f0a35a;
  animation-delay: -4s;
}

.land .login {
  position: relative;
  z-index: 1;
}

.land .script.big {
  font-size: 48px;
  line-height: 1.1;
}

.land .go {
  align-self: center;
  min-width: 220px;
  padding: 14px 28px;
  font-size: 16px;
}

/* Rings pulsing out from the logo */
.lg {
  position: relative;
  width: max-content;
  margin: 16px auto 12px;
}

.lg .brand {
  position: relative;
  z-index: 1;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ac);
  opacity: 0;
  animation: ripple 2.6s ease-out infinite;
}

.ring.r2 {
  animation-delay: 1.3s;
}

/* Red wipe between the landing screen and the menu */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, #a51f26, #d8452f 70%, #ee8a4a);
  animation: wipe 1.1s ease-in-out forwards;
}

.wipe img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  translate: -50% -50%;
  border-radius: 50%;
  opacity: 0;
  animation: wipelogo 1.1s ease-out forwards;
}

@keyframes drift {
  50% {
    transform: translateY(-14px) rotate(8deg);
  }
}

@keyframes ripple {
  from {
    transform: scale(1);
    opacity: 0.45;
  }

  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes wipe {
  0% {
    opacity: 1;
    clip-path: circle(0% at 50% 80%);
  }

  45%,
  60% {
    opacity: 1;
    clip-path: circle(150% at 50% 80%);
  }

  100% {
    opacity: 0;
    clip-path: circle(150% at 50% 80%);
  }
}

@keyframes wipelogo {
  0%,
  25% {
    opacity: 0;
    scale: 0.6;
  }

  45%,
  60% {
    opacity: 1;
    scale: 1;
  }

  100% {
    opacity: 0;
    scale: 1.15;
  }
}

@media (max-width: 560px) {
  .land .login {
    backdrop-filter: none;
  }
}

.sl-tx.wl {
  padding-right: 150px;
}

@media (max-width: 560px) {
  .sl-logo {
    right: 14px;
    width: 92px;
    height: 92px;
  }

  .sl-tx.wl {
    padding-right: 118px;
  }

  .sl-tx.wl .script {
    font-size: 34px;
    line-height: 1.05;
  }

  .sl-tx.wl p {
    font-size: 13px;
  }
}
