.helloasso-redirect {
  --helloasso-redirect-background: rgb(255, 255, 255, 0.98);
  --helloasso-redirect-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, helvetica, arial, sans-serif;
  --helloasso-redirect-dialog-background: #fff;
  --helloasso-redirect-dialog-border-color: #f0f0f0;
  --helloasso-redirect-dialog-border-radius: 20px;
  --helloasso-redirect-dialog-max-width: 480px;
  --helloasso-redirect-dialog-padding: 48px;
  --helloasso-redirect-title-color: #1a202c;
  --helloasso-redirect-title-size: 26px;
  --helloasso-redirect-message-color: #4a5568;
  --helloasso-redirect-message-size: 17px;
  --helloasso-redirect-spinner-color: #004b9b;
  --helloasso-redirect-spinner-track-color: #e2e8f0;
  --helloasso-redirect-warning-color: #c53030;
  --helloasso-redirect-warning-size: 15px;
  --helloasso-redirect-button-background: #004b9b;
  --helloasso-redirect-button-background-hover: #003b7a;
  --helloasso-redirect-button-color: #fff;
  --helloasso-redirect-button-radius: 12px;
  --helloasso-redirect-button-size: 16px;

  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--helloasso-redirect-background);
  font-family: var(--helloasso-redirect-font-family);
}

.helloasso-redirect__dialog {
  width: min(90%, var(--helloasso-redirect-dialog-max-width));
  max-width: var(--helloasso-redirect-dialog-max-width);
  padding: var(--helloasso-redirect-dialog-padding);
  border: 1px solid var(--helloasso-redirect-dialog-border-color);
  text-align: center;
  border-radius: var(--helloasso-redirect-dialog-border-radius);
  background: var(--helloasso-redirect-dialog-background);
  box-shadow: 0 25px 50px -12px rgb(0, 0, 0, 0.15);
}

.helloasso-redirect__title {
  margin: 0 0 16px;
  color: var(--helloasso-redirect-title-color);
  font-size: var(--helloasso-redirect-title-size);
}

.helloasso-redirect__message {
  color: var(--helloasso-redirect-message-color);
  font-size: var(--helloasso-redirect-message-size);
  line-height: 1.6;
}

.helloasso-redirect__message--error {
  margin-bottom: 24px;
}

.helloasso-redirect__spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  border: 3px solid var(--helloasso-redirect-spinner-track-color);
  animation: helloasso-spin 1s linear infinite;
  border-top-color: var(--helloasso-redirect-spinner-color);
  border-radius: 50%;
}

.helloasso-redirect__fallback {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 2px solid #f7fafc;
}

.helloasso-redirect__warning {
  color: var(--helloasso-redirect-warning-color);
  font-size: var(--helloasso-redirect-warning-size);
  font-weight: 600;
}

.helloasso-redirect__link {
  display: inline-block;
  padding: 16px 32px;
  cursor: pointer;
  border: 0;
  color: var(--helloasso-redirect-button-color);
  background: var(--helloasso-redirect-button-background);
  border-radius: var(--helloasso-redirect-button-radius);
  text-decoration: none;
  font-size: var(--helloasso-redirect-button-size);
  font-weight: 700;
}

.helloasso-redirect__link:focus,
.helloasso-redirect__link:hover {
  color: var(--helloasso-redirect-button-color);
  background: var(--helloasso-redirect-button-background-hover);
}

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

@media (prefers-reduced-motion: reduce) {
  .helloasso-redirect__spinner {
    animation: none;
  }
}
