/*
  Customer booking-management surface (Round 18). Same palette as
  calendar-widget.css (#EFF2EC / white / #1D9A47 / #56D680) so it reads as
  part of the same site, not a separate mini-app.
*/

.tz-mgmt { padding: 40px 24px 80px; max-width: 560px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #0B0B0B; }
.tz-mgmt:not([data-tzbe-active]) { display: none; }

.tz-mgmt__card {
  background: #fff; border: 1px solid rgba(11,11,11,.08); border-radius: 18px;
  padding: 28px 24px; box-shadow: 0 10px 30px rgba(11,11,11,.06);
}

.tz-mgmt__status-title { font-size: 22px; font-weight: 800; margin: 0 0 16px; }

.tz-mgmt__slot-line { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; font-size: 15px; }
.tz-mgmt__slot-label { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #8a918a; }

.tz-mgmt__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.tz-mgmt__btn {
  border: none; border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; color: #fff; background: #0B0B0B;
}
.tz-mgmt__btn--primary { background: #1D9A47; }
.tz-mgmt__btn--danger { background: #B23A3A; }
.tz-mgmt__btn--secondary { background: #fff; color: #0B0B0B; border: 1px solid rgba(11,11,11,.2); }
.tz-mgmt__btn--slot { background: #fff; color: #0B0B0B; border: 1px solid rgba(11,11,11,.15); display: block; width: 100%; text-align: left; margin-bottom: 8px; }
.tz-mgmt__btn--slot:hover { border-color: #1D9A47; }

.tz-mgmt__confirm-text { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.tz-mgmt__error-text { color: #B23A3A; font-weight: 600; }
.tz-mgmt__note { font-size: 13px; color: #636363; margin-top: 16px; }

.tz-mgmt__slot-list { margin: 14px 0; }

.tz-mgmt__loading { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.tz-mgmt__spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(29,154,71,.25);
  border-top-color: #1D9A47; animation: tz-mgmt-spin 0.8s linear infinite; display: inline-block;
}
@keyframes tz-mgmt-spin { to { transform: rotate(360deg); } }

.tz-mgmt__result { background: #fff; border-radius: 18px; padding: 24px; border: 1px solid rgba(11,11,11,.08); }
.tz-mgmt__result--error p { color: #B23A3A; font-weight: 600; margin: 0 0 14px; }

/* Reschedule month-calendar day picker (Round 22) — same visual grammar as
   frontend/booking/calendar-widget.css's own month grid, reimplemented
   here under the tz-mgmt__ namespace since this surface has its own CSS
   file, never wired to calendar-widget.css. */
.tz-mgmt__cal { margin: 14px 0 18px; }
.tz-mgmt__cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; font-weight: 700; text-transform: capitalize; }
.tz-mgmt__cal-nav button { border: 1px solid rgba(11,11,11,.16); background: #fff; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.tz-mgmt__cal-nav button[disabled] { opacity: .3; cursor: not-allowed; }
.tz-mgmt__cal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; font-size: 11px; font-weight: 700; color: #8a918a; text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.tz-mgmt__cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tz-mgmt__cal-day {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(11,11,11,.1); border-radius: 10px; cursor: pointer; background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; color: #0B0B0B; min-height: 38px;
}
.tz-mgmt__cal-day.is-outside { visibility: hidden; pointer-events: none; border: 0; background: transparent; }
.tz-mgmt__cal-day.has-slots { border-color: rgba(29,154,71,.4); }
.tz-mgmt__cal-day.has-slots::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #1D9A47; }
.tz-mgmt__cal-day.no-slots { color: #c7cbc5; cursor: not-allowed; background: #FAFBFA; }
.tz-mgmt__cal-day.is-today:not(.is-selected) { border-color: #0B0B0B; border-width: 1.5px; }
.tz-mgmt__cal-day.is-selected { background: #1D9A47; color: #fff; border-color: #1D9A47; }
.tz-mgmt__cal-day.is-selected.has-slots::after { background: #fff; }
.tz-mgmt__cal-day[disabled] { pointer-events: none; }

.tz-mgmt__cal-hint { font-size: 13px; color: #8a918a; margin: 10px 0; }
.tz-mgmt__reschedule-slots { margin: 14px 0; }
.tz-mgmt__reschedule-slots-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.tz-mgmt__slot-list--pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tz-mgmt__slot-pill {
  border: 1.5px solid #1D9A47; color: #1D9A47; background: #fff; border-radius: 999px;
  padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 40px;
}
.tz-mgmt__slot-pill:hover { background: #1D9A47; color: #fff; }

@media (max-width: 480px) {
  .tz-mgmt__cal-days { gap: 3px; }
  .tz-mgmt__cal-day { font-size: 13px; min-height: 34px; }
}
