.wait-overlay[hidden] {
  display: none !important;
}

.wait-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .34);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .18s ease;
}

.wait-overlay.is-visible {
  opacity: 1;
}

.wait-overlay__card {
  width: min(100%, 340px);
  overflow: hidden;
  border: 1px solid rgba(199, 210, 254, .92);
  border-radius: 22px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 24px 65px rgba(15, 23, 42, .22);
  text-align: center;
  transform: translateY(7px) scale(.985);
  transition: transform .18s ease;
  color-scheme: light;
}

.wait-overlay.is-visible .wait-overlay__card {
  transform: translateY(0) scale(1);
}

.wait-overlay__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 18px 20px 14px;
  background: linear-gradient(145deg, #f8faff 0%, #eef2ff 100%);
}

.wait-overlay__image {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(49, 46, 129, .18);
}

.wait-overlay__content {
  padding: 17px 24px 22px;
}

.wait-overlay__title {
  display: block;
  margin: 0;
  color: #312e81;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.wait-overlay__message {
  margin: 7px 0 0;
  color: #64748b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

body.wait-overlay-open {
  overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
  .wait-overlay,
  .wait-overlay__card {
    transition: none;
  }
}
