.booking-dialog {
  width: min(1120px, calc(100vw - 64px));
  height: min(790px, calc(100vh - 64px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 16, 34, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 16, 34, .24);
}

.booking-dialog::backdrop {
  background: rgba(7, 16, 34, .38);
  backdrop-filter: blur(12px);
}

.booking-dialog__bar {
  height: 62px;
  padding: 0 14px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(7, 16, 34, .08);
  background: rgba(255, 255, 255, .94);
}

.booking-dialog__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #071022;
}

.booking-dialog__title strong {
  font-size: 16px;
  font-weight: 650;
}

.booking-dialog__title span {
  color: #69758a;
  font-size: 12px;
}

.booking-dialog__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-dialog__external,
.booking-dialog__close {
  border: 0;
  border-radius: 11px;
  font: inherit;
  cursor: pointer;
}

.booking-dialog__external {
  padding: 10px 14px;
  color: #285cff;
  background: #eef3ff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.booking-dialog__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #071022;
  background: #f4f6fa;
  font-size: 22px;
  line-height: 1;
}

.booking-dialog__frame {
  display: block;
  width: 100%;
  height: calc(100% - 62px);
  border: 0;
  background: #fff;
}

.booking-dialog[open] {
  animation: booking-dialog-in .28s cubic-bezier(.16, 1, .3, 1);
}

@keyframes booking-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .booking-dialog[open] { animation: none; }
}

@media (max-width: 640px) {
  .booking-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-width: none;
    max-height: none;
    border-radius: 18px;
  }

  .booking-dialog__bar {
    height: 56px;
    padding: 0 8px 0 16px;
    gap: 8px;
  }

  .booking-dialog__title span,
  .booking-dialog__external {
    display: none;
  }

  .booking-dialog__close {
    width: 40px;
    height: 40px;
  }

  .booking-dialog__frame {
    height: calc(100% - 56px);
  }
}
