/* Shell styles for public/index.html — kept OUT of the HTML on purpose:
 * an inline <style> is an inline style to CSP, and the payment pages ship
 * `style-src 'self'` without 'unsafe-inline' (ДФ-С-10 / PCI DSS 6.4.3).
 * Served with no-cache (nginx.conf) so edits land without a rename.
 * Source of truth: packages/assets/files/shell.css (synced into public/). */

/* react-native-web root reset */
html,
body {
  height: 100%;
}
body {
  overflow: hidden;
}
#root {
  display: flex;
  height: 100%;
  flex: 1;
}

/* Shell loader (see the comment block in index.html) */
#page-loader {
  position: fixed;
  inset: 0;
  /* Above <SplashOverlay/> (z-index 9999) and every RN portal host. */
  z-index: 2147483000;
  background: #f2f2f2;
  display: grid;
  place-items: center;
  transition: opacity 280ms cubic-bezier(0.23, 1, 0.32, 1);
}
#page-loader[data-state="done"] {
  opacity: 0;
  pointer-events: none;
}
#page-loader .stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
#page-loader .logo {
  display: block;
  width: 140px;
  opacity: 0;
  transform: translateY(4px);
  animation: page-loader-logo-in 320ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
#page-loader .logo svg {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes page-loader-logo-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#page-loader .track {
  position: relative;
  width: 96px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 87, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  animation: page-loader-track-in 240ms cubic-bezier(0.23, 1, 0.32, 1) 180ms forwards;
}
#page-loader .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5700 0%, #ff4e00 100%);
  transition: width 280ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes page-loader-track-in {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #page-loader .logo,
  #page-loader .track {
    animation: none;
    opacity: 1;
    transform: none;
  }
  #page-loader .fill {
    transition: none;
  }
  #page-loader {
    transition: opacity 120ms linear;
  }
}
