/* Location: D:\ironcore\frontend\nova_ironcore\assets\css\components\site-pull-to-refresh.css */
.site-ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  z-index: calc(var(--layer-chrome) + 5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(8, 20, 45, 0.82);
  border: 1px solid rgba(255, 166, 84, 0.28);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(255, 166, 84, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-120% + var(--site-ptr-offset, 0px)));
  transition:
    opacity 0.16s ease,
    transform 0.12s ease-out;
}

body.is-ptr-active .site-ptr {
  opacity: 1;
}

.site-ptr__ring {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 166, 84, 0.22);
  border-top-color: rgba(255, 191, 120, 0.92);
  border-radius: 50%;
  transform: rotate(calc(var(--site-ptr-progress, 0) * 320deg));
  transition: transform 0.12s ease-out;
}

body.is-ptr-ready .site-ptr__ring {
  animation: site-ptr-spin 0.65s linear infinite;
}

body.is-ptr-refreshing .site-ptr {
  opacity: 1;
  transform: translate(-50%, calc(env(safe-area-inset-top, 0px) + 18px));
}

body.is-ptr-refreshing .site-ptr__ring {
  animation: site-ptr-spin 0.65s linear infinite;
}

@keyframes site-ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .home-hero.is-ptr-pulling,
  .gallery-shell.is-ptr-pulling,
  .prices-shell.is-ptr-pulling {
    transition: transform 0.12s ease-out;
    transform: translateY(var(--site-ptr-pull, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-ptr,
  .site-ptr__ring,
  .home-hero.is-ptr-pulling,
  .gallery-shell.is-ptr-pulling,
  .prices-shell.is-ptr-pulling {
    transition: none;
    animation: none;
  }
}
