* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f4f4f4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.phone-shell {
  width: min(100vw, 442px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #f2f2f2;
  color: #202020;
  position: relative;
}

.app-content {
  min-height: 100svh;
  background: #f4f4f4;
  padding-top: 5px;
  position: relative;
}

[data-view="passed"] {
  display: none;
}

body.is-passed [data-view="waiting"] {
  display: none;
}

body.is-passed [data-view="passed"] {
  display: block;
}

.queue-card {
  height: 139px;
  margin: 0 6px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.passed-card {
  min-height: 326px;
  margin: 0 10px;
  padding: 39px 14px 14px;
  background: #fff;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.passed-card h2 {
  margin: 0;
  text-align: center;
  color: #151515;
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
  white-space: nowrap;
}

.passed-progress {
  height: 84px;
  margin-top: 26px;
  position: relative;
}

.passed-track {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  height: 7px;
  border-radius: 999px;
  background: #cfcfcf;
}

.passed-dot {
  position: absolute;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid #dfdfdf;
  border-radius: 50%;
  background: #fff;
}

.passed-dot.first {
  left: 0;
}

.passed-dot.middle {
  left: 50%;
  transform: translateX(-50%);
}

.passed-dot.last {
  right: 0;
}

.passed-labels,
.passed-times {
  position: absolute;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #656565;
  text-align: center;
}

.passed-labels {
  top: 27px;
  font-size: 14px;
  line-height: 20px;
}

.passed-labels span:first-child,
.passed-times span:first-child {
  text-align: left;
}

.passed-labels span:last-child,
.passed-times span:last-child {
  text-align: right;
}

.passed-times {
  top: 50px;
  font-size: 12px;
  line-height: 16px;
}

.passed-shop {
  margin-top: 7px;
  padding-top: 24px;
  border-top: 1px dotted #e4e4e4;
}

.passed-shop h3 {
  margin: 0 0 14px;
  color: #111;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.passed-shop h3 span {
  color: #333;
  font-size: 19px;
  line-height: 12px;
  vertical-align: -1px;
}

.passed-shop p {
  margin: 8px 0 0;
  color: #696969;
  font-size: 14px;
  line-height: 19px;
}

.passed-shop button {
  width: 100%;
  height: 41px;
  margin-top: 22px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #202020;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.time-chip {
  min-width: 130px;
  height: 25px;
  padding: 0 12px;
  border-radius: 0 0 9px 9px;
  background: #fbf5ee;
  color: #9d725b;
  box-shadow: 0 4px 15px rgba(198, 142, 98, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
}

.time-chip strong {
  color: #e8541f;
  font-size: 12px;
  font-weight: 800;
}

.queue-card h2 {
  margin: 43px 0 0;
  text-align: center;
  color: #f05a1f;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}

.wait-count {
  margin: 12px 0 0;
  text-align: center;
  color: #1f1f1f;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.wait-count [data-ahead-count] {
  color: #f05a1f;
  font-weight: 900;
}

.progress-area {
  --active-center: 217px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 38px;
}

.track {
  position: absolute;
  left: 38px;
  right: 32px;
  top: 8px;
  height: 3px;
  border-radius: 999px;
  background: #f4f4f4;
  overflow: hidden;
}

.track-fill {
  display: block;
  width: calc(var(--active-center) - 38px);
  height: 100%;
  border-radius: inherit;
  background: #f05a1f;
}

.dot {
  position: absolute;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dot.done {
  left: 17px;
  top: 2px;
  width: 13px;
  height: 13px;
  background: #f06a1f;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.dot.active {
  left: calc(var(--active-center) - 10px);
  top: -1px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid rgba(232, 118, 56, 0.22);
  box-shadow: 0 0 0 2px #f7eee9 inset;
}

.dot.active::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f05a1f;
}

.dot.last {
  right: 17px;
  top: 3px;
  width: 12px;
  height: 12px;
  background: #ececec;
}

.progress-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #222;
  font-size: 11px;
  line-height: 14px;
}

.progress-labels span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.progress-labels span:first-child {
  left: 16px;
}

.progress-labels span:last-child {
  right: 15px;
}

.progress-labels .active-label {
  left: var(--active-center);
  color: #f05a1f;
  font-weight: 800;
  transform: translateX(-50%);
}

.info-card,
.merchant-card {
  margin-left: 5px;
  margin-right: 5px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.015);
}

.info-card {
  height: 113px;
  margin-top: 14px;
  padding: 14px 11px 8px;
}

.shop-row,
.merchant-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-row h3,
.merchant-title h3 {
  margin: 0;
  color: #1f1f1f;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.shop-row h3 span {
  color: #3a3a3a;
  font-size: 18px;
  line-height: 12px;
  vertical-align: -1px;
}

.notice-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #595959;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  transform: translateY(-1px);
}

.notice-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notice-switch i {
  width: 23px;
  height: 14px;
  border-radius: 999px;
  background: #f05a1f;
  position: relative;
  box-shadow: 0 0 0 1px rgba(240, 90, 31, 0.22);
}

.notice-switch i::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px;
  right: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.info-card p {
  margin: 6px 0 0;
  color: #676767;
  font-size: 11px;
  line-height: 13px;
  font-weight: 500;
}

.info-bottom {
  height: 29px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}

.info-bottom span {
  flex: 1;
  height: 27px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #fafafa 0%, #fff 100%);
  color: #6b6b6b;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
}

.info-bottom button {
  width: 65px;
  height: 27px;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.merchant-card {
  height: 101px;
  margin-top: 5px;
  padding: 13px 11px 10px;
  overflow: hidden;
}

.merchant-title a {
  color: #6b6b6b;
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
}

.merchant-title a span {
  color: #5d5d5d;
  font-size: 16px;
  vertical-align: -1px;
}

.merchant-card p {
  margin: 3px 0 0;
  color: #666;
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
}

.merchant-title + p {
  margin-top: 4px;
}

.passed-merchant {
  height: auto;
  min-height: 89px;
  margin: 10px 10px 0;
  padding: 15px 14px 17px;
  border-radius: 12px;
}

.passed-merchant h3 {
  margin: 0 0 11px;
  color: #111;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.passed-merchant p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 22px;
}

@media (max-width: 380px) {
  .phone-shell {
    min-height: 100svh;
  }
}
