/* Booking engine UI — availability strip + mini calendar */

.tb-avail-panel {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(15, 28, 22, 0.04);
  border: 1px solid rgba(15, 28, 22, 0.1);
}

.tb-avail-panel h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest, #0f1c16);
}

.tb-avail-panel .tb-avail-msg {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft, #3a3834);
}

.tb-avail-panel .tb-avail-msg.is-ok {
  color: #1a5c3a;
  font-weight: 600;
}

.tb-avail-panel .tb-avail-msg.is-bad {
  color: #8a2424;
  font-weight: 600;
}

.tb-avail-panel .tb-avail-msg.is-wait {
  color: var(--muted, #7a756e);
}

.tb-cal-mini {
  user-select: none;
}

.tb-cal-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.tb-cal-mini-head strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.tb-cal-nav {
  display: inline-flex;
  gap: 0.35rem;
}

.tb-cal-nav button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 28, 22, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--forest, #0f1c16);
}

.tb-cal-nav button:hover {
  background: rgba(15, 28, 22, 0.06);
}

.tb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.tb-cal-grid .dow {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #7a756e);
  padding: 0.2rem 0 0.35rem;
}

.tb-cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--forest, #0f1c16);
  position: relative;
  padding: 0;
}

.tb-cal-day:hover:not(:disabled):not(.taken) {
  background: rgba(201, 166, 107, 0.22);
}

.tb-cal-day.mute {
  opacity: 0.28;
  cursor: default;
  background: transparent;
}

.tb-cal-day.taken,
.tb-cal-day:disabled.taken {
  background: repeating-linear-gradient(
    -45deg,
    #f0e4e4,
    #f0e4e4 4px,
    #e8d4d4 4px,
    #e8d4d4 8px
  );
  color: #8a2424;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.85;
}

.tb-cal-day.in-range {
  background: rgba(15, 28, 22, 0.88);
  color: #fffcf8;
}

.tb-cal-day.range-start,
.tb-cal-day.range-end {
  background: var(--champagne, #c9a66b);
  color: #0f1c16;
  box-shadow: 0 0 0 2px rgba(15, 28, 22, 0.15);
}

.tb-cal-day.today:not(.taken):not(.in-range) {
  outline: 2px solid rgba(201, 166, 107, 0.7);
  outline-offset: -2px;
}

.tb-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--muted, #7a756e);
}

.tb-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tb-cal-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.tb-cal-legend .lg-free {
  background: #fff;
  border: 1px solid #ddd;
}
.tb-cal-legend .lg-taken {
  background: #e8d4d4;
}
.tb-cal-legend .lg-pick {
  background: #c9a66b;
}

.tb-suggest {
  margin-top: 0.65rem;
  font-size: 0.85rem;
}

.tb-suggest button {
  margin-left: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--forest, #0f1c16);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

#booking-form .field .tb-live-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #7a756e);
}

.booking-wrap .tb-no-pay-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted, #7a756e);
}
