.gribon-loading {
  z-index: 1500;
  display: grid;
  place-items: center;
  color: #102f2a;
  background: #f9faf7;
}

html.accounts-sso-returning {
  overflow: hidden;
}

html.accounts-sso-returning .app-shell {
  visibility: hidden;
}

.gribon-loading--fullscreen {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  padding: 24px;
}

.gribon-loading__panel {
  display: grid;
  width: min(420px, 100%);
  justify-items: center;
  gap: 15px;
  padding: 18px;
  text-align: center;
}

.gribon-loading__mark {
  position: relative;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
}

.gribon-loading__mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 132px;
  height: auto;
  object-fit: contain;
}

.gribon-loading__ring {
  position: absolute;
  inset: 7px;
  border: 3px solid rgba(19, 106, 87, 0.16);
  border-top-color: #c7482e;
  border-right-color: #176b58;
  border-radius: 50%;
  animation: gribon-loading-spin 900ms linear infinite;
}

.gribon-loading__copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.gribon-loading__copy strong {
  color: #102f2a;
  font-size: 1.16rem;
  line-height: 1.25;
}

.gribon-loading__copy span {
  color: #65736f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.gribon-loading__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.gribon-loading__actions[hidden] {
  display: none;
}

.gribon-loading__action {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #176b58;
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.gribon-loading__action--primary {
  color: #ffffff;
  background: #176b58;
}

.gribon-loading__action--secondary {
  color: #176b58;
  background: #ffffff;
}

.gribon-loading[data-loading-state="error"] .gribon-loading__ring {
  animation: none;
  border-color: #c7482e;
}

.gribon-loading__sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes gribon-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
  .gribon-loading--fullscreen {
    padding: 16px;
  }

  .gribon-loading__mark {
    width: 148px;
    height: 148px;
  }

  .gribon-loading__mark img {
    width: 114px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gribon-loading__ring {
    animation: none;
    border-color: rgba(19, 106, 87, 0.28);
    border-top-color: #176b58;
  }
}
