.ojsAccountEntry {
  --ojs-account-entry-accent: var(--accent-primary, #006798);
  color: #1f2933;
}

dialog.ojsAccountEntry {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 1.25rem 4rem rgba(15, 23, 42, 0.35);
}

dialog.ojsAccountEntry::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.ojsAccountEntry__surface,
.ojsAccountEntry--page {
  position: relative;
  padding: 1.5rem;
}

.ojsAccountEntry__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.ojsAccountEntry__panel[hidden] {
  display: none;
}

.ojsAccountEntry__domain {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d7dee5;
  border-radius: 0.375rem;
  background: #fff;
}

.ojsAccountEntry__domain h3,
.ojsAccountEntry__domain h4 {
  margin-top: 0;
  color: var(--ojs-account-entry-accent);
}

.ojsAccountEntry__domain .pkp_button {
  display: inline-block;
  margin-top: 0.5rem;
}

.ojsAccountEntry__operatorNote,
.ojsAccountEntry__contact {
  margin-bottom: 0;
  font-size: 0.925rem;
}

.ojsAccountEntry__alert {
  padding: 0.75rem 1rem;
  border-left: 4px solid #b45309;
  background: #fff7ed;
}

.ojsAccountEntry__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.ojsAccountEntry :focus-visible {
  outline: 3px solid var(--ojs-account-entry-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ojsAccountEntry,
  .ojsAccountEntry * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
