.mobile-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.mobile-loading-overlay.is-visible {
  display: flex;
  animation: mobile-loading-overlay-in 180ms cubic-bezier(0, 0, 0.2, 1);
}

.mobile-loading-panel {
  width: min(280px, calc(100vw - 48px));
  padding: 28px 24px 24px;
  border: 1px solid #dce2dc;
  border-radius: 8px;
  background: #fff;
  color: #0b2b45;
  box-shadow: 0 12px 32px rgb(11 43 69 / 14%);
  text-align: center;
}

.mobile-loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 5px solid #e5e8e5;
  border-top-color: #26312b;
  border-right-color: #66716b;
  border-radius: 50%;
  animation: mobile-loading-spin 850ms linear infinite;
}

.mobile-loading-title {
  margin: 0;
  font-family: var(--ui-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.mobile-loading-message {
  margin: 7px 0 0;
  color: #66716b;
  font-family: var(--ui-font-family, "Plus Jakarta Sans", sans-serif);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

.mobile-loading-track {
  position: relative;
  height: 5px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 3px;
  background: #e5e8e5;
}

.mobile-loading-track::after {
  position: absolute;
  inset-block: 0;
  left: -42%;
  width: 42%;
  border-radius: inherit;
  background: #26312b;
  content: "";
  animation: mobile-loading-progress 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body.mobile-loading-open {
  overflow: hidden;
}

@keyframes mobile-loading-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mobile-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mobile-loading-progress {
  0% {
    left: -42%;
  }

  100% {
    left: 100%;
  }
}

@media (min-width: 768px) {
  .mobile-loading-overlay,
  .mobile-loading-overlay.is-visible {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-loading-overlay.is-visible {
    animation: none;
  }

  .mobile-loading-spinner,
  .mobile-loading-track::after {
    animation-duration: 2.4s;
  }
}
