/* ICE Fox unified frontend account navigation */

.account-nav-inline {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 6px;
  flex: 0 0 auto;
}

.account-link,
.account-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eaf6ff;
  color: #075a9c;
  font-weight: 900;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(6,27,61,.06);
}

.account-link:hover,
.account-dropdown-toggle:hover {
  background: #006fd6;
  color: #fff;
}

.account-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: #fff;
  box-shadow: 0 18px 42px rgba(8,36,74,.18);
  z-index: 9999;
}

.account-dropdown.is-open .account-dropdown-menu,
.account-dropdown:hover .account-dropdown-menu,
.account-dropdown:focus-within .account-dropdown-menu {
  display: grid;
  gap: 4px;
}

.account-dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #061b3d;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.account-dropdown-item:hover {
  background: #eef7ff;
  color: #006fd6;
}

.account-dropdown-item.logout {
  color: #b42318;
}

.account-dropdown-item.logout:hover {
  background: #fee2e2;
  color: #991b1b;
}

header nav.menu {
  align-items: center;
}

header nav.menu > a,
header nav.menu > button,
header nav.menu > span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .account-nav-inline {
    margin-left: 0;
  }

  .account-dropdown-menu {
    left: 0;
    right: auto;
  }
}
