.quest-account {
  background: #e7f3ee;
  border-bottom: 1px solid #c9ded5;
  color: #002732;
  font: 500 0.875rem/1.4 'Montserrat', 'Avenir Next', Arial, sans-serif;
}

.quest-account__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 16px;
  flex-wrap: wrap;
  width: min(1280px, calc(100% - 64px));
  min-height: 56px;
  margin-inline: auto;
  padding-block: 6px;
}

.quest-account[data-state="approved"] .quest-account__inner,
.quest-account[data-state="restricted"] .quest-account__inner {
  justify-content: space-between;
}

.quest-account__status {
  min-width: 0;
  color: #36545b;
  overflow-wrap: anywhere;
}

.quest-account[data-state="approved"] .quest-account__status::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 9px;
  border-radius: 50%;
  background: #328270;
  content: '';
}

.quest-account__identity {
  font-weight: 750;
  color: #002732;
}

.quest-account__notice {
  display: block;
  margin-block-start: 2px;
}

.quest-account__actions {
  display: flex;
  align-items: center;
  gap: 4px 8px;
  flex-wrap: wrap;
}

.quest-account__actions form {
  margin: 0;
}

.quest-account .quest-account__action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 750 0.875rem/1.35 'Montserrat', 'Avenir Next', Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.quest-account .quest-account__action--primary {
  background: #cf3905;
  color: #fff;
}

.quest-account .quest-account__action--primary:hover {
  background: #ae2d00;
}

.quest-account .quest-account__action--secondary {
  border-color: #82a89d;
  background: #fffdf8;
  color: #002732;
}

.quest-account .quest-account__action--secondary:hover,
.quest-account .quest-account__action--quiet:hover {
  background: #d2e8df;
}

.quest-account .quest-account__action--quiet {
  padding-inline: 10px;
  background: transparent;
  color: #002732;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quest-account .quest-account__action:focus-visible {
  outline: 2px solid #002732;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .quest-account__inner {
    width: calc(100% - 34px);
  }

  .quest-account[data-state="approved"] .quest-account__status,
  .quest-account[data-state="restricted"] .quest-account__status {
    flex-basis: 100%;
    padding-block-start: 4px;
  }

  .quest-account .quest-account__action {
    padding-inline: 12px;
  }

  .quest-account .quest-account__action--quiet {
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quest-account .quest-account__action {
    transition: none;
  }
}
