.tfdf-account-menu {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-inline-start: 8px;
}

.tfdf-account-menu .tfdf-account-menu-link,
.tfdf-account-links .tfdf-account-menu-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px !important;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.tfdf-account-menu .tfdf-account-menu-signin,
.tfdf-account-menu .tfdf-account-menu-account,
.tfdf-account-menu .tfdf-account-menu-register,
.tfdf-account-links .tfdf-account-menu-signin,
.tfdf-account-links .tfdf-account-menu-account,
.tfdf-account-links .tfdf-account-menu-register {
  border-color: var(--ast-global-color-0, #0786c8);
  background: var(--ast-global-color-0, #0786c8);
  color: #fff !important;
}

.tfdf-account-menu .tfdf-account-menu-signout,
.tfdf-account-links .tfdf-account-menu-signout {
  background: transparent;
  color: inherit;
}

.tfdf-account-menu .tfdf-account-menu-link:hover,
.tfdf-account-links .tfdf-account-menu-link:hover {
  transform: translateY(-1px);
  opacity: .92;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .14);
}

.tfdf-account-menu-link img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
}

.tfdf-account-menu-mark {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: currentColor;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.tfdf-account-links,
.tfdf-account-link-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 921px) {
  .tfdf-account-menu {
    display: flex !important;
    align-items: stretch;
    flex-direction: column;
    float: none !important;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 0;
    padding: 8px 16px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .tfdf-account-menu .tfdf-account-menu-link {
    display: flex !important;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tfdf-account-menu .tfdf-account-menu-link,
  .tfdf-account-links .tfdf-account-menu-link { transition: none; }
}
