/* All styles scoped to this popup: never change body, nav, footer or Zoom. */
dialog.webinar-promotion {
  position: fixed;
  inset: 0;
  margin: auto;
}

.webinar-promotion {
  --promotion-accent: var(--primary-color, #00865f);
  width: min(100vw - 32px, 440px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #e8eae9;
  border-radius: 18px;
  background: #fff;
  color: #252832;
  font-family: inherit;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}
.webinar-promotion[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "badge badge" "title title" "schedule schedule" "description description" "presenter button";
  column-gap: 12px;
}
.webinar-promotion::backdrop {
  background: rgba(0, 0, 0, 0.4);
}
.webinar-promotion .webinar-promotion__eyebrow {
  grid-area: badge;
  justify-self: start;
  display: inline-block;
  margin: 0 44px 12px 0;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 30px;
  color: var(--promotion-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.webinar-promotion h2 {
  grid-area: title;
  margin: 0 0 12px;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.webinar-promotion__description {
  grid-area: description;
  white-space: pre-line;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.webinar-promotion__schedule {
  grid-area: schedule;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f4f6f5;
  background: color-mix(in srgb, var(--promotion-accent) 7%, white);
}
.webinar-promotion__schedule-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.webinar-promotion__schedule time {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.webinar-promotion__timezone {
  font-size: 11px;
  line-height: 1.5;
}
.webinar-promotion__presenter {
  grid-area: presenter;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.webinar-promotion__presenter > div {
  min-width: 0;
}
.webinar-promotion__presenter-name {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.webinar-promotion__presenter-role {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.webinar-promotion__close {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f6f5;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.webinar-promotion__image {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 50%;
}
.webinar-promotion__button {
  grid-area: button;
  align-self: center;
  max-width: 210px;
  display: block;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px 16px;
  background: var(--promotion-accent);
  color: #fff;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.webinar-promotion:not(:has(.webinar-promotion__presenter)) .webinar-promotion__button {
  grid-column: 1/-1;
  max-width: none;
}
.webinar-promotion__button:hover {
  color: #fff;
  text-decoration: underline;
}
.webinar-promotion :focus-visible {
  outline: 3px solid var(--promotion-accent);
  outline-offset: 4px;
}
@media (max-width: 480px) {
  .webinar-promotion {
    padding: 20px;
    border-radius: 16px;
  }
  .webinar-promotion[open] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "badge" "title" "schedule" "description" "presenter" "button";
  }
  .webinar-promotion__presenter {
    margin-bottom: 14px;
  }
  .webinar-promotion__button {
    max-width: none;
  }
}

.webinar-promotion[data-program=therasomnia] {
  --promotion-accent: var(--primary-color, #9836ae);
}

.webinar-promotion[data-program=theraserena] {
  --promotion-accent: var(--primary-color, #00865f);
}
