.page-loader.mf-catalog-loader {
  position: fixed;
  z-index: 1030;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.35rem;
  border: 1px solid #e7d9bd;
  border-radius: 24px;
  background: #fffcf6;
  color: #54422b;
  box-shadow: 0 4px 20px #3c2d1a20;
  font-size: .9rem;
  font-weight: 600;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.page-loader.mf-catalog-loader:not(.d-none) {
  display: flex;
}

.mf-loader-sparks {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
}

.mf-loader-sparks::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 2px solid #ead9b7;
  border-top-color: #9b733e;
  border-inline-end-color: #bc965d;
  border-radius: 50%;
  animation: mf-catalog-orbit .85s linear infinite;
}

.mf-loader-sparks > span {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #b2874c;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: mf-catalog-twinkle .58s ease-in-out infinite alternate;
}

.mf-loader-sparks > :first-child {
  inset: 14px auto auto 14px;
  width: 22px;
  height: 22px;
}

.mf-loader-sparks > :nth-child(2) {
  inset: 11px 12px auto auto;
  animation-delay: -.27s;
}

.mf-loader-sparks > :last-child {
  inset: auto 11px 11px auto;
  animation-delay: -.4s;
}

@keyframes mf-catalog-orbit {
  to { transform: rotate(1turn); }
}

@keyframes mf-catalog-twinkle {
  0% { opacity: .35; transform: scale(.55) rotate(-15deg); }
  100% { opacity: 1; transform: scale(1.15) rotate(15deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mf-loader-sparks::before,
  .mf-loader-sparks > span {
    animation: none;
  }
}
