.cms-public-schedule {
  margin-top: 1rem;
  --cms-public-schedule-sticky-top: 0px;
  --cms-public-schedule-class-col-width: 176px;
}

.cms-inline-schedule-preview .cms-public-schedule {
  margin-top: 0.75rem;
}

.cms-public-schedule__scroll {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #fff;
}

.cms-public-schedule__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #0f172a;
  font-size: 0.96rem;
}

.cms-public-schedule__class-col {
  width: var(--cms-public-schedule-class-col-width);
}

.cms-public-schedule__day-col {
  width: calc((100% - var(--cms-public-schedule-class-col-width)) / 7);
}

.cms-public-schedule__table th,
.cms-public-schedule__table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  text-align: center;
  vertical-align: middle;
}

table.cms-public-schedule__table thead th {
  position: sticky;
  top: var(--cms-public-schedule-sticky-top, 0px);
  z-index: 3;
  background: #eff6ff;
  color: #0f3b82;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.14);
}

.ui-window-sticky table.cms-public-schedule__table thead th {
  position: static !important;
  background: #eff6ff;
  color: #0f3b82;
  border-color: rgba(15, 23, 42, 0.14);
}

.cms-public-schedule__table tbody th {
  width: var(--cms-public-schedule-class-col-width);
  min-width: var(--cms-public-schedule-class-col-width);
  background: #f8fafc;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.cms-public-schedule__time + .cms-public-schedule__time {
  margin-top: 0.25rem;
}

.cms-public-schedule__empty {
  color: #94a3b8;
}

.cms-public-schedule-empty {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.22);
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

@media (max-width: 640px) {
  .cms-public-schedule__table {
    min-width: 620px;
    font-size: 0.9rem;
  }

  .cms-public-schedule__table th,
  .cms-public-schedule__table td {
    padding: 0.55rem 0.6rem;
  }

  table.cms-public-schedule__table thead th:first-child,
  .cms-public-schedule__table tbody th {
    position: sticky;
    left: 0;
  }

  table.cms-public-schedule__table thead th:first-child {
    z-index: 5;
  }

  .cms-public-schedule__table tbody th {
    z-index: 2;
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.14);
  }
}
