html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: max(100dvh, 884px);
}

a,
button,
input {
  transition: 0.3s ease-out;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.scale-98-on-active-click:active {
  transform: scale(0.98);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 249, 251, 0.82);
  backdrop-filter: blur(14px);
}

.loading-overlay.hidden {
  display: none;
}

.loading-shell {
  width: min(24rem, calc(100vw - 2rem));
  padding: 2rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 4px solid rgba(0, 82, 221, 0.15);
  border-top-color: #0052dd;
  margin: 0 auto 1rem;
  animation: spin 0.85s linear infinite;
}

.currency-hint,
.field-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.currency-hint {
  color: #566166;
}

.field-error {
  color: #9e3f4e;
}

.field-error.hidden,
.currency-hint.hidden {
  display: none;
}

.input-invalid {
  box-shadow: 0 0 0 2px rgba(158, 63, 78, 0.18);
}

.submit-disabled,
.button-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.fade-in {
  animation: fade-in 0.45s ease-out;
}

.editorial-shadow {
  box-shadow: 0 40px 80px -20px rgba(42, 52, 57, 0.06);
}

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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