.msh-schedule {
  --msh-schedule-blue: #3765e2;
  --msh-schedule-orange: #ffad33;
  --msh-schedule-ink: #101010;
  --msh-schedule-muted: #5d6675;
  --msh-schedule-line: #dbdbdb;
  --msh-schedule-soft: #f6f8fb;
  --msh-schedule-blue-soft: #eef3ff;
  color: var(--msh-schedule-ink);
  font-family: "Urbane", sans-serif;
}

.msh-schedule *,
.msh-schedule *::before,
.msh-schedule *::after {
  box-sizing: border-box;
}

.msh-schedule-list {
  display: grid;
  gap: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.msh-schedule-session {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.55fr) auto minmax(150px, 0.9fr) minmax(145px, 0.85fr) auto;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  padding: 24px 28px 24px 34px;
  border: 1px solid rgba(55, 101, 226, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(55, 101, 226, 0.06), rgba(55, 101, 226, 0) 34%),
    #fff;
  box-shadow: 0 4px 34px rgba(0, 0, 0, 0.08);
}

.msh-schedule-session::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 6px;
  border-radius: 0 20px 20px 0;
  background: #3765E2;
}

.msh-schedule-date {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: var(--msh-schedule-blue-soft);
  color: var(--msh-schedule-blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  padding: 14px 16px;
}

.msh-schedule-main h3 {
  margin: 0;
  color: var(--msh-schedule-ink);
  font-size: 20px !important;
  font-weight: 500;
  line-height: 1.3;
}

.msh-schedule-location {
  margin-top: 7px;
  color: var(--msh-schedule-muted);
  font-size: 14px;
  line-height: 1.35;
}

.msh-schedule-details-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--msh-schedule-orange);
  border-radius: 5px;
  background: rgba(255, 173, 51, 0.12);
  color: var(--msh-schedule-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 14px;
}

.msh-schedule button.msh-schedule-details-btn {
  padding: 12px;
}

.msh-schedule-details-btn:hover,
.msh-schedule-details-btn:focus {
  background: var(--msh-schedule-orange);
  color: var(--msh-schedule-ink);
  outline: none;
}

.msh-schedule-instructor,
.msh-schedule-faculty {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.msh-schedule-instructor span,
.msh-schedule-faculty span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.msh-schedule button.msh-schedule-person-btn {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  padding: 0;
  text-align: left;
}

.msh-schedule button.msh-schedule-person-btn:hover,
.msh-schedule button.msh-schedule-person-btn:focus,
.msh-schedule button.msh-schedule-person-btn:focus-visible,
.msh-schedule button.msh-schedule-person-btn:active,
.msh-schedule button.msh-schedule-person-btn:focus span,
.msh-schedule button.msh-schedule-person-btn:focus-visible span,
.msh-schedule button.msh-schedule-person-btn:active span {
  border: none !important;
  text-decoration: none !important;
}

.msh-schedule button.msh-schedule-person-btn:focus,
.msh-schedule button.msh-schedule-person-btn:focus-visible {
  outline: none !important;
}

.msh-schedule-avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--msh-schedule-blue);
  border-radius: 30px;
  background: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  object-fit: cover;
}

.msh-schedule-avatar,
.msh-schedule-avatar img {
  border-radius: 30px !important;
}

.msh-schedule-avatar.is-small {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 30px;
  font-size: 11px;
}

.msh-schedule-avatar.is-large {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
  font-size: 22px;
}

.msh-schedule-instructor img.msh-schedule-avatar {
  border-radius: 30px;
}

.msh-schedule-avatar.is-placeholder {
  color: var(--msh-schedule-blue);
}

.msh-schedule-price {
  text-align: right;
}

.msh-schedule-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: baseline;
}

.msh-schedule-price-now {
  color: var(--msh-schedule-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.msh-schedule-price-old {
  color: var(--msh-schedule-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: line-through;
}

.msh-schedule-price-note {
  margin-top: 6px;
  color: var(--msh-schedule-blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.msh-schedule-enroll {
  display: flex;
  justify-content: flex-end;
}

.msh-schedule-enroll-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--msh-schedule-blue);
  border-radius: 50px;
  background: var(--msh-schedule-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 12px 14px 12px 22px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: ease-out 0.6s;
}

.msh-schedule-enroll-btn::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 12px;
  background: url('/wp-content/themes/hello-child/assets/images/circled-arrow-white.svg') no-repeat center / contain;
}

.msh-schedule-enroll-btn:hover,
.msh-schedule-enroll-btn:focus {
  box-shadow: inset -260px 0 0 0 #fff;
  color: var(--msh-schedule-blue) !important;
}

.msh-schedule-enroll-btn:hover::after,
.msh-schedule-enroll-btn:focus::after {
  background-image: url('/wp-content/themes/hello-child/assets/images/circled-arrow-blue.svg');
}

.msh-schedule-modal[hidden] {
  display: none;
}

.msh-schedule-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.msh-schedule-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.62);
}

.msh-schedule-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 48px));
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(55, 101, 226, 0.18);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  outline: none;
  padding: 42px 34px 34px;
}

.msh-schedule-modal-open {
  overflow: hidden;
}

.msh-schedule-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--msh-schedule-blue);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.msh-schedule button.msh-schedule-close {
  display: flex !important;
  width: 40px !important;
  height: 40px !important;
  padding: 12px !important;
}

.msh-schedule-close span {
  display: block;
  transform: translateY(-1px);
}

.msh-schedule-modal-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding-right: 44px;
  margin-bottom: 28px;
}

.msh-schedule-modal-summary h3 {
  margin: 0;
  color: var(--msh-schedule-ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.msh-schedule-modal-summary p {
  margin: 10px 0 0;
  color: var(--msh-schedule-muted);
  font-size: 16px;
  line-height: 1.45;
}

.msh-schedule-modal-cta {
  text-align: left;
}

.msh-schedule-modal-cta .msh-schedule-price-line {
  justify-content: flex-start;
}

.msh-schedule-modal-cta .msh-schedule-enroll-btn {
  margin-top: 12px;
}

.msh-schedule-tutor-modal .msh-schedule-dialog {
  width: min(780px, calc(100vw - 48px));
}

.msh-schedule-tutor-profile {
  display: grid;
  gap: 24px;
}

.msh-schedule-tutor-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 44px;
}

.msh-schedule-tutor-hero h3 {
  margin: 0;
  color: var(--msh-schedule-ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.1;
}

.msh-schedule-tutor-hero p {
  margin: 8px 0 0;
  color: var(--msh-schedule-blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.msh-schedule-tutor-description {
  color: var(--msh-schedule-muted);
  font-size: 15px;
  line-height: 1.65;
}

.msh-schedule-tutor-description > :first-child {
  margin-top: 0;
}

.msh-schedule-tutor-description > :last-child {
  margin-bottom: 0;
}

.msh-schedule-tutor-direct-link {
  justify-self: start;
}

.msh-schedule-tutor-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.msh-schedule-tutor-section {
  border: 1px solid rgba(219, 219, 219, 0.72);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.msh-schedule-tutor-section h4 {
  margin: 0 0 10px;
  color: var(--msh-schedule-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.msh-schedule-tutor-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.msh-schedule-tutor-section li {
  color: var(--msh-schedule-muted);
  font-size: 14px;
  line-height: 1.45;
}

.msh-schedule-tutor-section a {
  color: var(--msh-schedule-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.msh-schedule-tutor-media {
  grid-column: 1 / -1;
}

.msh-schedule-tutor-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.msh-schedule-tutor-media-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(219, 219, 219, 0.72);
  border-radius: 12px;
  background: var(--msh-schedule-soft);
  color: var(--msh-schedule-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
}

.msh-schedule-tutor-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.msh-schedule-tutor-media-card span {
  padding: 10px 12px;
}

.msh-schedule-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.msh-schedule-table-wrap h4 {
  margin: 0;
  color: var(--msh-schedule-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.msh-schedule-note {
  margin: 8px 0 18px;
  color: var(--msh-schedule-muted);
  font-size: 14px;
  line-height: 1.45;
}

.msh-schedule-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(219, 219, 219, 0.72);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.msh-schedule-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 760px;
}

.msh-schedule-table.has-week-column {
  min-width: 920px;
}

table.msh-schedule-table * {
  vertical-align: middle;
}

.msh-schedule-table th,
.msh-schedule-table td {
  border: 0;
  border-right: 1px solid rgba(219, 219, 219, 0.72);
  border-bottom: 1px solid rgba(219, 219, 219, 0.72);
  padding: 10px;
  text-align: left;
}

body table.msh-schedule-table td,
body table.msh-schedule-table th {
  border-left: none;
}

body table.msh-schedule-table thead:first-child tr:first-child td,
body table.msh-schedule-table thead:first-child tr:first-child th {
  border-block-start: 0 !important;
}

.msh-schedule-table th {
  background: var(--msh-schedule-blue-soft);
  color: var(--msh-schedule-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.msh-schedule-table th:last-child,
.msh-schedule-table td:last-child {
  border-right: 0;
}

.msh-schedule-table td {
  color: var(--msh-schedule-ink);
  font-size: 14px;
  line-height: 1.45;
}

.msh-schedule-week {
  color: var(--msh-schedule-blue);
  background: var(--msh-schedule-blue-soft) !important;
  text-align: center !important;
}

table.msh-schedule-table .msh-schedule-week.is-week-shaded,
table.msh-schedule-table .msh-schedule-week-mobile.is-week-shaded {
  background: var(--msh-schedule-blue-soft) !important;
}

table.msh-schedule-table .msh-schedule-week.is-week-plain,
table.msh-schedule-table .msh-schedule-week-mobile.is-week-plain {
  background: hsla(0, 0%, 50%, 0.051) !important;
}

.msh-schedule-week strong,
.msh-schedule-week span,
.msh-schedule-week-mobile strong,
.msh-schedule-week-mobile span,
.msh-schedule-day-mobile strong,
.msh-schedule-day-mobile span {
  display: block;
}

.msh-schedule-week strong {
  font-size: 15px;
  line-height: 1.2;
}

.msh-schedule-week span {
  margin-top: 5px;
  color: var(--msh-schedule-muted);
  font-size: 12px;
  line-height: 1.35;
}

.msh-schedule-week-mobile {
  display: none;
}

.msh-schedule-day-mobile {
  display: none;
}

.msh-schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

table.msh-schedule-table tbody > tr.is-day-group-shaded > td:not(.msh-schedule-week):not(.msh-schedule-week-mobile) {
  background-color: hsla(0, 0%, 50%, 0.051) !important;
}

table.msh-schedule-table tbody > tr.is-day-group-plain > td:not(.msh-schedule-week):not(.msh-schedule-week-mobile) {
  background-color: #fff !important;
}

.msh-schedule-table th:nth-child(1),
.msh-schedule-table td:nth-child(1) {
  width: 13%;
}

.msh-schedule-table th:nth-child(2),
.msh-schedule-table td:nth-child(2) {
  width: 15%;
}

.msh-schedule-table th:nth-child(3),
.msh-schedule-table td:nth-child(3) {
  width: 18%;
}

.msh-schedule-table th:nth-child(4),
.msh-schedule-table td:nth-child(4) {
  width: 20%;
}

.msh-schedule-table.has-week-column th:nth-child(1),
.msh-schedule-table.has-week-column td:nth-child(1) {
  width: 12%;
}

.msh-schedule-table.has-week-column th:nth-child(2),
.msh-schedule-table.has-week-column td:nth-child(2) {
  width: 12%;
}

.msh-schedule-table.has-week-column th:nth-child(3),
.msh-schedule-table.has-week-column td:nth-child(3) {
  width: 15%;
}

.msh-schedule-table.has-week-column th:nth-child(4),
.msh-schedule-table.has-week-column td:nth-child(4) {
  width: 18%;
}

.msh-schedule-table.has-week-column th:nth-child(5),
.msh-schedule-table.has-week-column td:nth-child(5) {
  width: 20%;
}

.msh-schedule-modal .msh-schedule-price-now {
  font-size: 24px;
}

.msh-schedule-modal .msh-schedule-price-old {
  font-size: 18px;
}

@media (min-width: 981px) {
  .msh-schedule-modal-summary {
    padding-right: 0 !important;
  }
}

@media (max-width: 980px) {
  .msh-schedule-session {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 22px 22px 22px 28px;
  }

  .msh-schedule-main,
  .msh-schedule-detail-cell,
  .msh-schedule-instructor,
  .msh-schedule-price,
  .msh-schedule-enroll {
    text-align: left;
    justify-content: flex-start;
  }

  .msh-schedule-price-line {
    justify-content: flex-start;
  }

  .msh-schedule-modal-cta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .msh-schedule-session {
    grid-template-columns: 1fr;
  }

  .msh-schedule-dialog {
    padding: 26px 18px;
    width: min(100%, calc(100vw - 24px));
  }

  .msh-schedule-modal {
    padding: 12px;
  }

  .msh-schedule-modal-summary {
    padding-right: 38px;
  }

  .msh-schedule-tutor-modal .msh-schedule-dialog {
    width: min(100%, calc(100vw - 24px));
  }

  .msh-schedule-tutor-hero {
    align-items: flex-start;
    gap: 14px;
    padding-right: 38px;
  }

  .msh-schedule-avatar.is-large {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    font-size: 17px;
  }

  .msh-schedule-tutor-sections {
    grid-template-columns: 1fr;
  }

  .msh-schedule-table {
    min-width: 0;
  }

  .msh-schedule-table.has-week-column {
    min-width: 0;
  }

  .msh-schedule-table thead {
    display: none;
  }

  .msh-schedule-table,
  .msh-schedule-table tbody,
  .msh-schedule-table tr,
  .msh-schedule-table td {
    display: block;
    width: 100%;
  }

  .msh-schedule-table tr {
    padding: 0;
  }

  .msh-schedule-table tr.is-week-start:first-of-type {
    padding-top: 0;
  }

  .msh-schedule-table tr.is-week-start {
    padding-bottom: 0;
  }

  .msh-schedule-table tr:last-child {
    border-bottom: 0;
  }

  .msh-schedule-table td {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 8px 16px;
  }

  .msh-schedule-table td:nth-child(n) {
    width: 100%;
  }

  .msh-schedule-table.has-week-column td:nth-child(n) {
    width: 100%;
  }

  .msh-schedule-table td::before {
    content: attr(data-label);
    color: var(--msh-schedule-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .msh-schedule-table.has-week-column .msh-schedule-week {
    display: none;
  }

  .msh-schedule-table .msh-schedule-day,
  .msh-schedule-table .msh-schedule-date-cell {
    display: none;
  }

  .msh-schedule-table .msh-schedule-week-mobile {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(219, 219, 219, 0.72);
    background: var(--msh-schedule-blue-soft) !important;
    color: var(--msh-schedule-blue);
    padding: 12px 16px;
  }

  .msh-schedule-table .msh-schedule-week-mobile::before {
    content: none;
  }

  .msh-schedule-week-mobile strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .msh-schedule-week-mobile span {
    margin-top: 5px;
    color: var(--msh-schedule-muted);
    font-size: 12px;
    line-height: 1.35;
  }

  .msh-schedule-table .msh-schedule-day-mobile {
    display: block;
    width: 100%;
    border-top: 1px solid rgba(219, 219, 219, 0.72);
    border-bottom: 1px solid rgba(219, 219, 219, 0.72);
    background: var(--msh-schedule-soft) !important;
    padding: 10px 16px;
  }

  table.msh-schedule-table tbody > tr.is-day-group-shaded .msh-schedule-day-mobile {
    background-color: hsla(0, 0%, 50%, 0.051) !important;
  }

  table.msh-schedule-table tbody > tr.is-day-group-plain .msh-schedule-day-mobile {
    background-color: #fff !important;
  }

  .msh-schedule-table .msh-schedule-day-mobile::before {
    content: none;
  }

  .msh-schedule-day-mobile strong {
    color: var(--msh-schedule-ink);
    font-size: 14px;
    line-height: 1.25;
  }

  .msh-schedule-day-mobile span {
    margin-top: 4px;
    color: var(--msh-schedule-muted);
    font-size: 12px;
    line-height: 1.35;
  }
}
