/* Member Benefits — control panel (cart, checkout, calendar, event
   pages), booking-widget notice, account portal panel. */

/* ── Control panel ──────────────────────────────────────────── */
.tsa-mb-controls {
  border: 1px solid #d9d3c5;
  background: #faf8f3;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.5;
}
.tsa-mb-controls__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}
.tsa-mb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tsa-mb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.tsa-mb-item:first-child {
  border-top: 0;
}
.tsa-mb-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tsa-mb-item__name {
  font-weight: 700;
}
.tsa-mb-item__status {
  font-size: 13.5px;
  opacity: 0.72;
}
.tsa-mb-item.is-on .tsa-mb-item__status {
  color: #1f5d3b;
  opacity: 1;
}
.tsa-mb-item.is-spent .tsa-mb-item__name,
.tsa-mb-item.is-spent .tsa-mb-item__status {
  opacity: 0.5;
}
.tsa-mb-controls__note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 13px;
  opacity: 0.7;
}

/* Calendar: a slim strip in the header, between the view tabs and the
   filter row. Borrows the calendar's own palette so it reads as part
   of the page rather than a bolted-on card. */
.tsa-cal .tsa-mb-controls--calendar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--cal-teal, #1f5d3b);
  border-radius: 0;
  padding: 2px 0 2px 14px;
  margin: 0 0 22px;
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-controls__title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cal-teal, #1f5d3b);
  opacity: 1;
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-item {
  border-top: 0;
  padding: 0;
  gap: 8px;
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-item__text {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-item__name {
  font-size: 14px;
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-item__status {
  font-size: 13px;
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-btn {
  padding: 4px 12px;
  font-size: 12.5px;
  border-color: var(--cal-teal, #1f5d3b);
  color: var(--cal-teal, #1f5d3b);
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-btn:hover {
  background: var(--cal-teal, #1f5d3b);
  color: var(--cal-cream, #fff);
}
.tsa-cal .tsa-mb-controls--calendar .tsa-mb-controls__note {
  display: none; /* the per-benefit lines already say it */
}

/* ── Buttons ────────────────────────────────────────────────── */
.tsa-mb-btn {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #b9b1a0;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tsa-mb-btn:hover {
  background: #1f5d3b;
  border-color: #1f5d3b;
  color: #fff;
}
.tsa-mb-btn:disabled,
.tsa-mb-btn.is-busy {
  opacity: 0.5;
  cursor: wait;
}
.tsa-mb-btn--inline {
  padding: 4px 12px;
  font-size: 12.5px;
  margin-left: 10px;
}
.tsa-mb-error {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #a3341f;
}

/* ── Booking widget notice (location pages) ─────────────────── */
.tsa-mb-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0 4px;
  font-size: 14px;
  line-height: 1.45;
}
.tsa-mb-note__text {
  font-weight: 600;
}
.tsa-mb-note--ok {
  background: #eef4ee;
  border: 1px solid #c2d8c6;
  color: #1f4d33;
}
.tsa-mb-note--muted {
  background: #f5f3ee;
  border: 1px solid #e2ddd1;
  color: #6b6455;
}
.tsa-mb-note--muted .tsa-mb-note__text {
  font-weight: 500;
}

/* ── Account portal panel ───────────────────────────────────── */
.tsa-mb-panel {
  margin-bottom: 28px;
}
.tsa-mb-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.tsa-mb-panel__link {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.tsa-mb-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 10px;
}
.tsa-mb-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tsa-mb-benefit__name {
  font-weight: 700;
  font-size: 15px;
}
.tsa-mb-panel__note {
  font-size: 13.5px;
  opacity: 0.75;
  line-height: 1.5;
}
.tsa-mb-history {
  margin-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
}
.tsa-mb-history__row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  font-size: 13.5px;
  padding: 4px 0;
}
.tsa-mb-history__row.is-reversed {
  opacity: 0.55;
  text-decoration: line-through;
}

@media (max-width: 640px) {
  .tsa-mb-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .tsa-mb-panel__row {
    flex-direction: column;
    gap: 8px;
  }
  .tsa-mb-note {
    font-size: 13.5px;
  }
  .tsa-mb-btn--inline {
    margin-left: 0;
    margin-top: 8px;
  }
}

.tsa-mb-item__link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
