.meeting-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 75%);
  backdrop-filter: blur(2px);
}

.schedule-open {
  overflow: hidden;
}

.schedule-open .meeting-modal-overlay {
  display: flex;
  animation: meeting-dialog-fade-in 0.3s ease-out forwards;
}

.meeting-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(90vw, 800px);
  height: min(90vh, 820px);
  overflow: visible;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
}

.schedule-open .meeting-modal-content {
  animation: meeting-dialog-scale-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.meeting-modal-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.close-meeting-modal {
  position: absolute;
  top: -16px;
  right: -10px;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  color: #555;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.close-meeting-modal:hover {
  color: #fff;
  background: #24ce7b;
  border-color: #24ce7b;
}

.close-meeting-modal:focus-visible {
  outline: 3px solid #2c3345;
  outline-offset: 3px;
}

.meetings-iframe-container {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.meeting-modal-status {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #2c3345;
  text-align: center;
  background: #fff;
}

.meeting-modal-status[hidden] {
  display: none;
}

.meetings-iframe-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

@media (max-width: 767px) {
  .meeting-modal-content {
    width: calc(100vw - 32px);
    height: calc(100vh - 40px);
    max-height: none;
  }
}

@keyframes meeting-dialog-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes meeting-dialog-scale-up {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(15px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-open .meeting-modal-overlay,
  .schedule-open .meeting-modal-content {
    animation: none;
  }
}
