:root {
  --pink: #fff7f9;
  --white: #ffffff;
  --black: #111111;
  --ink: #202020;
  --gray: #8d8a8b;
  --gray-2: #bbb7b8;
  --line: #e7e2e3;
  --shadow: 0 10px 28px rgba(32, 24, 27, 0.055);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: #efeeee;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: #efeeee;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

textarea {
  resize: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
.kie-card,
.menu-product,
.points-item,
.coupon-card {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease);
}

button:active {
  transform: scale(.975);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.preview-shell {
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.phone {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  height: min(900px, calc(100dvh - 24px));
  overflow: hidden;
  border: 1px solid #ddd8da;
  border-radius: 30px;
  background: var(--pink);
  box-shadow: 0 22px 70px rgba(25, 18, 20, .16);
}

.app-view {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--pink);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-view::-webkit-scrollbar {
  display: none;
}

.kie-card {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-with-tab {
  min-height: calc(100% - 76px);
  padding-bottom: calc(92px + var(--safe-bottom));
}

.page-with-submit {
  min-height: calc(100% - 76px);
  padding-bottom: calc(104px + var(--safe-bottom));
}

.sub-page {
  min-height: calc(100% - 76px);
  padding: 0 12px 34px;
}

.wx-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: var(--pink);
}

.wx-status {
  height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

.wx-status strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.wx-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wx-status-icons > i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

.wx-battery {
  position: relative;
  width: 29px;
  height: 13px;
  margin-left: 8px;
  border: 1.6px solid var(--ink);
  border-radius: 8px;
}

.wx-battery::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -4px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: var(--ink);
}

.wx-battery b {
  position: absolute;
  inset: 2px;
  border-radius: 5px;
  background: var(--ink);
}

.wx-title-row {
  position: relative;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 3px;
}

.wx-title-row h1 {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.wx-title-spacer {
  width: 36px;
  height: 30px;
}

.wx-capsule {
  width: 52px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e6e1e2;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}

.wx-capsule b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.wx-back {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
}

.wx-back span {
  width: 12px;
  height: 12px;
  border-left: 1.8px solid var(--ink);
  border-bottom: 1.8px solid var(--ink);
  transform: rotate(45deg) translate(2px, -2px);
}

.kie-tabbar {
  position: absolute;
  z-index: 40;
  right: 12px;
  bottom: calc(14px + var(--safe-bottom));
  left: 12px;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 9px 28px rgba(35, 26, 29, .09);
  backdrop-filter: blur(16px);
}

.kie-tabbar__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 15px;
  color: #777475;
  font-size: 12px;
  line-height: 1.15;
}

.kie-tabbar__item.is-active {
  color: var(--black);
  background: var(--pink);
}

.kie-tabbar__icon {
  width: 22px;
  height: 22px;
}

/* 首页 */
.home-page {
  padding-right: 12px;
  padding-left: 12px;
}

.home-hero {
  min-height: 215px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: var(--black);
}

.home-hero img {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
}

.home-hero h2 {
  margin: 13px 0 3px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.home-hero p {
  margin: 0;
  color: #d5d2d3;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.home-actions {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.home-primary {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 20px;
  text-align: left;
}

.home-cake-icon {
  position: relative;
  width: 38px;
  height: 31px;
  display: block;
  border: 3px solid var(--black);
  border-radius: 8px;
  box-shadow: inset 0 -6px 0 #6b6b6b;
}

.home-cake-icon::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 15px;
  width: 10px;
  height: 12px;
  border-radius: 70% 35% 70% 35%;
  background: var(--black);
  transform: rotate(20deg);
}

.home-cake-icon i {
  position: absolute;
  top: 7px;
  right: 2px;
  left: 2px;
  height: 5px;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.home-primary__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-primary__text strong,
.home-mini strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.home-primary__text small,
.home-mini small {
  overflow: hidden;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-arrow {
  width: 14px;
  height: 14px;
  border-top: 1.8px solid var(--ink);
  border-right: 1.8px solid var(--ink);
  transform: rotate(45deg);
}

.home-mini-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.home-mini {
  min-height: 72px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 13px 17px;
  border-radius: 20px;
  text-align: left;
}

.home-notice-strip {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 0 14px;
  border-radius: 999px;
  color: #625e60;
  font-size: 11px;
}

.home-notice-strip i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--black);
}

.home-shop {
  margin-top: 15px;
  padding: 18px 17px 14px;
  border-radius: 21px;
}

.home-shop__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-shop__head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-shop__head p {
  margin: 4px 0 0;
  color: var(--gray);
  font-size: 11px;
}

.home-shop__head > span {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 11px;
}

.home-shop__info {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.home-shop__info > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px;
  color: #5f5c5d;
  font-size: 11px;
  line-height: 1.45;
}

.home-shop__info b {
  color: var(--gray);
  font-weight: 500;
}

.home-shop__info p {
  margin: 0;
}

.home-shop__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.home-shop__buttons button,
.contact-buttons button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pink);
  font-size: 12px;
}

.home-shop__buttons .dark,
.contact-buttons button:first-child,
.payment-sheet button.dark {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
}

/* 点单页 */
.menu-page {
  padding-bottom: calc(92px + var(--safe-bottom));
}

.menu-shop {
  margin: 0 12px;
  padding: 12px 14px 9px;
  border-radius: 19px;
}

.menu-shop__main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-shop__main > img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
}

.menu-shop__text {
  min-width: 0;
  flex: 1;
}

.menu-shop__text > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-shop__text strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-shop__text span {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 11px;
}

.menu-shop__text p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-shop__notice {
  margin-top: 4px;
  padding: 3px 9px;
  overflow: hidden;
  border-radius: 999px;
  color: #625e60;
  background: var(--pink);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-mode {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px 0;
}

.menu-mode h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.menu-mode span {
  color: var(--gray);
  font-size: 11px;
}

.menu-body {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  border-radius: 22px 22px 0 0;
  background: var(--white);
}

.menu-categories {
  overflow: hidden;
  border-radius: 22px 0 0;
  background: var(--pink);
}

.menu-categories button {
  position: relative;
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666263;
  font-size: 13px;
}

.menu-categories button.is-active {
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.menu-categories button.is-active::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 5px;
  height: 20px;
  border-radius: 999px;
  background: var(--black);
}

.menu-products {
  min-width: 0;
  padding: 18px 16px 28px 12px;
}

.menu-products__head {
  margin-bottom: 3px;
}

.menu-products__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.menu-products__head p {
  margin: 3px 0 0;
  color: var(--gray);
  font-size: 11px;
}

.menu-product {
  min-height: 88px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeaea;
}

.menu-product--notice {
  min-height: 96px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--pink);
}

.menu-product--notice .menu-product__name span {
  color: var(--white);
  background: var(--black);
}

.menu-product > img {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  object-fit: cover;
}

.menu-product__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.menu-product__name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.menu-product__name strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-product__name span {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 10px;
}

.menu-product__main > p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.menu-product__foot {
  min-height: 27px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.menu-product__foot > b {
  font-size: 15px;
  font-weight: 800;
}

.qty {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qty > span {
  min-width: 9px;
  font-size: 13px;
  text-align: center;
}

.qty button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.qty__add {
  color: var(--white);
  background: var(--black);
}

.qty__minus {
  border: 1.4px solid var(--black);
  color: var(--black);
  background: var(--white);
}

.kie-cartbar {
  position: absolute;
  z-index: 36;
  right: 12px;
  bottom: calc(98px + var(--safe-bottom));
  left: 12px;
  min-height: 55px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 11px 30px rgba(23, 18, 19, .12);
  backdrop-filter: blur(15px);
}

.kie-fly-item {
  position: fixed;
  z-index: 120;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 17px;
  background: #FFF7F9;
  box-shadow: 0 12px 26px rgba(17, 17, 17, .22);
  pointer-events: none;
  opacity: 1;
}

.kie-fly-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kie-fly-item.is-flying {
  animation: preview-fly-to-cart 560ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes preview-fly-to-cart {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  72% { opacity: 1; transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(.72); }
  100% { opacity: 0; transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(.38); }
}

.kie-cartbar__bag {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--black);
}

.kie-cartbar__bag > span {
  width: 32px;
  height: 32px;
}

.kie-cartbar__bag i {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
  font-style: normal;
}

.kie-cartbar__price {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.kie-cartbar__price strong {
  font-size: 18px;
  font-weight: 800;
}

.kie-cartbar__price span {
  color: var(--gray);
  font-size: 10px;
}

.kie-cartbar__submit {
  align-self: stretch;
  border-radius: 14px;
  color: var(--white);
  background: var(--black);
  font-size: 14px;
  font-weight: 700;
}

.kie-cartbar__submit.is-disabled {
  color: #7e7a7b;
  background: #ece8e9;
}

/* 提交订单 */
.confirm-page {
  padding-right: 12px;
  padding-left: 12px;
}

.confirm-card {
  margin-bottom: 12px;
  padding: 16px 15px;
  border-radius: 20px;
}

.confirm-notice-card {
  border-color: #ddd6d8;
}

.confirm-goods--notice > b {
  color: var(--gray);
  font-size: 11px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-title-row span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 11px;
}

.section-title-row em {
  color: var(--gray);
  font-size: 12px;
  font-style: normal;
}

.confirm-shop {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0;
  padding: 8px 13px;
  border-radius: 14px;
  background: var(--pink);
}

.confirm-shop img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.confirm-shop div {
  min-width: 0;
}

.confirm-shop strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.confirm-shop p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--gray);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-field {
  min-height: 41px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #ece8e9;
}

.confirm-field:last-child {
  border-bottom: 0;
}

.confirm-field > b {
  color: #5f5c5d;
  font-size: 14px;
}

.confirm-field input,
.confirm-field textarea {
  width: 100%;
  color: var(--ink);
  font-size: 13px;
}

.confirm-field input::placeholder,
.confirm-field textarea::placeholder {
  color: #bbb7b8;
}

.confirm-field button {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 11px;
}

.confirm-field--remark {
  min-height: 44px;
  grid-template-columns: 44px minmax(0, 1fr);
}

.confirm-field--remark textarea {
  height: 38px;
  padding-top: 11px;
}

.confirm-goods {
  min-height: 52px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.confirm-goods img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
}

.confirm-goods > div {
  min-width: 0;
}

.confirm-goods strong,
.confirm-goods span {
  display: block;
}

.confirm-goods strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-goods span {
  margin-top: 3px;
  color: var(--gray);
  font-size: 11px;
}

.confirm-goods > b {
  font-size: 13px;
}

.confirm-total > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.confirm-total > p {
  margin: 10px 0;
  padding: 10px;
  border-radius: 12px;
  color: var(--gray);
  background: var(--pink);
  font-size: 11px;
  line-height: 1.45;
}

.confirm-total__last {
  padding-top: 4px;
}

.confirm-total__last strong {
  font-size: 15px;
}

.confirm-total__last b {
  font-size: 18px;
}

.confirm-submit,
.single-submit {
  position: absolute;
  z-index: 42;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: calc(75px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px calc(10px + var(--safe-bottom));
  border-top: 1px solid #f1edef;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
}

.confirm-submit > div {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
}

.confirm-submit span {
  color: var(--gray);
  font-size: 11px;
}

.confirm-submit strong {
  font-size: 20px;
  line-height: 1.1;
}

.confirm-submit > button,
.single-submit > button {
  width: 114px;
  min-height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: var(--black);
  font-size: 14px;
  font-weight: 800;
}

.single-submit {
  justify-content: center;
}

.single-submit > button {
  width: 100%;
  max-width: 380px;
  min-height: 42px;
  border-radius: 999px;
}

/* 订单 */
.orders-page {
  padding: 0 12px calc(92px + var(--safe-bottom));
}

.orders-tabs {
  height: 35px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border: 1px solid #eee9eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
}

.orders-tabs button {
  border-radius: 999px;
  color: #615e5f;
  font-size: 11px;
}

.orders-tabs button.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(25, 18, 20, .06);
  font-weight: 700;
}

.orders-empty {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 45px;
  text-align: center;
}

.orders-empty img {
  width: 112px;
  height: 86px;
  object-fit: contain;
}

.orders-empty h2 {
  margin: 18px 0 5px;
  font-size: 16px;
  font-weight: 800;
}

.orders-empty p {
  margin: 0;
  color: var(--gray);
  font-size: 11px;
}

.orders-empty button {
  min-width: 88px;
  min-height: 34px;
  margin-top: 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
}

.orders-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.order-card {
  padding: 13px;
  border-radius: 18px;
}

.order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-card__head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-card__head strong {
  font-size: 13px;
  font-weight: 800;
}

.order-card__head span,
.order-card__head small {
  color: var(--gray);
  font-size: 9px;
}

.order-card__head b {
  align-self: flex-end;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 10px;
  font-weight: 600;
}

.order-card__head b.dark {
  color: var(--white);
  background: var(--black);
}

.order-card__body {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 13px;
  background: var(--pink);
}

.order-card__thumbs {
  display: flex;
  flex: 0 0 auto;
}

.order-card__thumbs img {
  width: 32px;
  height: 32px;
  margin-right: -8px;
  border: 2px solid var(--pink);
  border-radius: 9px;
  object-fit: cover;
}

.order-card__body > div:last-child {
  min-width: 0;
}

.order-card__body strong,
.order-card__body span {
  display: block;
}

.order-card__body strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__body span {
  margin-top: 3px;
  color: var(--gray);
  font-size: 9px;
}

.order-card__body .order-card__notice {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #6f6a6c;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.order-card__foot > span {
  min-width: 0;
  overflow: hidden;
  color: var(--gray);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__foot > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-card__foot button {
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
}

.order-card__foot strong {
  font-size: 14px;
}

/* 个人中心 */
.user-page {
  padding: 0 12px calc(92px + var(--safe-bottom));
}

.user-profile {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px 15px;
}

.user-profile img {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  object-fit: cover;
}

.user-profile span {
  color: var(--gray);
  font-size: 13px;
}

.user-profile h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.user-stats {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-radius: 19px;
}

.user-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.user-stats strong {
  font-size: 15px;
  font-weight: 800;
}

.user-stats span {
  color: var(--gray);
  font-size: 12px;
}

.member-banner {
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 18px 18px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--white);
  background: var(--black);
}

.member-banner h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.member-banner p {
  margin: 5px 0 0;
  color: #e1dfe0;
  font-size: 11px;
}

.member-banner > b {
  font-size: 40px;
  font-weight: 800;
}

.function-panel {
  margin-top: 14px;
  padding: 18px 15px;
  border-radius: 20px;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.function-grid button {
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 5px;
  border-radius: 16px;
  background: var(--pink);
}

.function-grid button > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.function-grid strong {
  margin-top: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-grid small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--gray);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 二级功能 */
.black-hero,
.coupon-banner,
.address-notice {
  padding: 22px 18px;
  border-radius: 20px;
  color: var(--white);
  background: var(--black);
}

.black-hero {
  min-height: 143px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.black-hero > span {
  font-size: 12px;
}

.black-hero > strong {
  margin-top: 6px;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.1;
}

.black-hero > p {
  margin: 10px 0 0;
  color: #e4e1e2;
  font-size: 11px;
}

.recharge-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 19px;
}

.recharge-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.recharge-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recharge-options button {
  min-height: 55px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--pink);
  text-align: left;
}

.recharge-options button.is-active {
  border-color: var(--black);
  background: var(--white);
}

.recharge-options strong {
  font-size: 13px;
}

.recharge-options span {
  margin-top: 3px;
  color: var(--gray);
  font-size: 9px;
}

.recharge-custom {
  min-height: 42px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  margin-top: 8px;
  border-top: 1px solid #eee9eb;
  font-size: 11px;
}

.recharge-custom input {
  width: 100%;
  text-align: right;
}

.sign-hero > strong {
  font-size: 34px;
}

.sign-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 13px;
  padding: 14px 10px;
  border-radius: 19px;
}

.sign-week > div {
  min-width: 0;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--pink);
}

.sign-week span {
  color: var(--gray);
  font-size: 10px;
}

.sign-week strong {
  margin-top: 3px;
  font-size: 13px;
}

.sign-week i {
  width: 5px;
  height: 5px;
  margin-top: 3px;
  border-radius: 50%;
  background: #e3dfe0;
}

.sign-week .is-today i,
.sign-week i.is-on {
  background: var(--black);
}

.sign-task {
  margin-top: 13px;
  padding: 20px 16px 12px;
  border-radius: 19px;
}

.sign-task h2 {
  margin: 0;
  font-size: 19px;
}

.sign-task p {
  margin: 10px 0 16px;
  color: #5d595b;
  font-size: 11px;
  line-height: 1.55;
}

.sign-task button {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 13px;
  font-weight: 800;
}

.sign-task button.is-done {
  color: #6b6768;
  background: #e8e4e5;
}

.points-hero {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--white);
  background: var(--black);
}

.points-hero span,
.points-hero strong {
  display: block;
}

.points-hero span {
  font-size: 11px;
}

.points-hero strong {
  margin-top: 4px;
  font-size: 31px;
}

.points-hero img {
  width: 78px;
  height: 78px;
  border: 7px solid var(--white);
  border-radius: 17px;
  object-fit: cover;
}

.points-list,
.coupon-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.points-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 17px;
}

.points-item > img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.points-item > div {
  min-width: 0;
}

.points-item strong,
.points-item span,
.points-item b {
  display: block;
}

.points-item strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-item span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--gray);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-item b {
  margin-top: 5px;
  font-size: 10px;
}

.points-item button,
.coupon-card button {
  min-height: 29px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
}

.coupon-banner h2,
.address-notice h2 {
  margin: 0;
  font-size: 17px;
}

.coupon-banner p,
.address-notice p {
  margin: 7px 0 0;
  color: #ddd9da;
  font-size: 10px;
  line-height: 1.55;
}

.coupon-card {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 17px;
}

.coupon-card > div {
  min-width: 0;
}

.coupon-card strong,
.coupon-card span {
  display: block;
}

.coupon-card strong {
  font-size: 12px;
}

.coupon-card span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--gray);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-empty {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sub-empty img {
  width: 105px;
  height: 75px;
  object-fit: contain;
}

.sub-empty h3 {
  margin: 15px 0 0;
  color: #777374;
  font-size: 12px;
  font-weight: 500;
}

.contact-hero {
  min-height: 186px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: var(--white);
  background: var(--black);
}

.contact-hero img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-hero h2 {
  margin: 9px 0 0;
  font-size: 15px;
}

.contact-hero p {
  margin: 5px 0 0;
  color: #d7d4d5;
  font-size: 10px;
}

.contact-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
}

.contact-card > div {
  min-height: 33px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 5px 0;
}

.contact-card span {
  color: var(--gray);
  font-size: 10px;
}

.contact-card strong {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.contact-buttons button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.address-form {
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 18px;
}

.address-form label {
  min-height: 45px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee9eb;
}

.address-form label:last-child {
  border-bottom: 0;
}

.address-form span {
  font-size: 11px;
  font-weight: 600;
}

.address-form input,
.address-form textarea {
  width: 100%;
  font-size: 11px;
}

.address-form .textarea {
  min-height: 72px;
  align-items: start;
  padding-top: 15px;
}

.address-form textarea {
  height: 55px;
}

.address-save {
  width: 100%;
  min-height: 41px;
  margin-top: 13px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
  font-weight: 700;
}

/* 购物车与支付弹层 */
.sheet-mask {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 12px;
  background: rgba(17, 17, 17, .36);
  backdrop-filter: blur(2px);
  animation: mask-in 180ms ease both;
}

.cart-sheet,
.payment-sheet {
  width: min(100%, 430px);
  border-radius: 24px 24px 20px 20px;
  background: var(--white);
  box-shadow: 0 -12px 38px rgba(17, 17, 17, .16);
  animation: sheet-in 300ms var(--ease) both;
}

.sheet-handle {
  width: 34px;
  height: 4px;
  margin: 8px auto 4px;
  border-radius: 999px;
  background: #dad6d7;
}

.cart-sheet > header {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid #eee9eb;
}

.cart-sheet > header h2 {
  margin: 0;
  font-size: 15px;
}

.cart-sheet > header button {
  color: var(--gray);
  font-size: 11px;
}

.cart-sheet__list {
  max-height: 330px;
  overflow-y: auto;
  padding: 0 17px;
}

.cart-sheet__item {
  min-height: 69px;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee9eb;
}

.cart-sheet__item > img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-sheet__item > div:nth-child(2) {
  min-width: 0;
}

.cart-sheet__item strong,
.cart-sheet__item span {
  display: block;
}

.cart-sheet__item strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-sheet__item > div:nth-child(2) span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.cart-sheet > footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 17px 13px;
}

.cart-sheet > footer > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cart-sheet > footer span {
  color: var(--gray);
  font-size: 11px;
}

.cart-sheet > footer strong {
  font-size: 18px;
}

.cart-sheet > footer button {
  min-width: 95px;
  min-height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 13px;
  font-weight: 800;
}

.payment-sheet {
  padding: 8px 20px 20px;
  text-align: center;
}

.payment-sheet > span {
  display: block;
  margin-top: 15px;
  color: var(--gray);
  font-size: 12px;
}

.payment-sheet > strong {
  display: block;
  margin-top: 6px;
  font-size: 31px;
}

.payment-sheet > p {
  margin: 13px 0 17px;
  padding: 12px;
  border-radius: 14px;
  color: #625e60;
  background: var(--pink);
  font-size: 11px;
  line-height: 1.55;
}

.payment-sheet > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-sheet button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
}

/* 2026-08 visual hierarchy redesign: pink is the canvas, white/gray/black define content levels. */
.home-page {
  padding-right: 12px;
  padding-left: 12px;
}

.home-brand-stage {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 20px;
  text-align: center;
}

.home-logo-shell {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 9px 22px rgba(17, 17, 17, .10);
  animation: logo-in 520ms var(--ease) both, logo-float 3200ms ease-in-out 650ms infinite alternate;
}

.home-logo-shell img {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  object-fit: cover;
}

.home-brand-stage h2 {
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}

.home-brand-stage > p {
  max-width: 330px;
  margin: 7px 0 0;
  color: #646464;
  font-size: 12px;
  line-height: 1.45;
}

.home-brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.home-brand-meta span {
  padding: 4px 8px;
  border: 1px solid #dedede;
  border-radius: 999px;
  color: #707070;
  background: var(--white);
  font-size: 9px;
}

.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-shortcut {
  position: relative;
  min-width: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(17, 17, 17, .055);
  text-align: left;
  animation: surface-in 480ms var(--ease) both;
}

.home-shortcut:nth-child(1) { animation-delay: 90ms; }
.home-shortcut:nth-child(2) { animation-delay: 150ms; }

.home-shortcut__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
}

.home-shortcut strong {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 800;
}

.home-shortcut small {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #767676;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shortcut > i {
  position: absolute;
  top: 17px;
  right: 15px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--black);
  border-right: 1.5px solid var(--black);
  transform: rotate(45deg);
}

.home-start {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding: 12px 14px;
  border-radius: 17px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 9px 20px rgba(17, 17, 17, .18);
  text-align: left;
  animation: surface-in 480ms var(--ease) 210ms both;
}

.home-start > span,
.home-start small,
.home-start strong,
.home-start em {
  display: block;
}

.home-start small {
  color: #aaa;
  font-size: 9px;
}

.home-start strong {
  margin-top: 3px;
  font-size: 16px;
}

.home-start em {
  margin-top: 3px;
  color: #cacaca;
  font-size: 10px;
  font-style: normal;
}

.home-start > b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 9px;
  border-radius: 50%;
  color: var(--black);
  background: var(--white);
}

.home-notice-strip {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 11px;
  border: 1px solid #dedede;
  border-radius: 14px;
  color: #555;
  background: #f0f0f0;
  font-size: 10px;
  line-height: 1.35;
  animation: surface-in 480ms var(--ease) 270ms both;
}

.home-notice-strip i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.home-shop {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(17, 17, 17, .05);
  animation: surface-in 480ms var(--ease) 330ms both;
}

.home-shop__head {
  padding-bottom: 11px;
  border-bottom: 1px solid #e8e8e8;
}

.home-shop__head > span {
  color: var(--white);
  background: var(--black);
}

.home-shop__info > div {
  grid-template-columns: 38px minmax(0, 1fr);
}

.home-shop__info p {
  min-width: 0;
  color: #4d4d4d;
  overflow-wrap: anywhere;
}

.home-shop__buttons button {
  border-radius: 12px;
  background: #f0f0f0;
}

.confirm-page {
  padding: 0 12px calc(122px + var(--safe-bottom));
}

.confirm-summary-bar {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 9px 20px rgba(17, 17, 17, .18);
  animation: surface-in 460ms var(--ease) both;
}

.confirm-summary-bar small,
.confirm-summary-bar strong,
.confirm-summary-bar span,
.confirm-summary-bar b {
  display: block;
}

.confirm-summary-bar small,
.confirm-summary-bar span {
  color: #aaa;
  font-size: 9px;
}

.confirm-summary-bar strong {
  margin-top: 4px;
  font-size: 17px;
}

.confirm-summary-bar > div:last-child {
  text-align: right;
}

.confirm-summary-bar b {
  margin-top: 4px;
  font-size: 14px;
}

.confirm-surface {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #dfdfdf;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 7px 17px rgba(17, 17, 17, .045);
  animation: surface-in 460ms var(--ease) both;
}

.confirm-surface:nth-of-type(2) { animation-delay: 70ms; }
.confirm-surface:nth-of-type(3) { animation-delay: 130ms; }
.confirm-surface:nth-of-type(4) { animation-delay: 190ms; }
.confirm-surface:nth-of-type(5) { animation-delay: 250ms; }

.confirm-notice-card {
  border-color: #ddd;
  background: #f0f0f0;
  box-shadow: none;
}

.confirm-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.confirm-heading.line {
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.confirm-heading small,
.confirm-heading h2 {
  display: block;
}

.confirm-heading small {
  color: #999;
  font-size: 9px;
}

.confirm-heading h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.confirm-heading > span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
}

.confirm-heading > em {
  color: #777;
  font-size: 10px;
  font-style: normal;
}

.confirm-shop {
  min-height: 58px;
  align-items: center;
  margin: 0;
  padding: 9px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background: #f2f2f2;
}

.confirm-shop p {
  overflow: visible;
  line-height: 1.4;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.confirm-field {
  min-height: 0;
  display: block;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: var(--white);
}

.confirm-field.is-required {
  border-color: var(--black);
}

.confirm-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.confirm-field > span b {
  font-size: 12px;
}

.confirm-field > span em {
  color: #888;
  font-size: 9px;
  font-style: normal;
}

.confirm-field.is-required > span em {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
}

.confirm-field > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.confirm-field input,
.confirm-field textarea {
  width: 100%;
  border-radius: 9px;
  color: var(--ink);
  background: #f0f0f0;
  font-size: 12px;
}

.confirm-field input {
  min-height: 35px;
  padding: 0 9px;
}

.confirm-field textarea {
  height: 66px;
  padding: 8px 9px;
}

.confirm-field button {
  min-width: 74px;
  min-height: 35px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.confirm-goods {
  min-height: 62px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e9e9e9;
}

.confirm-goods:last-child {
  border-bottom: 0;
}

.confirm-goods strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.confirm-notice-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #d8d8d8;
}

.confirm-notice-row:last-child {
  border-bottom: 0;
}

.confirm-notice-row > i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.confirm-notice-row strong,
.confirm-notice-row span {
  display: block;
}

.confirm-notice-row strong {
  font-size: 12px;
}

.confirm-notice-row span {
  margin-top: 3px;
  color: #666;
  font-size: 9px;
}

.confirm-notice-row > b {
  color: #777;
  font-size: 10px;
}

.confirm-total > p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #555;
  background: #f0f0f0;
}

.confirm-total > p i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-style: normal;
  font-weight: 800;
}

.confirm-submit {
  position: absolute;
  min-height: calc(70px + var(--safe-bottom));
  border-color: #ddd;
  background: var(--white);
  box-shadow: 0 -7px 18px rgba(17, 17, 17, .08);
  animation: bar-in 420ms var(--ease) 250ms both;
}

.confirm-submit > button {
  border-radius: 12px;
}

.orders-page {
  padding: 0 12px calc(92px + var(--safe-bottom));
}

.orders-overview {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-radius: 17px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 9px 20px rgba(17, 17, 17, .18);
  animation: surface-in 460ms var(--ease) both;
}

.orders-overview small,
.orders-overview h2,
.orders-overview p,
.orders-overview span,
.orders-overview b {
  display: block;
}

.orders-overview small,
.orders-overview span {
  color: #aaa;
  font-size: 9px;
}

.orders-overview h2 {
  margin: 4px 0 0;
  font-size: 17px;
}

.orders-overview p {
  margin: 5px 0 0;
  color: #c6c6c6;
  font-size: 10px;
}

.orders-overview > div:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.orders-overview b {
  margin-top: 5px;
  font-size: 14px;
}

.orders-tabs {
  height: 42px;
  margin-top: 10px;
  padding: 4px;
  border-radius: 13px;
  background: #eee;
  animation: surface-in 460ms var(--ease) 80ms both;
}

.orders-tabs button {
  border-radius: 10px;
}

.orders-tabs button.is-active {
  color: var(--white);
  background: var(--black);
}

.orders-list {
  gap: 10px;
  padding-top: 10px;
}

.order-card {
  padding: 14px;
  border: 1px solid #dfdfdf;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 7px 17px rgba(17, 17, 17, .05);
  animation: surface-in 460ms var(--ease) both;
}

.order-card:nth-child(1) { animation-delay: 140ms; }
.order-card:nth-child(2) { animation-delay: 195ms; }
.order-card:nth-child(3) { animation-delay: 250ms; }
.order-card:nth-child(4) { animation-delay: 305ms; }

.order-card__meta {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 7px;
  margin-top: 10px;
}

.order-card__meta > div {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f0f0f0;
}

.order-card__meta span,
.order-card__meta strong {
  display: block;
}

.order-card__meta span {
  color: #888;
  font-size: 9px;
}

.order-card__meta strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__body {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e4e4e4;
  background: var(--white);
}

.order-card__thumbs img {
  border-color: var(--white);
}

.order-card__body strong,
.order-card__body span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.order-card__notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--pink);
}

.order-card__notice > i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.order-card__notice strong,
.order-card__notice span {
  display: block;
}

.order-card__notice strong {
  font-size: 10px;
}

.order-card__notice span {
  margin-top: 3px;
  color: #666;
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-card__foot {
  padding-top: 9px;
  border-top: 1px solid #e7e7e7;
}

.order-card__foot > span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.user-profile {
  min-height: 118px;
  justify-content: space-between;
  padding: 15px 10px 20px;
  animation: surface-in 460ms var(--ease) both;
}

.user-profile > div {
  min-width: 0;
}

.user-profile small,
.user-profile span,
.user-profile h2 {
  display: block;
}

.user-profile small {
  color: #888;
  font-size: 9px;
}

.user-profile span {
  margin-top: 5px;
  color: #555;
  font-size: 12px;
}

.user-profile h2 {
  margin-top: 4px;
  font-size: 23px;
}

.user-profile img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid #dedede;
  box-shadow: 0 9px 22px rgba(17, 17, 17, .10);
}

.user-stats {
  min-height: 74px;
  border: 1px solid #dfdfdf;
  background: var(--white);
  box-shadow: 0 7px 17px rgba(17, 17, 17, .05);
  animation: surface-in 460ms var(--ease) 70ms both;
}

.user-stats > div {
  position: relative;
}

.user-stats > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 30px;
  background: #e3e3e3;
}

.member-banner {
  min-height: 92px;
  border-radius: 16px;
  animation: surface-in 460ms var(--ease) 135ms both;
}

.member-banner small,
.member-banner h3,
.member-banner p,
.member-banner b,
.member-banner span {
  display: block;
}

.member-banner small {
  color: #aaa;
  font-size: 9px;
}

.member-banner h3 {
  margin-top: 4px;
  font-size: 17px;
}

.member-banner > div:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.member-banner > div:last-child b {
  font-size: 32px;
}

.member-banner > div:last-child span {
  margin-top: 8px;
  color: #ccc;
  font-size: 9px;
}

.function-panel {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #dfdfdf;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 7px 17px rgba(17, 17, 17, .05);
  animation: surface-in 460ms var(--ease) 200ms both;
}

.function-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e7e7;
}

.function-heading small,
.function-heading h2 {
  display: block;
}

.function-heading small {
  color: #999;
  font-size: 9px;
}

.function-heading h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.function-heading em {
  color: #888;
  font-size: 10px;
  font-style: normal;
}

.function-grid {
  gap: 7px;
  margin-top: 10px;
}

.function-grid button {
  min-height: 86px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: #f0f0f0;
  animation: surface-in 440ms var(--ease) both;
}

.function-grid button:nth-child(1) { animation-delay: 250ms; }
.function-grid button:nth-child(2) { animation-delay: 295ms; }
.function-grid button:nth-child(3) { animation-delay: 340ms; }
.function-grid button:nth-child(4) { animation-delay: 385ms; }
.function-grid button:nth-child(5) { animation-delay: 430ms; }
.function-grid button:nth-child(6) { animation-delay: 475ms; }

.function-grid button > span {
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
}

/* Final mobile hierarchy pass: #FFF7F9 is the only pink; white, gray and black separate surfaces. */
.home-page {
  padding-right: 12px;
  padding-left: 12px;
}

.home-brand-stage {
  min-height: 160px;
  padding: 4px 10px 15px;
}

.home-logo-shell {
  width: 62px;
  height: 62px;
}

.home-logo-shell img {
  width: 55px;
  height: 55px;
}

.home-brand-stage h2 {
  margin-top: 8px;
  font-size: 23px;
}

.home-brand-stage > p {
  margin-top: 5px;
  font-size: 11px;
}

.home-brand-meta {
  margin-top: 7px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
  animation: surface-in 450ms var(--ease) 60ms both;
}

.home-section-head small,
.home-section-head strong {
  display: block;
}

.home-section-head small {
  color: #999;
  font-size: 8px;
}

.home-section-head strong {
  margin-top: 2px;
  font-size: 15px;
}

.home-section-head > span {
  color: #777;
  font-size: 10px;
}

.home-shortcut-grid {
  gap: 10px;
}

.home-shortcut {
  min-height: 148px;
  justify-content: flex-end;
  padding: 14px;
  border-radius: 16px;
}

.home-shortcut__icon {
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  box-shadow: 0 7px 15px rgba(17, 17, 17, .18);
}

.home-shortcut strong {
  margin-top: 0;
  font-size: 15px;
}

.home-shortcut small {
  min-height: 29px;
  margin-top: 4px;
  overflow: visible;
  line-height: 1.4;
  text-overflow: clip;
  white-space: normal;
}

.home-start {
  display: none;
}

.home-shop {
  margin-top: 11px;
  padding: 14px;
  border-radius: 16px;
  animation-delay: 230ms;
}

.home-notice-strip {
  min-height: 36px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: #f0f0f0;
  animation: none;
}

.home-shop__info {
  gap: 7px;
  margin-top: 10px;
}

.home-shop__buttons {
  gap: 8px;
  margin-top: 10px;
}

.home-shop__buttons button {
  min-height: 36px;
  border-radius: 10px;
}

.menu-page {
  padding-bottom: calc(96px + var(--safe-bottom));
}

.menu-shop {
  border-color: #dfdfdf;
  background: var(--white);
  animation: surface-in 440ms var(--ease) both;
}

.menu-shop__text span {
  color: var(--white);
  background: var(--black);
}

.menu-shop__notice {
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #f0f0f0;
}

.menu-mode {
  animation: surface-in 440ms var(--ease) 70ms both;
}

.menu-body {
  grid-template-columns: 88px minmax(0, 1fr);
  overflow: hidden;
  border-top: 1px solid #dfdfdf;
  background: var(--white);
  animation: surface-in 470ms var(--ease) 130ms both;
}

.menu-categories {
  border-right: 1px solid #e2e2e2;
  border-radius: 22px 0 0;
  background: #f0f0f0;
}

.menu-categories button {
  min-height: 48px;
  padding: 8px 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.menu-categories button.is-active::before {
  left: 7px;
  width: 3px;
}

.menu-products {
  overflow: hidden;
  padding: 17px 14px 110px 15px;
  background: var(--white);
}

.menu-products__head {
  min-height: 49px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
}

.menu-product--notice {
  border-color: #dedede;
  background: #f0f0f0;
}

.confirm-page {
  padding: 0 12px calc(150px + var(--safe-bottom));
}

.confirm-summary-bar {
  min-height: 64px;
  padding: 11px 14px;
  border-radius: 14px;
}

.confirm-surface {
  margin-top: 9px;
  padding: 13px;
  border-radius: 14px;
}

.confirm-notice-card,
.confirm-total {
  background: #f0f0f0;
}

.confirm-heading {
  margin-bottom: 10px;
}

.confirm-shop {
  min-height: 49px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: #f0f0f0;
}

.confirm-shop img {
  width: 34px;
  height: 34px;
}

.confirm-field {
  margin-top: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #e7e7e7;
  border-radius: 0;
}

.confirm-field:last-child {
  border-bottom: 0;
}

.confirm-field input,
.confirm-field textarea {
  border: 1px solid #e1e1e1;
  background: #f0f0f0;
}

.confirm-field.is-required {
  border-color: #e7e7e7;
}

.confirm-field.is-required input {
  border-color: var(--black);
}

.confirm-field textarea {
  height: 48px;
}

.confirm-goods {
  min-height: 56px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 7px 0;
}

.confirm-goods img {
  width: 42px;
  height: 42px;
}

.confirm-total > p {
  margin: 9px 0;
  border: 1px solid #e0e0e0;
  background: var(--white);
}

.confirm-submit {
  min-height: calc(72px + var(--safe-bottom));
  padding: 9px 12px calc(9px + var(--safe-bottom));
  border-color: #dcdcdc;
  background: var(--white);
}

.confirm-submit > button {
  min-height: 46px;
  border-radius: 11px;
}

.payment-sheet {
  padding: 8px 18px calc(18px + var(--safe-bottom));
  text-align: left;
}

.payment-sheet__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e5e5e5;
}

.payment-sheet__head > b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 20px;
}

.payment-sheet__head strong,
.payment-sheet__head span {
  display: block;
}

.payment-sheet__head strong {
  font-size: 14px;
}

.payment-sheet__head span {
  margin-top: 3px;
  color: #777;
  font-size: 10px;
}

.payment-sheet__amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 2px 9px;
}

.payment-sheet__amount > span {
  color: #777;
  font-size: 11px;
}

.payment-sheet__amount > strong {
  font-size: 29px;
}

.payment-sheet__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #5f5f5f;
  background: #f0f0f0;
  font-size: 10px;
}

.payment-sheet > p {
  margin: 10px 0 13px;
  padding: 0;
  color: #666;
  background: transparent;
  font-size: 10px;
  line-height: 1.45;
  text-align: left;
}

.payment-sheet__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.payment-sheet__actions button {
  min-height: 43px;
  border-radius: 11px;
  font-weight: 700;
}

/* 2026-08 review pass: restored black home card, reference-style checkout, narrow-screen order flow. */
html,
body {
  background: var(--pink);
}

.home-page {
  padding-right: 12px;
  padding-left: 12px;
  overflow-x: hidden;
}

.home-brand-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 25px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 14px 31px rgba(17, 17, 17, .18);
  animation: surface-in 480ms var(--ease) both;
}

.home-brand-card__top,
.home-brand-card__foot {
  position: absolute;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #bdbdbd;
  font-size: 9px;
  line-height: 1.2;
}

.home-brand-card__top {
  top: 17px;
}

.home-brand-card__foot {
  bottom: 17px;
}

.home-brand-card__top span,
.home-brand-card__foot span {
  min-width: 0;
}

.home-brand-card__top span:last-child,
.home-brand-card__foot span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.home-brand-card .home-logo-shell {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 9px 22px rgba(0, 0, 0, .24);
  animation: logo-in 540ms var(--ease) 80ms both, logo-float 3400ms ease-in-out 760ms infinite alternate;
}

.home-brand-card .home-logo-shell img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.home-brand-card h2 {
  margin: 9px 0 0;
  color: var(--white);
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
}

.home-brand-card > p {
  max-width: 300px;
  margin: 7px 0 0;
  color: #c8c8c8;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.home-action-stack {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
}

.home-order-card,
.home-shop {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 9px 23px rgba(17, 17, 17, .065);
}

.home-card-arrow {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-top: 1.8px solid var(--black);
  border-right: 1.8px solid var(--black);
  transform: rotate(45deg);
}

.home-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-order-card {
  position: relative;
  min-width: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 12px 13px;
  overflow: hidden;
  border-radius: 17px;
  text-align: left;
  animation: surface-in 460ms var(--ease) both;
}

.home-order-card:nth-child(1) { animation-delay: 90ms; }
.home-order-card:nth-child(2) { animation-delay: 150ms; }

.home-order-card__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-order-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  padding: 8px;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 5px 12px rgba(17, 17, 17, .18);
}

.home-order-card__icon svg {
  width: 18px;
  height: 18px;
}

.home-order-card small,
.home-order-card strong,
.home-order-card em {
  display: block;
  max-width: 100%;
}

.home-order-card small {
  margin-top: 10px;
  color: #999496;
  font-size: 8px;
  line-height: 1.2;
}

.home-order-card strong {
  margin-top: 4px;
  color: var(--black);
  font-size: 14px;
}

.home-order-card em {
  margin-top: 4px;
  color: #777273;
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-shop {
  margin-top: 11px;
  padding: 15px;
  border-radius: 19px;
  animation: surface-in 460ms var(--ease) 255ms both;
}

.home-shop__head {
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #ebe6e7;
}

.home-shop__head > div {
  min-width: 0;
}

.home-shop__head small {
  display: block;
  color: #9d999a;
  font-size: 8px;
}

.home-shop__head h3 {
  margin-top: 3px;
  line-height: 1.35;
}

.home-shop__head > span {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--black);
}

.home-notice-strip {
  min-height: 37px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid #f0e0e5;
  border-radius: 10px;
  color: #595657;
  background: var(--pink);
}

.home-shop__info {
  gap: 7px;
  margin-top: 10px;
}

.home-shop__info > div {
  grid-template-columns: 38px minmax(0, 1fr);
}

.home-shop__buttons {
  gap: 8px;
  margin-top: 10px;
}

.home-shop__buttons button {
  min-width: 0;
  min-height: 38px;
  border-radius: 10px;
  background: var(--white);
}

.confirm-page {
  width: 100%;
  padding: 0 12px calc(98px + var(--safe-bottom));
  overflow-x: hidden;
}

.confirm-surface {
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  padding: 0 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 21px rgba(17, 17, 17, .05);
}

.confirm-info-surface {
  margin-top: 0;
}

.confirm-order-head {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ebe6e7;
}

.confirm-order-head > div:first-child {
  min-width: 0;
}

.confirm-order-head small,
.confirm-order-head strong,
.confirm-order-head span,
.confirm-order-head b {
  display: block;
}

.confirm-order-head small {
  color: #9b9798;
  font-size: 8px;
}

.confirm-order-head strong {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.3;
}

.confirm-order-head > div:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.confirm-order-head span {
  color: #898586;
  font-size: 9px;
}

.confirm-order-head b {
  margin-top: 4px;
  font-size: 12px;
}

.confirm-shop {
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #ebe6e7;
  border-radius: 0;
  background: var(--white);
}

.confirm-shop img {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--pink);
}

.confirm-shop > div {
  min-width: 0;
  flex: 1;
}

.confirm-shop strong,
.confirm-shop p {
  display: block;
}

.confirm-shop strong {
  font-size: 12px;
}

.confirm-shop p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #777273;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-shop > em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.confirm-service-row {
  min-height: 51px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #ebe6e7;
}

.confirm-service-row > b {
  font-size: 12px;
}

.confirm-service-row > div {
  min-width: 0;
  text-align: right;
}

.confirm-service-row strong,
.confirm-service-row span {
  display: block;
}

.confirm-service-row strong {
  font-size: 11px;
}

.confirm-service-row span {
  margin-top: 3px;
  color: #8b8788;
  font-size: 9px;
}

.confirm-field {
  display: block;
  margin: 0;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #ebe6e7;
  border-radius: 0;
}

.confirm-field:last-child,
.confirm-field--remark {
  border-bottom: 0;
}

.confirm-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 7px;
}

.confirm-field > span b {
  color: var(--black);
  font-size: 12px;
}

.confirm-field > span em {
  color: #8a8687;
  font-size: 9px;
  font-style: normal;
}

.confirm-field.is-required > span em {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
}

.confirm-field > div {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.confirm-field input,
.confirm-field textarea {
  min-width: 0;
  border: 1px solid #e8dfe2;
  border-radius: 9px;
  color: var(--black);
  background: var(--pink);
  font-size: 11px;
}

.confirm-field input {
  width: 100%;
  height: 37px;
  padding: 0 9px;
}

.confirm-field > div input {
  flex: 1;
}

.confirm-field.is-required input {
  border-color: var(--black);
}

.confirm-field textarea {
  width: 100%;
  height: 56px;
  padding: 8px 9px;
  line-height: 1.4;
}

.confirm-field button {
  width: 76px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
  font-weight: 700;
}

.confirm-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 0 9px;
  border-bottom: 1px solid #ebe6e7;
}

.confirm-heading.line {
  padding-bottom: 9px;
  border-bottom-color: #ebe6e7;
}

.confirm-heading > div {
  min-width: 0;
}

.confirm-heading small,
.confirm-heading h2 {
  display: block;
}

.confirm-heading small {
  color: #9b9798;
  font-size: 8px;
}

.confirm-heading h2 {
  margin: 3px 0 0;
  color: var(--black);
  font-size: 15px;
}

.confirm-heading > em {
  flex: 0 0 auto;
  color: #777273;
  font-size: 9px;
  font-style: normal;
}

.confirm-goods {
  min-width: 0;
  min-height: 61px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #efe9eb;
}

.confirm-goods:last-child {
  border-bottom: 0;
}

.confirm-goods img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--pink);
}

.confirm-goods > div {
  min-width: 0;
}

.confirm-goods strong,
.confirm-goods span {
  display: block;
}

.confirm-goods strong {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.confirm-goods span {
  margin-top: 4px;
  color: #858081;
  font-size: 9px;
}

.confirm-goods > b {
  flex: 0 0 auto;
  font-size: 12px;
}

.confirm-notice-card,
.confirm-total {
  background: var(--white);
}

.confirm-notice-row {
  min-width: 0;
  min-height: 51px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid #efe9eb;
}

.confirm-notice-row:last-child {
  border-bottom: 0;
}

.confirm-notice-row > i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.confirm-notice-row > div {
  min-width: 0;
}

.confirm-notice-row strong,
.confirm-notice-row span {
  display: block;
  overflow-wrap: anywhere;
}

.confirm-notice-row strong {
  font-size: 11px;
}

.confirm-notice-row span {
  margin-top: 3px;
  color: #7e797a;
  font-size: 9px;
}

.confirm-notice-row > b {
  font-size: 10px;
}

.confirm-total > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: #555152;
  font-size: 11px;
}

.confirm-total > div:first-child {
  border-bottom: 1px solid #ebe6e7;
}

.confirm-total > p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  padding: 8px 9px;
  border: 1px solid #f0e0e5;
  border-radius: 9px;
  color: #625e5f;
  background: var(--pink);
  font-size: 9px;
  line-height: 1.45;
}

.confirm-total > p i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-style: normal;
  font-weight: 800;
}

.confirm-total .confirm-total__last {
  padding-top: 10px;
  color: var(--black);
  font-size: 13px;
}

.confirm-total__last b {
  font-size: 17px;
}

.confirm-submit {
  position: fixed;
  z-index: 35;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 430px);
  min-width: 0;
  min-height: calc(68px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -7px 19px rgba(17, 17, 17, .07);
  animation: none;
  transform: translateX(-50%);
}

.confirm-submit > div {
  min-width: 0;
  flex: 1;
}

.confirm-submit span,
.confirm-submit strong {
  display: block;
}

.confirm-submit span {
  color: #7c7778;
  font-size: 9px;
}

.confirm-submit strong {
  margin-top: 2px;
  color: var(--black);
  font-size: 18px;
}

.confirm-submit > button {
  min-width: 134px;
  min-height: 47px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--white);
  background: var(--black);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 7px 15px rgba(17, 17, 17, .20);
}

.orders-page {
  width: 100%;
  min-width: 0;
  padding-right: 12px;
  padding-left: 12px;
  overflow-x: hidden;
}

.orders-overview {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 19px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 10px 23px rgba(17, 17, 17, .18);
  animation: surface-in 470ms var(--ease) both;
}

.orders-overview > div:first-child {
  min-width: 0;
  flex: 1;
}

.orders-overview small,
.orders-overview h2,
.orders-overview p,
.orders-overview span,
.orders-overview b {
  display: block;
}

.orders-overview small,
.orders-overview span {
  color: #b6b6b6;
  font-size: 8px;
}

.orders-overview h2 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.3;
}

.orders-overview p {
  margin: 4px 0 0;
  color: #c7c7c7;
  font-size: 9px;
  line-height: 1.4;
}

.orders-overview > div:last-child {
  max-width: 42%;
  flex: 0 0 auto;
  text-align: right;
}

.orders-overview b {
  margin-top: 4px;
  font-size: 13px;
}

.orders-tabs {
  width: 100%;
  height: 43px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 5px 14px rgba(17, 17, 17, .035);
}

.orders-tabs button {
  min-width: 0;
  border-radius: 10px;
  color: #777273;
}

.orders-tabs button.is-active {
  color: var(--white);
  background: var(--black);
}

.orders-list {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.order-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 7px 18px rgba(17, 17, 17, .05);
}

.order-card__head {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.order-card__head-main {
  min-width: 0;
  flex: 1;
}

.order-card__head > div:last-child {
  max-width: 44%;
  flex: 0 0 auto;
  text-align: right;
}

.order-card__head strong,
.order-card__head span,
.order-card__head small {
  display: block;
  max-width: 100%;
}

.order-card__head strong {
  font-size: 14px;
  line-height: 1.35;
}

.order-card__head span,
.order-card__head small {
  margin-top: 3px;
  color: #898485;
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-card__head b {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__head b.dark {
  color: var(--white);
  border-color: var(--black);
  background: var(--black);
}

.order-card__meta {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 7px;
  margin-top: 10px;
}

.order-card__meta > div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #f0e2e6;
  border-radius: 9px;
  background: var(--pink);
}

.order-card__meta span,
.order-card__meta strong {
  display: block;
  max-width: 100%;
}

.order-card__meta span {
  color: #8b8687;
  font-size: 8px;
}

.order-card__meta strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__body {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 3px 0;
  border: 0;
  background: transparent;
}

.order-card__thumbs {
  max-width: 104px;
  display: flex;
  flex: 0 0 auto;
  padding-left: 4px;
  overflow: hidden;
}

.order-card__thumbs img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-left: -4px;
  border: 2px solid var(--white);
  border-radius: 8px;
  background: var(--pink);
}

.order-card__body > div:last-child {
  min-width: 0;
}

.order-card__body strong,
.order-card__body span {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.order-card__body strong {
  font-size: 12px;
  line-height: 1.4;
}

.order-card__body span {
  margin-top: 3px;
  color: #777273;
  font-size: 9px;
  line-height: 1.4;
}

.order-card__notice {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid #f0e0e5;
  border-radius: 10px;
  color: var(--ink);
  background: var(--pink);
}

.order-card__notice > i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.order-card__notice-main {
  min-width: 0;
  flex: 1;
}

.order-card__notice strong,
.order-card__notice span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.order-card__notice strong {
  font-size: 10px;
}

.order-card__notice span {
  margin-top: 3px;
  color: #666263;
  font-size: 9px;
  line-height: 1.35;
}

.order-card__foot {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #ebe6e7;
}

.order-card__foot > span {
  width: 100%;
  min-width: 0;
  color: #888384;
  font-size: 8px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.order-card__foot > div {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.order-card__foot button {
  min-width: 78px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  font-weight: 700;
}

.order-card__foot strong {
  flex: 0 0 auto;
  color: var(--black);
  font-size: 16px;
}

@media (max-width: 360px) {
  .home-brand-card {
    min-height: 230px;
  }

  .home-brand-card .home-logo-shell {
    width: 86px;
    height: 86px;
  }

  .home-brand-card .home-logo-shell img {
    width: 80px;
    height: 80px;
  }

  .confirm-submit > button {
    min-width: 118px;
  }

  .orders-overview {
    align-items: flex-start;
    padding: 13px;
  }

  .order-card {
    padding: 12px;
  }

  .order-card__thumbs {
    max-width: 78px;
  }

  .order-card__thumbs img {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
}

@media (min-width: 521px) {
  .confirm-submit {
    bottom: max(12px, calc((100dvh - 900px) / 2));
  }
}

@keyframes surface-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-in {
  from { opacity: 0; transform: translateY(9px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logo-float {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

@keyframes bar-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.toast {
  position: fixed;
  z-index: 200;
  top: 48%;
  left: 50%;
  max-width: min(310px, calc(100% - 48px));
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 17, 17, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(.96);
  transition: opacity 180ms ease, transform 220ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fade-up {
  animation: fade-up 430ms var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-in {
  from { transform: translateY(35px); opacity: .7; }
  to { transform: translateY(0); opacity: 1; }
}

@media (hover: hover) {
  button:hover {
    opacity: .86;
  }

  .kie-card:hover {
    border-color: #dcd6d8;
  }
}

@media (max-width: 520px) {
  html,
  body {
    background: var(--pink);
  }

  .preview-shell {
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sheet-mask {
    padding: 0;
  }

  .cart-sheet,
  .payment-sheet {
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 360px) {
  .home-hero {
    min-height: 196px;
  }

  .home-hero img {
    width: 92px;
    height: 92px;
  }

  .menu-body {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .menu-products {
    padding-right: 10px;
    padding-left: 9px;
  }

  .menu-product {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
  }

  .menu-product > img {
    width: 62px;
    height: 62px;
  }

  .function-grid {
    gap: 8px;
  }
}

/* Checkout reference layout: Kieyo dine-in-only adaptation. */
.confirm-page.ref-checkout {
  width: 100%;
  min-width: 0;
  min-height: calc(100dvh - 52px);
  padding: 0 0 calc(78px + var(--safe-bottom));
  overflow-x: clip;
  color: var(--black);
  background: var(--pink);
}

.ref-checkout__section {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 8px solid var(--pink);
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
  animation: checkout-section-in 420ms var(--ease) both;
}

.ref-checkout__section:nth-of-type(2) { animation-delay: 55ms; }
.ref-checkout__section:nth-of-type(3) { animation-delay: 110ms; }
.ref-checkout__section:nth-of-type(4) { animation-delay: 165ms; }

.ref-checkout__store {
  border-top: 0;
}

.ref-checkout__store-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee9ea;
}

.ref-checkout__store-row > img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border: 1px solid #ece6e8;
  border-radius: 50%;
  background: var(--pink);
}

.ref-checkout__store-row > div {
  min-width: 0;
  flex: 1;
}

.ref-checkout__store-row strong,
.ref-checkout__store-row span {
  display: block;
  max-width: 100%;
}

.ref-checkout__store-row strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-checkout__store-row span {
  margin-top: 4px;
  overflow: hidden;
  color: #7f7b7c;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-checkout__store-row > b {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
  font-weight: 750;
}

.ref-checkout__phone-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  cursor: text;
}

.ref-checkout__phone-row > strong {
  font-size: 14px;
  font-weight: 750;
}

.ref-checkout__phone-row > input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--black);
  background: var(--white);
  font-size: 15px;
  font-weight: 650;
  text-align: right;
}

.ref-checkout__phone-row > input::placeholder {
  color: #aaa5a7;
  font-size: 11px;
  font-weight: 400;
}

.ref-checkout__phone-row > em {
  padding: 5px 8px;
  border: 1px solid var(--black);
  border-radius: 6px;
  color: var(--black);
  background: var(--white);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.ref-checkout__dining {
  padding: 0 16px;
}

.ref-checkout__heading {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ref-checkout__heading > strong {
  font-size: 15px;
  font-weight: 800;
}

.ref-checkout__heading > span {
  color: #858182;
  font-size: 10px;
}

.ref-checkout__mode {
  position: relative;
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 9px;
  color: var(--black);
  background: var(--white);
}

.ref-checkout__mode-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}

.ref-checkout__mode-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke-width: 2;
}

.ref-checkout__mode > strong {
  font-size: 15px;
  font-weight: 780;
}

.ref-checkout__mode > i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 33px;
  height: 33px;
  overflow: hidden;
  background: var(--black);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.ref-checkout__mode > i::after {
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  content: '';
  transform: rotate(-45deg);
}

.ref-checkout__table-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  border-top: 1px solid #eee9ea;
}

.ref-checkout__table-row > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ref-checkout__table-row > div strong {
  font-size: 14px;
  font-weight: 750;
}

.ref-checkout__table-row > div em {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 8px;
  font-style: normal;
}

.ref-checkout__table-row > label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 6px;
}

.ref-checkout__table-row input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 9px;
  border: 1px solid #ddd7d9;
  border-radius: 7px;
  outline: 0;
  color: var(--black);
  background: var(--pink);
  font-size: 12px;
  text-align: right;
}

.ref-checkout__table-row input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, .07);
}

.ref-checkout__table-row button {
  min-width: 82px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--white);
  background: var(--black);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ref-checkout__goods-section {
  padding: 0;
}

.ref-checkout__goods-heading {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px;
  border-bottom: 1px solid #eee9ea;
}

.ref-checkout__goods-heading > strong {
  font-size: 16px;
  font-weight: 800;
}

.ref-checkout__goods-heading > span {
  color: #858182;
  font-size: 10px;
}

.ref-checkout__goods-row {
  width: auto;
  min-width: 0;
  min-height: 90px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 11px;
  margin: 0 16px;
  padding: 11px 0;
}

.ref-checkout__goods-row + .ref-checkout__goods-row {
  border-top: 1px solid #f2edee;
}

.ref-checkout__goods-row > img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--pink);
}

.ref-checkout__goods-row.is-notice > img {
  padding: 4px;
  object-fit: contain;
  border: 1px solid #f0e2e6;
}

.ref-checkout__goods-row > div {
  min-width: 0;
  align-self: start;
  padding-top: 2px;
}

.ref-checkout__goods-row > div strong,
.ref-checkout__goods-row > div span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ref-checkout__goods-row > div strong {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.ref-checkout__goods-row > div span {
  margin-top: 7px;
  color: #858182;
  font-size: 9px;
  line-height: 1.4;
}

.ref-checkout__goods-row > p {
  min-width: 64px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0;
  text-align: right;
}

.ref-checkout__goods-row > p b,
.ref-checkout__goods-row > p em {
  display: block;
  white-space: nowrap;
}

.ref-checkout__goods-row > p b {
  font-size: 15px;
  font-weight: 780;
}

.ref-checkout__goods-row > p em {
  color: #989395;
  font-size: 10px;
  font-style: normal;
}

.ref-checkout__amount-row,
.ref-checkout__pay-note {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px;
  border-top: 1px solid #eee9ea;
}

.ref-checkout__amount-row > strong,
.ref-checkout__pay-note > strong {
  font-size: 14px;
  font-weight: 750;
}

.ref-checkout__amount-row > b {
  font-size: 16px;
  font-weight: 800;
}

.ref-checkout__pay-note > span {
  min-width: 0;
  color: #777273;
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.ref-checkout__remark {
  min-height: 66px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 8px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: text;
}

.ref-checkout__remark > strong {
  font-size: 15px;
  font-weight: 750;
}

.ref-checkout__remark > textarea {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 11px 0 0;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  color: var(--black);
  background: var(--white);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.ref-checkout__remark > textarea::placeholder {
  color: #aaa5a7;
}

.ref-checkout__remark > i {
  width: 7px;
  height: 7px;
  border-top: 1px solid #9e999b;
  border-right: 1px solid #9e999b;
  transform: rotate(45deg);
}

.confirm-submit.ref-checkout__submit {
  position: fixed;
  z-index: 35;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 430px);
  min-width: 0;
  min-height: calc(70px + var(--safe-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: stretch;
  gap: 0;
  padding: 0 0 var(--safe-bottom);
  border-top: 1px solid #e9e3e5;
  background: var(--white);
  box-shadow: 0 -6px 18px rgba(17, 17, 17, .06);
  animation: checkout-submit-in 390ms var(--ease) 90ms both;
  transform: translateX(-50%);
}

.confirm-submit.ref-checkout__submit > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px;
}

.confirm-submit.ref-checkout__submit > div strong,
.confirm-submit.ref-checkout__submit > div span {
  display: block;
  max-width: 100%;
}

.confirm-submit.ref-checkout__submit > div strong {
  margin: 0;
  overflow: hidden;
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-submit.ref-checkout__submit > div span {
  margin-top: 4px;
  color: #858182;
  font-size: 9px;
  line-height: 1.35;
}

.confirm-submit.ref-checkout__submit > button {
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 0 14px;
  border-radius: 0;
  color: var(--white);
  background: var(--black);
  box-shadow: none;
  font-size: 15px;
  font-weight: 750;
}

.confirm-submit.ref-checkout__submit > button:active {
  opacity: .78;
}

@keyframes checkout-section-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes checkout-submit-in {
  from { opacity: 0; transform: translate(-50%, 100%); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 340px) {
  .ref-checkout__store-row,
  .ref-checkout__phone-row,
  .ref-checkout__goods-heading,
  .ref-checkout__goods-row,
  .ref-checkout__amount-row,
  .ref-checkout__pay-note {
    margin-right: 12px;
    margin-left: 12px;
  }

  .ref-checkout__dining,
  .ref-checkout__remark {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ref-checkout__phone-row {
    gap: 7px;
  }

  .ref-checkout__phone-row > input {
    font-size: 13px;
  }

  .ref-checkout__table-row {
    gap: 7px;
  }

  .ref-checkout__table-row > div strong {
    font-size: 13px;
  }

  .ref-checkout__table-row button {
    min-width: 72px;
    padding: 0 8px;
    font-size: 10px;
  }

  .confirm-submit.ref-checkout__submit {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .confirm-submit.ref-checkout__submit > div {
    padding-right: 12px;
    padding-left: 12px;
  }

  .confirm-submit.ref-checkout__submit > div strong {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .preview-shell,
  .phone,
  .app-view,
  .confirm-page.ref-checkout {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  .confirm-page.ref-checkout {
    overflow-x: hidden !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Kieyo 2026-08 payment refinement + motion sync. */
.qty__add {
  position: relative;
  overflow: visible;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), opacity 180ms ease;
}

.qty__add::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1.5px solid rgba(17, 17, 17, .22);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.55);
  pointer-events: none;
}

.qty.is-added .qty__add {
  animation: qty-add-pop 340ms cubic-bezier(.2, 1.45, .36, 1) both;
}

.qty.is-added .qty__add::after {
  animation: qty-ripple 360ms var(--ease) both;
}

.qty.is-added > span {
  animation: qty-count-bump 300ms cubic-bezier(.2, 1.45, .36, 1) both;
}

.menu-product.is-added {
  animation: product-added 360ms var(--ease) both;
}

.kie-cartbar {
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
  transform-origin: 24% 50%;
}

.kie-cartbar.is-pulsing {
  animation: cartbar-pulse 400ms cubic-bezier(.2, 1.35, .36, 1) both;
}

.kie-cartbar.is-pulsing .kie-cartbar__bag i {
  animation: qty-count-bump 330ms cubic-bezier(.2, 1.45, .36, 1) both;
}

.confirm-page.ref-checkout {
  padding: 0 12px calc(96px + var(--safe-bottom));
  background: var(--pink);
}

.ref-checkout__notice-banner {
  width: calc(100% - 24px);
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 12px 10px;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid #f0dfe4;
  border-radius: 17px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .045);
  animation: checkout-section-in 420ms var(--ease) both;
}

.ref-checkout__notice-banner > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.ref-checkout__notice-banner > div {
  min-width: 0;
  flex: 1;
}

.ref-checkout__notice-banner strong,
.ref-checkout__notice-banner span {
  display: block;
  max-width: 100%;
}

.ref-checkout__notice-banner strong {
  font-size: 12px;
  line-height: 1.2;
}

.ref-checkout__notice-banner span {
  margin-top: 4px;
  color: #625e60;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ref-checkout__section {
  width: auto;
  margin: 0 12px 10px;
  border: 1px solid #f0e6e9;
  border-top: 1px solid #f0e6e9;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(17, 17, 17, .052);
}

.ref-checkout__notice-banner {
  width: auto;
}

.ref-checkout__store-row,
.ref-checkout__phone-row,
.ref-checkout__goods-heading,
.ref-checkout__goods-row,
.ref-checkout__amount-row,
.ref-checkout__pay-note {
  margin-right: 13px;
  margin-left: 13px;
}

.ref-checkout__dining,
.ref-checkout__remark {
  padding-right: 13px;
  padding-left: 13px;
}

.ref-checkout__mode {
  border-width: 1px;
  border-radius: 14px;
  background: var(--pink);
}

.ref-checkout__table-row > label input {
  border-color: #efe1e6;
  border-radius: 12px;
  background: var(--pink);
}

.ref-checkout__table-row > label button {
  border-radius: 12px;
  transition: transform 180ms var(--ease), opacity 180ms ease;
}

.ref-checkout__table-row > label button:active,
.confirm-submit.ref-checkout__submit > button:active {
  transform: scale(.985);
}

.ref-checkout__goods-row > img {
  border-radius: 14px;
}

.confirm-submit.ref-checkout__submit {
  bottom: max(8px, var(--safe-bottom));
  width: min(calc(100% - 24px), 406px);
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) 128px;
  overflow: hidden;
  border: 1px solid #ede4e7;
  border-radius: 18px;
  box-shadow: 0 -5px 23px rgba(17, 17, 17, .11);
}

.confirm-submit.ref-checkout__submit > button {
  min-height: 52px;
  margin: 6px 6px 6px 0;
  border-radius: 14px;
}

.payment-sheet {
  padding: 10px 18px 18px;
  border: 1px solid rgba(240, 230, 233, .9);
  border-radius: 26px 26px 20px 20px;
}

.payment-sheet__head {
  padding: 10px;
  border-radius: 18px;
  background: var(--pink);
}

.payment-sheet__amount {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #f0e6e9;
  border-radius: 18px;
  background: #fff;
}

.payment-sheet__actions button {
  border-radius: 14px;
  transition: transform 180ms var(--ease), opacity 180ms ease;
}

.payment-sheet__actions button:active {
  transform: scale(.985);
}

@keyframes qty-add-pop {
  0% { transform: scale(.82); }
  58% { transform: scale(1.13); }
  100% { transform: scale(1); }
}

@keyframes qty-ripple {
  0% { opacity: .58; transform: scale(.55); }
  100% { opacity: 0; transform: scale(1.22); }
}

@keyframes qty-count-bump {
  0% { opacity: .5; transform: translateY(4px) scale(.78); }
  62% { opacity: 1; transform: translateY(-2px) scale(1.16); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes product-added {
  0% { transform: scale(1); }
  45% { transform: scale(.992) translateY(1px); background: rgba(255, 247, 249, .68); }
  100% { transform: scale(1); background: transparent; }
}

@keyframes cartbar-pulse {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-3px) scale(1.015); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 340px) {
  .confirm-page.ref-checkout {
    padding-right: 0;
    padding-left: 0;
  }

  .ref-checkout__notice-banner,
  .ref-checkout__section {
    width: auto;
    margin-right: 8px;
    margin-left: 8px;
  }

  .ref-checkout__store-row,
  .ref-checkout__phone-row,
  .ref-checkout__goods-heading,
  .ref-checkout__goods-row,
  .ref-checkout__amount-row,
  .ref-checkout__pay-note {
    margin-right: 10px;
    margin-left: 10px;
  }

  .ref-checkout__dining,
  .ref-checkout__remark {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ref-checkout__store-row {
    gap: 7px;
  }

  .ref-checkout__store-row > img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .ref-checkout__store-row > b {
    padding: 4px 7px;
    font-size: 9px;
  }

  .ref-checkout__phone-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ref-checkout__phone-row > em {
    display: none;
  }

  .ref-checkout__table-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ref-checkout__table-row > label {
    width: 100%;
  }

  .ref-checkout__goods-row {
    grid-template-columns: 46px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .ref-checkout__goods-row > img {
    width: 46px;
    height: 46px;
  }

  .ref-checkout__goods-row > p b {
    font-size: 12px;
  }

  .confirm-submit.ref-checkout__submit {
    width: min(calc(100% - 16px), 304px);
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .confirm-submit.ref-checkout__submit > div {
    padding-right: 10px;
    padding-left: 12px;
  }

  .confirm-submit.ref-checkout__submit > button {
    padding: 0 8px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qty.is-added .qty__add,
  .qty.is-added .qty__add::after,
  .qty.is-added > span,
  .menu-product.is-added,
  .kie-cartbar.is-pulsing,
  .kie-cartbar.is-pulsing .kie-cartbar__bag i {
    animation: none !important;
  }
}

.kie-still *,
.kie-still *::before,
.kie-still *::after {
  animation: none !important;
  transition-duration: 0ms !important;
}

.kie-still .ref-checkout__section,
.kie-still .ref-checkout__notice-banner,
.kie-still .confirm-submit.ref-checkout__submit,
.kie-still .home-brand-card,
.kie-still .home-order-card,
.kie-still .home-shop,
.kie-still .menu-product,
.kie-still .kie-cartbar,
.kie-still .card,
.kie-still .page-enter {
  opacity: 1 !important;
  transform: none !important;
}

.kie-still .confirm-submit.ref-checkout__submit {
  transform: translateX(-50%) !important;
}

/* Kieyo 2026-08 final polish: pure pink canvas, smooth payment, strict mobile fit. */
html,
body,
.preview-shell,
.app-view {
  background: var(--pink) !important;
}

.preview-shell,
.phone,
.app-view {
  max-width: 100vw;
  overflow-x: hidden;
}

.kie-still .preview-shell,
.kie-still .phone,
.kie-still .app-view,
.kie-still .confirm-page.ref-checkout {
  width: 100vw !important;
  max-width: 100vw !important;
}

.confirm-page.ref-checkout {
  overflow-x: hidden !important;
  background: var(--pink) !important;
}

.ref-checkout__notice-banner,
.ref-checkout__section {
  will-change: transform, opacity;
}

.ref-checkout__section:active,
.home-order-card:active,
.home-shop__info > div:active,
.menu-product:active,
.order-card:active,
.user-function:active {
  transform: translateY(1px) scale(.996);
}

.ref-checkout__notice-banner {
  border-color: #eedfe4;
  background: rgba(255, 255, 255, .94);
}

.ref-checkout__notice-banner > i {
  box-shadow: 0 5px 12px rgba(17, 17, 17, .16);
}

.ref-checkout__section {
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.ref-checkout__store-row,
.ref-checkout__phone-row,
.ref-checkout__table-row,
.ref-checkout__goods-row,
.ref-checkout__amount-row,
.ref-checkout__pay-note,
.ref-checkout__remark {
  min-width: 0;
}

.ref-checkout__table-row > label,
.ref-checkout__phone-row > input,
.ref-checkout__remark > textarea {
  max-width: 100%;
}

.confirm-submit.ref-checkout__submit {
  max-width: calc(100vw - 24px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
}

.payment-mask {
  padding: 0 12px max(10px, var(--safe-bottom));
  background: rgba(17, 17, 17, .32);
  backdrop-filter: blur(8px);
}

.payment-sheet {
  width: min(calc(100vw - 24px), 406px) !important;
  max-width: calc(100vw - 24px) !important;
  padding: 10px 14px calc(14px + var(--safe-bottom)) !important;
  overflow: hidden;
  border: 1px solid rgba(242, 226, 231, .96) !important;
  border-radius: 28px 28px 22px 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 247, 249, .92) 0%, #fff 40%, #fff 100%) !important;
  box-shadow: 0 -16px 40px rgba(17, 17, 17, .16) !important;
}

.payment-sheet .sheet-handle {
  margin-top: 2px;
  background: #d8cdd1;
}

.payment-sheet__head {
  margin-top: 8px !important;
  padding: 12px !important;
  overflow: hidden;
  border: 1px solid #f0e1e6 !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .78) !important;
}

.payment-sheet__head > b {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: #111 !important;
  box-shadow: 0 7px 16px rgba(17, 17, 17, .16);
}

.payment-sheet__head strong {
  color: #161616;
  font-size: 15px !important;
  font-weight: 850;
}

.payment-sheet__head span {
  color: #7a7376 !important;
  font-size: 10px !important;
}

.payment-sheet__amount {
  margin-top: 12px !important;
  padding: 16px 14px !important;
  border: 1px solid #f0e2e7 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .045);
}

.payment-sheet__amount > span {
  color: #777173 !important;
}

.payment-sheet__amount > strong {
  color: #111;
  font-size: 31px !important;
  letter-spacing: -.6px;
}

.payment-sheet__meta {
  margin-top: 10px;
  padding: 10px 12px !important;
  border: 1px solid #f0e3e8;
  border-radius: 16px !important;
  color: #5f5a5c !important;
  background: var(--pink) !important;
}

.payment-sheet > p {
  margin: 10px 2px 14px !important;
  color: #696365 !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
}

.payment-sheet__actions {
  gap: 10px !important;
}

.payment-sheet__actions button {
  min-width: 0;
  min-height: 46px !important;
  border-radius: 16px !important;
  font-size: 12px;
  font-weight: 800;
  transition: transform 180ms var(--ease), opacity 180ms ease, box-shadow 220ms ease;
}

.payment-sheet__actions button.dark {
  box-shadow: 0 8px 18px rgba(17, 17, 17, .16);
}

.payment-sheet__actions button:active {
  transform: scale(.982) !important;
}

@media (max-width: 340px) {
  .confirm-submit.ref-checkout__submit {
    max-width: calc(100vw - 16px) !important;
  }

  .payment-mask {
    padding-right: 8px;
    padding-left: 8px;
  }

  .payment-sheet {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .payment-sheet__amount > strong {
    font-size: 27px !important;
  }

  .payment-sheet__actions {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
  }
}
