html:has(.cohort-enrolment-bar) {
  --cohort-enrolment-bottom: 0px;
  --cohort-enrolment-bar-height: 67px;
}
html:has(.has-cohort-enrolment-bar) {
  scroll-padding-bottom: calc(
    var(--cohort-enrolment-bottom) + var(--cohort-enrolment-bar-height) + 12px
  );
}
.cohort-enrolment-bar {
  position: fixed;
  z-index: 55;
  inset-inline: 0;
  bottom: var(--cohort-enrolment-bottom);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 28px;
  padding: 8px max(20px, calc((100vw - 1180px) / 2)) max(8px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e7c9b1;
  background: #fffbf7f7;
  color: var(--foreground);
  box-shadow: 0 -4px 18px #242b2b0d;
  backdrop-filter: blur(14px);
}
.cohort-enrolment-bar[hidden],
.cohort-enrolment-bar [hidden] {
  display: none !important;
}
.cohort-bar-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.cohort-bar-prices strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.cohort-bar-prices del {
  color: var(--muted-foreground);
  font-size: 14px;
}
.cohort-bar-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}
.cohort-bar-saving {
  color: var(--primary);
  font-weight: 600;
}
.cohort-bar-deadline {
  white-space: nowrap;
}
.cohort-bar-deadline time {
  color: var(--foreground);
  font-weight: 600;
  white-space: nowrap;
}
.cohort-bar-batch {
  white-space: nowrap;
}
.cohort-enrolment-bar > .btn-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 8px 20px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.cohort-bar-seats {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff4e9;
}
.cohort-page.has-cohort-enrolment-bar .bb-enrolment-notice {
  bottom: calc(var(--cohort-enrolment-bottom) + var(--cohort-enrolment-bar-height) + 12px);
}
@media (max-width: 767px) {
  html:has(.cohort-enrolment-bar) {
    --cohort-enrolment-bottom: calc(
      var(--bb-mobile-nav-height, 84px) + env(safe-area-inset-bottom, 0px)
    );
  }
  .cohort-enrolment-bar {
    inset-inline: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'prices action'
      'details action';
    gap: 2px 12px;
    padding: 8px 16px;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 -4px 18px #242b2b0d;
  }
  .cohort-bar-prices {
    grid-area: prices;
    gap: 8px;
  }
  .cohort-bar-prices strong {
    font-size: 20px;
  }
  .cohort-bar-prices del {
    font-size: 13px;
  }
  .cohort-bar-details {
    grid-area: details;
    justify-content: flex-start;
    font-size: 12px;
  }
  .cohort-bar-saving {
    display: none;
  }
  .cohort-bar-deadline {
    white-space: normal;
    line-height: 1.4;
  }
  .cohort-enrolment-bar > .btn-primary {
    grid-area: action;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
  }
}
