.eui-pull-to-refresh {
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  color: var(--eui-text);
  font-family: var(--eui-font-family);
}

.eui-pull-to-refresh-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.eui-pull-to-refresh-indicator-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--eui-text-muted);
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--eui-bg);
  border-radius: 999px;
  box-shadow: var(--eui-shadow);
  transition: opacity 0.15s ease;
}

.eui-pull-to-refresh-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--eui-primary);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.eui-pull-to-refresh-spinner svg {
  width: 100%;
  height: 100%;
}
.eui-pull-to-refresh-spinner.eui-pull-to-refresh-spinner-spinning {
  animation: eui-ptr-spin 0.85s linear infinite;
}
.eui-pull-to-refresh-spinner.eui-pull-to-refresh-spinner-arrow-flip {
  transform: rotate(180deg);
}

.eui-pull-to-refresh-label {
  line-height: 1.2;
  white-space: nowrap;
}

.eui-pull-to-refresh-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.eui-pull-to-refresh-dots span {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background-color: var(--eui-primary);
  opacity: 0.4;
  transition: opacity 0.15s ease;
}
.eui-pull-to-refresh-dots.eui-pull-to-refresh-dots-spinning span {
  animation: eui-ptr-dots 0.9s ease-in-out infinite;
}
.eui-pull-to-refresh-dots.eui-pull-to-refresh-dots-spinning span:nth-child(2) {
  animation-delay: 0.15s;
}
.eui-pull-to-refresh-dots.eui-pull-to-refresh-dots-spinning span:nth-child(3) {
  animation-delay: 0.3s;
}

.eui-pull-to-refresh-content {
  will-change: transform;
}

.eui-pull-to-refresh-variant-minimal .eui-pull-to-refresh-indicator-inner {
  background: transparent;
  box-shadow: none;
  padding: 0.25rem 0;
  width: 1.75rem;
  height: 0.1875rem;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.eui-pull-to-refresh-variant-minimal .eui-pull-to-refresh-indicator-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--eui-primary);
  opacity: 0.5;
}

@keyframes eui-ptr-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes eui-ptr-dots {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eui-pull-to-refresh-spinner-spinning,
  .eui-pull-to-refresh-dots-spinning span {
    animation: none;
  }
  .eui-pull-to-refresh-content {
    transition: none !important;
  }
}