.sh-module-loader {
  box-sizing: border-box;
  min-block-size: min(440px, 58dvh);
  inline-size: min(100%, 560px);
  margin-inline: auto;
  padding: 32px 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  color: #173a2d;
}

.sh-module-loader strong {
  display: block;
  margin-block-end: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.sh-module-loader p {
  margin: 0;
  max-inline-size: 34ch;
  color: #4f665d;
  font-size: 0.875rem;
  line-height: 1.8;
}

.sh-module-loader__spinner {
  inline-size: 34px;
  block-size: 34px;
  border: 3px solid rgba(21, 111, 78, 0.18);
  border-block-start-color: #156f4e;
  border-radius: 50%;
  animation: shahdad-module-loader-spin 700ms linear infinite;
}

.sh-module-loader--error .sh-module-loader__spinner {
  display: none;
}

.sh-module-loader__retry {
  min-inline-size: 132px;
  min-block-size: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(21, 111, 78, 0.3);
  border-radius: 14px;
  background: #156f4e;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.sh-module-loader__retry:focus-visible {
  outline: 3px solid rgba(21, 111, 78, 0.35);
  outline-offset: 3px;
}

@keyframes shahdad-module-loader-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-module-loader__spinner {
    animation: none;
    border-color: #156f4e;
  }
}
