/* Show the learner's available and reserved lesson credits in the calendar heading. */
.calendar-workspace .mobile-calendar-balance[data-booking-credit-status] {
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 4px 8px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: start;
  white-space: normal;
}
.calendar-workspace .mobile-calendar-balance[data-booking-credit-status]:not([hidden]):has([data-credit-pending]) {
  display: inline-flex;
  margin-inline-start: auto;
}
.calendar-workspace [data-credit-pending] {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff2c6;
  color: #714b06;
  font-weight: 750;
}
.calendar-workspace .booking-pending-credit-note {
  color: #714b06;
  font-size: .9em;
}
@media (max-width: 700px) {
  .calendar-workspace .page-heading:has([data-booking-credit-status]:not([hidden])) {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .calendar-workspace .mobile-calendar-balance[data-booking-credit-status]:not([hidden]) {
    display: inline-flex;
    margin-inline-start: auto;
    min-height: 40px;
  }
}
