.site-header [data-tfp-component="nav"],
.site-header [data-tfp-component="nav"] > .tfp-auth-menu,
.site-header .widget [data-tfp-component="nav"] {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  min-height: 100%;
}

.tfp-auth-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  font: inherit;
  line-height: inherit;
  color: inherit;
}

.tfp-auth-menu__toggle,
.site .tfp-auth-menu__toggle,
.site .tfp-auth-menu__logout {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  line-height: inherit;
}

.tfp-auth-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 100%;
  white-space: nowrap;
}

.site-header .tfp-auth-menu__toggle:hover,
.site-header .tfp-auth-menu__toggle:focus-visible {
  color: var(--ast-global-color-0, #6a994e);
}

.tfp-auth-menu__user {
  display: inline-block;
}

.tfp-auth-menu__caret {
  font-size: 0.82em;
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tfp-auth-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  display: none;
  z-index: 9999;
}

.tfp-auth-menu__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.tfp-auth-menu.is-open .tfp-auth-menu__panel,
.tfp-auth-menu:hover .tfp-auth-menu__panel,
.tfp-auth-menu:focus-within .tfp-auth-menu__panel {
  display: block;
}

.tfp-auth-menu__item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  white-space: nowrap;
}

.tfp-auth-menu__item:hover,
.tfp-auth-menu__item:focus-visible {
  background: rgba(0, 0, 0, 0.04);
  color: inherit;
}

.tfp-auth-menu:hover .tfp-auth-menu__caret,
.tfp-auth-menu:focus-within .tfp-auth-menu__caret,
.tfp-auth-menu.is-open .tfp-auth-menu__caret {
  transform: rotate(180deg);
}

.tfp-require-auth {
  display: none !important;
}

body.tfp-signed-in .tfp-require-auth {
  display: block !important;
}

@media (max-width: 921px) {
  .site-header [data-tfp-component="nav"],
  .site-header [data-tfp-component="nav"] > .tfp-auth-menu {
    width: 100%;
    justify-content: flex-start;
  }

  .tfp-auth-menu__panel {
    left: 0;
    right: auto;
  }
}
