.sc-loading-indicator {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 35, 31, 0.94);
  box-shadow: 0 12px 34px rgba(24, 35, 31, 0.22);
  font: 800 12px/1 "Trebuchet MS", Verdana, sans-serif;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sc-loading-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.sc-spinner,
button.is-loading::before {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: sc-spin 0.72s linear infinite;
}

button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
  opacity: 0.82;
}

button.is-loading::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

button.secondary.is-loading::before,
button.price-ghost.is-loading::before {
  border-color: rgba(24, 35, 31, 0.25);
  border-top-color: currentColor;
}

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

@media (max-width: 620px) {
  .sc-loading-indicator {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-spinner,
  button.is-loading::before {
    animation-duration: 1.6s;
  }
}
