.itp-header {
  --itp-green: #1c6b5c;
  --itp-green-dark: #155245;
  --itp-border: #efece0;
  --itp-ink: #313433;
  --itp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --itp-motion-fast: 160ms;
  position: relative;
  z-index: 40;
  height: 65px;
  border-bottom: 1px solid var(--itp-border);
  background: #fff;
}

.itp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 40px));
  height: 65px;
  margin: 0 auto;
}

.itp-logo {
  display: inline-flex;
  align-items: center;
  width: 129px;
  height: 30px;
}

.itp-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.itp-account {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--itp-green);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.itp-account a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: inherit;
  text-decoration: none;
  transition:
    color var(--itp-motion-fast) var(--itp-ease),
    background var(--itp-motion-fast) var(--itp-ease),
    box-shadow var(--itp-motion-fast) var(--itp-ease),
    transform var(--itp-motion-fast) var(--itp-ease);
}

.itp-account-name {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  color: var(--itp-ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itp-account-primary {
  min-width: 58px;
  padding: 8px 16px;
  border-radius: 5px;
  color: #fff !important;
  background: var(--itp-green);
}

.itp-account a:hover,
.itp-account a:focus-visible {
  color: var(--itp-green-dark);
  transform: translateY(-1px);
}

.itp-account-primary:hover,
.itp-account-primary:focus-visible {
  background: var(--itp-green-dark);
  box-shadow: 0 8px 18px rgba(20, 87, 72, 0.16);
}

@media (max-width: 640px) {
  .itp-header-inner {
    width: calc(100% - 32px);
  }

  .itp-header,
  .itp-header-inner {
    height: 58px;
  }

  .itp-logo {
    width: 110px;
  }

  .itp-account {
    gap: 10px;
    font-size: 12px;
  }

  .itp-account-name {
    max-width: 92px;
  }

  .itp-account-primary {
    min-width: 48px;
    padding: 6px 12px;
  }
}
