.mhd {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8f9fc;
  margin: 0 -20px;
  padding: 0 20px 12px;
  border-bottom: 1px solid #e3e6ec;
}
.mh-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 14px 0 12px;
}
.mh-top .ib {
  position: relative;
}
.mh-top img {
  height: 34px;
  max-width: 170px;
  object-fit: contain;
  justify-self: center;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--pkD);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f8f9fc;
}
.badge[hidden] {
  display: none;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #d9dee6;
  border-radius: 99px;
  padding: 11px 16px;
  color: var(--mu);
}
.search:focus-within {
  border-color: #b9c8d8;
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--tx);
  background: none;
  min-width: 0;
}
.chips-w {
  margin: 12px -20px 0;
}
.chips-w .chips {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  padding: 8px 16px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--tx2);
  white-space: nowrap;
}
.chip.on {
  background: var(--pk);
  border-color: #f3ccda;
  color: var(--pkD);
  font-weight: 600;
}
.sec h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 18px 0 10px;
}
.sec {
  scroll-margin-top: 160px;
}
.mi {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh);
  padding: 10px;
  margin-bottom: 10px;
}
.ph {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #c9cdd3;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.mt {
  flex: 1;
  min-width: 0;
}
.mn {
  font-size: 15px;
  color: var(--tx2);
  line-height: 1.3;
}
.mp {
  color: var(--pkD);
  font-weight: 800;
  font-size: 14px;
  margin-top: 3px;
}
.add {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pk);
  color: var(--pkD);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty {
  text-align: center;
  padding: 50px 10px;
  color: var(--mu);
}
.empty b {
  display: block;
  color: var(--tx);
  font-size: 16px;
  margin: 10px 0 4px;
}
.empty button {
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 99px;
  background: var(--bl);
  color: var(--blD);
  font-weight: 600;
}
#cartbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: 448px;
  background: var(--blD);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(79, 111, 146, 0.3);
  z-index: 40;
}
#cartbar[hidden] {
  display: none;
}
#cartbar span {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.has-bar main {
  padding-bottom: 84px;
}
#toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -20px);
  background: var(--tx);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 99px;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.25s;
  z-index: 60;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mbtn {
  flex: 1;
  padding: 13px;
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
}
#m-cust .cu {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}
.cu-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.cu-n {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.cu-p {
  color: var(--pkD);
  font-weight: 800;
  font-size: 15px;
  margin-top: 3px;
}
.cu-x {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f6;
  border: none;
  color: var(--tx2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cu-b {
  overflow-y: auto;
  padding: 4px 20px 16px;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cu-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}
.cu-s {
  margin-top: 14px;
}
.cu-b > .cu-s:first-child {
  margin-top: 8px;
}
.cu-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 8px;
}
.cu-ch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oc {
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid #e3e6ec;
  color: var(--tx2);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.oc small {
  font-size: 11.5px;
  color: var(--mu);
  font-weight: 500;
}
.oc.on {
  background: var(--pk);
  border-color: #f3ccda;
  color: var(--pkD);
  font-weight: 600;
}
.oc.on small {
  color: var(--pkD);
}
.oc.m i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid #cdd3dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.oc.m i svg {
  width: 11px;
  height: 11px;
}
.oc.m.on {
  background: var(--bl);
  border-color: #c9d6e4;
  color: var(--blD);
}
.oc.m.on small {
  color: var(--blD);
}
.oc.m.on i {
  background: var(--blD);
  border-color: var(--blD);
  color: #fff;
}
.acc {
  margin-top: 14px;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  background: #fff;
}
.acc-h {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx2);
}
.acc-h span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.acc-h em {
  font-style: normal;
  color: var(--mu);
  font-weight: 500;
}
.acc-h svg {
  width: 16px;
  height: 16px;
  color: var(--mu);
  transition: transform 0.2s;
}
.acc.open .acc-h svg {
  transform: rotate(180deg);
}
.cnt {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--bl);
  color: var(--blD);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-b {
  display: none;
  padding: 0 14px 14px;
}
.acc.open .acc-b {
  display: block;
}
.cu-b textarea {
  width: 100%;
  border: 1px solid #e3e6ec;
  border-radius: 16px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--tx);
  resize: none;
  outline: none;
  background: #fff;
}
.cu-b textarea:focus {
  border-color: #b9c8d8;
}
.cu-b textarea::placeholder {
  color: #aeb3bb;
}
.cu-ft {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.stp {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bl);
  border-radius: 99px;
  padding: 4px;
}
.stp button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--blD);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qn {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--blD);
}
.cu-add {
  flex: 1;
  padding: 14px 12px;
  border-radius: 99px;
  background: var(--pkD);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  white-space: nowrap;
}
.mi {
  cursor: pointer;
}
.ph {
  padding: 4px;
}
.ph img {
  padding: 0 !important;
  border-radius: 10px;
}
.ci .th {
  padding: 3px;
}
.ci .th img {
  padding: 0 !important;
  border-radius: 9px;
}
.mi.na {
  opacity: 0.55;
}
.hb {
  font-size: 11px;
  font-weight: 600;
  color: var(--mu);
  background: #f1f3f6;
  padding: 2px 8px;
}
body.closed .pill {
  background: #f1f3f6;
  color: var(--mu);
}
body.closed .pill i {
  background: #c9cdd3;
}
.nt {
  position: relative;
}
.nc {
  position: absolute;
  right: 12px;
  bottom: 9px;
  font-size: 11px;
  color: var(--mu);
  pointer-events: none;
}
.cu-b textarea {
  padding-bottom: 24px;
}
.oc.fx {
  background: #f8f9fc;
  border-color: #eef0f4;
  color: var(--mu);
  font-weight: 600;
  cursor: default;
}

/* WiFi dialog (Fore / Kopi Kenangan) */
.modal.wf {
  max-width: 320px;
  padding: 18px;
  border-radius: 20px;
}
.wf-hd {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wf-hd h3 {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
}
.wf-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--bl);
  color: var(--blD);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pk);
  color: var(--pkD);
  font-size: 12px;
  font-weight: 700;
}
.wf-row {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.wf-row small {
  display: block;
  font-size: 11.5px;
  color: var(--mu);
}
.wf-row b {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--tx);
  overflow-wrap: anywhere;
}
.wf-pw {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wf-pw > div {
  flex: 1;
  min-width: 0;
}
.wf-cp {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: var(--bl);
  color: var(--blD);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.wf-cp.on {
  background: var(--pk);
  color: var(--pkD);
}
.wf-cp:active {
  transform: scale(0.96);
}
.mh-top button.ib {
  color: inherit;
}
