/* PowerHouse calendar theme override
   Scoped via rootClassName: 'powerhouse-embed'
   Loaded after bt-calendar.base.css and bt-calendar.theme-midnight.css
*/

.bt-cal.powerhouse-embed {
  /* Align embed variables with PowerHouse tokens */
  --bt-font: "Archivo", "Trebuchet MS", sans-serif;

  --bt-bg: rgba(0, 0, 0, 0.18);
  --bt-text: var(--ph-text);
  --bt-muted: var(--ph-muted);

  --bt-border: var(--ph-line);
  --bt-border-strong: rgba(245, 245, 247, 0.16);

  --bt-surface: rgba(0, 0, 0, 0.18);
  --bt-surface-muted: rgba(0, 0, 0, 0.30);

  --bt-danger-bg: rgba(255, 45, 85, 0.10);
  --bt-danger-border: rgba(255, 45, 85, 0.35);
  --bt-danger-text: rgba(245, 245, 247, 0.92);

  --bt-primary: var(--ph-accent);
  --bt-primary-contrast: #0b0b0e;
}

/* Sessions embed defaults to min-height: 100vh; override to behave like a section */
.bt-cal.powerhouse-embed.bt-cal--sessions {
  min-height: 0;
  height: auto;
}

/* Make the calendar feel like a native section card */
.bt-cal.powerhouse-embed {
  border-radius: 14px;
}

.bt-cal.powerhouse-embed .bt-cal__grid,
.bt-cal.powerhouse-embed .bt-cal__grid.bt-cal__grid--agenda {
  border-radius: 14px;
  border-color: var(--ph-line);
}

.bt-cal.powerhouse-embed .bt-cal__bar {
  margin-bottom: 10px;
}

.bt-cal.powerhouse-embed .bt-cal__titleRange {
  letter-spacing: 0.7px;
  font-weight: 800;
}

.bt-cal.powerhouse-embed .bt-cal__titleWeek {
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.bt-cal.powerhouse-embed .bt-cal__btn,
.bt-cal.powerhouse-embed .bt-cal__field select,
.bt-cal.powerhouse-embed .bt-cal__field input {
  border-radius: 12px;
  border-color: rgba(245, 245, 247, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.bt-cal.powerhouse-embed .bt-cal__nav {
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.bt-cal.powerhouse-embed .bt-cal__dayStrip {
  background: rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(245, 245, 247, 0.12);
}

.bt-cal.powerhouse-embed .bt-cal__weekChip,
.bt-cal.powerhouse-embed .bt-cal__dayChip {
  border-radius: 14px;
  border-color: rgba(245, 245, 247, 0.12);
}

.bt-cal.powerhouse-embed .bt-cal__agendaCard {
  border-radius: 14px;
  border-color: rgba(245, 245, 247, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.bt-cal.powerhouse-embed .bt-cal__agendaTitle {
  color: var(--ph-text);
}

.bt-cal.powerhouse-embed .bt-cal__agendaRight {
  border-color: rgba(245, 245, 247, 0.12);
}

/* Bottom nav: keep it subdued and premium */
.bt-cal.powerhouse-embed .bt-cal__bottomNav {
  border-top-color: rgba(245, 245, 247, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.bt-cal.powerhouse-embed .bt-cal__bottomNavBtn {
  border-radius: 14px;
}

.bt-cal.powerhouse-embed .bt-cal__bottomNavBtn.is-active {
  border-color: rgba(255, 45, 85, 0.55);
}

/* Modal Overlay & Dialog */
.bt-cal.powerhouse-embed .bt-cal__modal-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px);
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog {
  background: rgba(12, 12, 16, 0.95) !important;
  border-radius: 14px;
  border: 1px solid rgba(245, 245, 247, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog h3 {
  color: var(--ph-accent) !important;
  letter-spacing: 0.7px;
  font-weight: 800;
  border-bottom: 2px solid rgba(255, 45, 85, 0.35) !important;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Tab buttons in modal */
.bt-cal.powerhouse-embed .bt-cal__modal-dialog .bt-cal__tab-group {
  background: rgba(0, 0, 0, 0.28) !important;
  border-color: rgba(245, 245, 247, 0.16) !important;
  border-radius: 14px;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog .bt-cal__tab-btn {
  color: rgba(245, 245, 247, 0.68) !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: transparent !important;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog .bt-cal__tab-btn.is-active {
  background: var(--ph-accent) !important;
  color: #0b0b0e !important;
  font-weight: 700;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog .bt-cal__tab-btn:hover:not(.is-active) {
  background: rgba(255, 45, 85, 0.15) !important;
  color: var(--ph-accent) !important;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog input {
  background: rgba(0, 0, 0, 0.22) !important;
  border-color: rgba(245, 245, 247, 0.16) !important;
  color: rgba(245, 245, 247, 0.92) !important;
  border-radius: 12px;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog input:focus {
  border-color: var(--ph-accent) !important;
  outline: 2px solid rgba(255, 45, 85, 0.2) !important;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog label {
  color: rgba(245, 245, 247, 0.92) !important;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog p {
  color: rgba(245, 245, 247, 0.68) !important;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog .bt-cal__dialogBtn {
  background: rgba(0, 0, 0, 0.22) !important;
  border-color: rgba(245, 245, 247, 0.16) !important;
  color: rgba(245, 245, 247, 0.92) !important;
  border-radius: 12px;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog .bt-cal__dialogBtn--primary {
  background: var(--ph-accent) !important;
  border-color: var(--ph-accent) !important;
  color: #0b0b0e !important;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.bt-cal.powerhouse-embed .bt-cal__modal-dialog .bt-cal__dialogBtn--primary:hover {
  background: rgba(255, 65, 95, 1) !important;
}

/* Subscription list (confirm booking) */
.bt-cal.powerhouse-embed .bt-cal__servicesList label,
.bt-cal.powerhouse-embed .bt-cal__servicesList label * {
  color: rgba(245, 245, 247, 0.92) !important;
}

.bt-cal.powerhouse-embed .bt-cal__servicesList label input[type="radio"] {
  accent-color: var(--ph-accent);
}

/* Focus state: align with page */
.bt-cal.powerhouse-embed :focus-visible {
  outline: 2px solid rgba(255, 45, 85, 0.6);
  outline-offset: 2px;
}
