/* صفحه وضعیت نوبت: حلقه پیشرفت و چهار حالت رنگی.
   آرام با سبز برند سایت؛ بقیه حالت‌ها از نمونه‌کار. فونت از IRANSans صفحه به ارث می‌رسد. */

.wq-live {
  --wq-ink: #1a202c;
  --wq-ink-soft: #4a5568;
  --wq-line: rgba(26, 32, 44, 0.12);
  --wq-accent: #0b6e4f;
  --wq-accent-bg: #e8f5f0;
  text-align: center;
  color: var(--wq-ink);
}

body.wq-state-calm,
body.wq-state-approaching,
body.wq-state-urgent,
body.wq-state-now {
  transition: background-color 0.6s ease;
}

.wq-live.wq-state-calm,
body.wq-state-calm {
  --wq-accent: #0b6e4f;
  --wq-accent-bg: #e8f5f0;
}

body.wq-state-calm {
  background-color: #e7f2ee;
}

.wq-live.wq-state-approaching,
body.wq-state-approaching {
  --wq-accent: #b8791a;
  --wq-accent-bg: #f5ebd8;
}

body.wq-state-approaching {
  background-color: #f6efe3;
}

.wq-live.wq-state-urgent,
body.wq-state-urgent {
  --wq-accent: #c4432a;
  --wq-accent-bg: #f7e4de;
}

body.wq-state-urgent {
  background-color: #f8ebe7;
}

.wq-live.wq-state-now,
body.wq-state-now {
  --wq-accent: #7a1e3c;
  --wq-accent-bg: #f3dde5;
}

body.wq-state-now {
  background-color: #f3dde5;
}

.wq-clinic {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wq-ink-soft);
}

.wq-patient {
  margin: 0 0 28px;
  font-size: 20px;
  font-weight: 700;
}

.wq-ring-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 20px;
}

.wq-ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wq-ring-bg,
.wq-ring-fg {
  fill: none;
  stroke-width: 14;
}

.wq-ring-bg {
  stroke: var(--wq-line);
}

.wq-ring-fg {
  stroke: var(--wq-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s ease;
}

.wq-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wq-ring-number {
  margin: 0;
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.6s ease;
}

.wq-ring-label {
  margin: 6px 0 0;
  min-height: 1.2em;
  font-size: 15px;
  font-weight: 500;
  color: var(--wq-ink-soft);
}

.wq-state-now .wq-ring-number {
  color: #7a1e3c;
}

.wq-state-now .wq-ring-wrap {
  animation: wq-pulse 1.1s ease-in-out infinite;
}

@keyframes wq-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

.wq-banner {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--wq-accent-bg);
  color: var(--wq-accent);
  font-size: 17px;
  font-weight: 700;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.wq-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--wq-line);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
}

.wq-meta > div {
  flex: 1;
  text-align: center;
}

.wq-meta span {
  display: block;
  color: var(--wq-ink-soft);
}

.wq-meta b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.wq-meta-divider {
  flex: 0 0 1px !important;
  align-self: stretch;
  background: var(--wq-line);
}

.wq-conn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wq-ink-soft);
}

.wq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b6e4f;
  flex: 0 0 auto;
}

.wq-dot-live {
  animation: wq-dotpulse 1.6s ease-in-out infinite;
}

.wq-dot-off {
  background: #c4432a;
  animation: none;
}

@keyframes wq-dotpulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.wq-confirm {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: #7a1e3c;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.wq-state-now .wq-confirm {
  display: block;
}

.wq-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.wq-chip {
  border: 1px solid var(--wq-line);
  border-radius: 999px;
  padding: 9px 16px;
  background: none;
  color: var(--wq-ink-soft);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wq-chip[data-on="true"] {
  border-color: #0b6e4f;
  color: #0b6e4f;
}

.wq-ios-guide,
.wq-push-msg {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--wq-ink-soft);
}

.wq-ios-guide {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--wq-line);
}

@media (prefers-reduced-motion: reduce) {
  .wq-state-now .wq-ring-wrap,
  .wq-dot-live {
    animation: none;
  }
  .wq-ring-fg,
  .wq-banner,
  .wq-ring-number,
  body.wq-state-calm,
  body.wq-state-approaching,
  body.wq-state-urgent,
  body.wq-state-now {
    transition: none;
  }
}
