/**
 * Compact 行（多条预约 list 内的紧凑条）：`.rc-compact` 容器 + `__row / __left /
 * __middle / __scroll / __right / __right-stack / __pay-row / __items-count /
 * __amount / __badge`，含跑马灯动画类与已付 / 未付徽章配色。
 */

/* ==================== Compact mode (multi-booking items) ==================== */

.rc-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.rc-compact__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}

.rc-compact__left {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 120px;
}

.rc-compact__name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/** 多层联系人：宽度不足时在「整段」之间折行，段内不换行 */
.rc-compact__name--chunks {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 2px;
  max-width: 100%;
}

.rc-compact__phone {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rc-compact__middle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}

.rc-compact__scroll {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  width: fit-content;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.rc-compact__scroll--animate {
  animation: pisell-res-frc-marquee 6s ease-in-out infinite alternate;
}

.rc-compact__scroll--animate:hover {
  animation-play-state: paused;
}


.rc-compact__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rc-compact__right-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.rc-compact__pay-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rc-compact__items-count {
  font-size: 10px;
  color: var(--c-text-3);
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  max-width: 100%;
}

.rc-compact__items-count--in-scroll {
  font-size: inherit;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.rc-compact__amount {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.rc-compact__amount .rc-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.rc-compact__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1.5px solid;
  line-height: 1.35;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.rc-compact__badge--paid {
  border-color: #7ef5a0;
  color: #7ef5a0;
}

.rc-compact__badge--unpaid {
  border-color: var(--rc-pay-unpaid);
  color: var(--rc-pay-unpaid);
}

.rc-compact .rc-progress {
  margin-top: -2px;
}

.rc-compact .rc-progress__bar {
  height: 3px;
}
