.team-calendly {
  position: fixed !important;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.team-calendly.is-open {
  display: flex !important;
}

.team-calendly__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 38, 0.9);
}

.team-calendly__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  height: min(760px, 100%);
  min-height: 0;
}

.team-calendly__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #131432;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.team-calendly__body,
.team-calendly__slot {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.team-calendly__body {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.team-calendly__body .calendly-inline-widget,
.team-calendly__body .calendly-inline-widget iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0;
}

@media (max-width: 767px) {
  .team-calendly {
    padding: 0;
  }

  .team-calendly__dialog,
  .team-calendly__body,
  .team-calendly__body .calendly-inline-widget,
  .team-calendly__body .calendly-inline-widget iframe {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }

  .team-calendly__close {
    top: 10px;
    right: 10px;
  }
}
