:root {
  --openrewi-purple: #38039f;
  --openrewi-orange: #f35300;
  --openrewi-logo-clearspace: 0.75rem;
}

a {
  color: var(--openrewi-purple);
}

a:hover,
a:focus {
  color: var(--openrewi-orange);
}

button[type="submit"],
.pf-v5-c-button.pf-m-primary {
  background-color: var(--openrewi-orange);
}

button[type="submit"]:hover,
button[type="submit"]:focus,
.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus {
  background-color: #d94700;
}

.pf-v5-c-brand,
.pf-v5-c-page__header-brand img,
.pf-v5-c-masthead__brand img,
img[src$="logo.svg"],
img[src$="favicon.svg"] {
  box-sizing: border-box;
  padding: var(--openrewi-logo-clearspace);
}

.openrewi-account-user {
  align-items: center;
  color: #1f1834;
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 0.75rem;
  min-width: 0;
}

.pf-c-page__header .openrewi-account-user {
  color: #ffffff;
}

.openrewi-account-avatar {
  align-items: center;
  background: #f4f0fb;
  border: 2px solid rgba(56, 3, 159, 0.22);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--openrewi-purple);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  width: 2rem;
}

.openrewi-account-avatar__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.openrewi-account-avatar__fallback {
  padding-top: 1px;
}

.openrewi-account-user__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .openrewi-account-user__name {
    display: none;
  }
}
