/* ==========================================================================
   CHIP SYSTEM — tonal style
   Booking status + payment status chips

   Structure: <span class="chip chip--{state}">
                <span class="chip__dot"></span>
                Label text
              </span>

   Sizing: base styles are the WEB size. On screens ≤480px, chips
   automatically switch to the compact mobile size via the media query
   at the bottom — no extra classes needed.
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Booking status ---------- */

.chip--unconfirmed { background: #FEF3C7; color: #92400E; }
.chip--unconfirmed .chip__dot { background: #D97706; }

.chip--pending { background: #FDE9D0; color: #9A3412; }
.chip--pending .chip__dot { background: #EA580C; }

.chip--confirmed { background: #D1FAE5; color: #065F46; }
.chip--confirmed .chip__dot { background: #059669; }

.chip--completed { background: #DBEAFE; color: #1E40AF; }
.chip--completed .chip__dot { background: #2563EB; }

.chip--cancelled { background: #FEE2E2; color: #991B1B; }
.chip--cancelled .chip__dot { background: #DC2626; }

.chip--noshow { background: #F3E8FF; color: #6B21A8; }
.chip--noshow .chip__dot { background: #9333EA; }

/* ---------- Payment status ---------- */

.chip--prepaid { background: #CCFBF1; color: #115E59; }
.chip--prepaid .chip__dot { background: #0D9488; }

.chip--deposit { background: #E0E7FF; color: #3730A3; }
.chip--deposit .chip__dot { background: #4F46E5; }

.chip--partial { background: #FEF9C3; color: #854D0E; }
.chip--partial .chip__dot { background: #CA8A04; }

.chip--unpaid { background: #F3F4F6; color: #374151; }
.chip--unpaid .chip__dot { background: #6B7280; }

.chip--refunded { background: #FCE7F3; color: #9D174D; }
.chip--refunded .chip__dot { background: #DB2777; }

/* ---------- Schedule / list layout ---------- */

.sch-block .chip,
.sch-block-head-badges .chip {
  margin-top: 0;
  flex-shrink: 0;
  font-size: 11px;
  padding: 3px 9px;
  gap: 5px;
}

.sch-block .chip__dot {
  width: 5px;
  height: 5px;
}

.sch-block-head-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sch-week-chip .chip,
.sch-month-chip .chip {
  margin-top: 4px;
  font-size: 8px;
  padding: 2px 7px;
  gap: 4px;
}

.sch-week-chip .chip__dot,
.sch-month-chip .chip__dot {
  width: 4px;
  height: 4px;
}

#page-schedule[data-density="compact"] .sch-block .chip {
  font-size: 10px;
  padding: 3px 8px;
}

#page-schedule[data-density="compact"] .sch-week-chip .chip,
#page-schedule[data-density="compact"] .sch-month-chip .chip {
  margin-top: 0;
  font-size: 7px;
  padding: 2px 6px;
}

#page-schedule[data-density="compact"] .sch-week-chip .chip__dot,
#page-schedule[data-density="compact"] .sch-month-chip .chip__dot {
  width: 4px;
  height: 4px;
}

/* ---------- Mobile: compact size ---------- */

@media (max-width: 480px) {
  .chip {
    font-size: 10.5px;
    padding: 3px 9px;
    gap: 4px;
  }
  .chip__dot {
    width: 5px;
    height: 5px;
  }
}
