/* waiting-screen.css — 等候面板(行動已送出,等老師結算)
   2026-06-03 §E:回滾橫向遮罩 .hd-waitband/--band(rAF 量位+絕對定位在部分 iPad 大跑版),
   還原右欄直立卡 .hd-waiting--side(待在右欄原位)。 */

/* 2026-06-03 §UI:壓扁等待卡,撐滿右欄寬(對齊聊天卡),嵌回佇列原空缺、不再頂掉聊天 */
.hd-waiting {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;   /* 不再置中:卡片撐滿欄寬 */
  justify-content: center;
  padding: 0;             /* 外層留白歸零,貼齊佇列原本位置 */
  box-sizing: border-box;
}

.hd-waiting__card {
  background: var(--hd-card, #fff);
  border: 1px solid var(--hd-line, #e5e1d8);
  border-radius: var(--hd-radius-lg, 18px);
  box-shadow: var(--hd-shadow-sm, 0 8px 32px rgba(0, 0, 0, .08));
  padding: 16px 18px;     /* 32/28 → 16/18:整卡變矮 */
  text-align: center;
  max-width: none;        /* 取消 540px 上限 → 與聊天卡同寬 */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;/* 內容在被分到的高度內垂直置中 */
}

.hd-waiting__spinner {
  width: 36px;
  height: 36px;
  border: 5px solid var(--hd-border, #e5e1d8);
  border-top-color: var(--hd-accent, #6B9E47);
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: hd-waiting-spin 1s linear infinite;
}

@keyframes hd-waiting-spin {
  to { transform: rotate(360deg); }
}

.hd-waiting__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--hd-ink, #2c2a26);
  margin: 0 0 4px;
}

.hd-waiting__subtitle {
  font-size: 13px;
  color: var(--hd-ink-soft, #6b665e);
  margin: 0 0 12px;
  line-height: 1.5;
}

.hd-waiting__progress {
  margin: 0 0 10px;
}

.hd-waiting__bar {
  height: 10px;
  background: var(--hd-bg-soft, #f0ece3);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hd-waiting__bar-fill {
  height: 100%;
  background: var(--hd-accent, #6B9E47);
  transition: width .4s ease;
}

.hd-waiting__count {
  font-size: 14px;
  color: var(--hd-ink-soft, #6b665e);
}

.hd-waiting__count strong {
  color: var(--hd-ink, #2c2a26);
  font-size: 16px;
}

.hd-waiting__round {
  font-size: 13px;
  color: var(--hd-ink-soft, #6b665e);
  border-top: 1px dashed var(--hd-border, #e5e1d8);
  padding-top: 10px;
  margin-top: 10px;
}
