/* Customer session controls shown in the public-site header. */
.pd-account-menu {
  position: relative;
  flex: 0 0 auto;
}

.pdv-nav-actions.is-authenticated,
.nav-actions.is-authenticated {
  gap: 8px;
}

.pdv-nav--productized .pd-account-summary {
  border-color: #d8e4f5;
  background: #fff;
  color: #152243;
}

.pdv-nav--productized .pd-account-summary:hover,
.pdv-nav--productized .pd-account-menu[open] .pd-account-summary {
  border-color: #b9cbea;
  background: #f5f8ff;
}

.pdv-nav--productized .pd-account-name {
  color: #152243;
}

.pdv-nav--productized .pd-account-chevron {
  color: #77859c;
}

.pd-account-menu > summary {
  list-style: none;
}

.pd-account-menu > summary::-webkit-details-marker {
  display: none;
}

.pd-account-summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 4px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color .16s ease, background .16s ease;
}

.pd-account-summary:hover,
.pd-account-menu[open] .pd-account-summary {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .14);
}

.pd-account-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #d8e8ff);
  color: #155fdd;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.pd-account-name {
  max-width: 120px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-account-chevron {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  transition: transform .16s ease;
}

.pd-account-menu[open] .pd-account-chevron {
  transform: rotate(180deg);
}

.pd-account-dropdown {
  position: absolute;
  z-index: 2400;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid #dce4f0;
  border-radius: 14px;
  background: #fff;
  color: #162744;
  box-shadow: 0 20px 55px rgba(9, 27, 58, .22);
}

.pd-account-dropdown-head {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0 4px 5px;
  padding: 7px 6px 11px;
  border-bottom: 1px solid #e8edf5;
}

.pd-account-dropdown-head small {
  color: #77859c;
  font-size: 11px;
}

.pd-account-dropdown-head strong {
  overflow: hidden;
  color: #162744;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-account-dropdown-link,
.pd-account-logout {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #263b60;
  font: 600 13px/1.2 inherit;
  text-align: left;
  cursor: pointer;
}

/* The service center is already a visible top-level navigation item. */
.pd-account-dropdown-link {
  display: none;
}

.pd-account-dropdown-link:hover,
.pd-account-logout:hover {
  background: #f0f5ff;
  color: #155fdd;
}

.pd-account-logout {
  margin-top: 2px;
  border-top: 1px solid #edf1f6;
  border-radius: 0 0 9px 9px;
  color: #8c5360;
}

.pd-account-logout:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 1180px) and (min-width: 981px) {
  .pd-account-name {
    display: none;
  }

  .pd-account-summary {
    padding-right: 7px;
  }
}

@media (max-width: 980px) {
  .mobile-menu-actions.is-authenticated,
  .pdv-mobile-actions.is-authenticated {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-menu-actions .pd-service-center-link,
  .pdv-mobile-actions .pd-service-center-link,
  .mobile-menu-actions .pd-workbench-link,
  .pdv-mobile-actions .pd-workbench-link,
  .mobile-menu-actions .pd-account-menu,
  .pdv-mobile-actions .pd-account-menu {
    width: 100%;
  }

  .mobile-menu-actions .pd-service-center-link,
  .mobile-menu-actions .pd-workbench-link,
  .pdv-mobile-actions .pd-service-center-link,
  .pdv-mobile-actions .pd-workbench-link {
    justify-content: center;
  }

  .mobile-menu-actions .pd-account-summary,
  .pdv-mobile-actions .pd-account-summary {
    width: 100%;
    justify-content: flex-start;
    padding: 5px 12px 5px 5px;
    border-color: #dce4f0;
    background: #f4f7fb;
    color: #162744;
  }

  .mobile-menu-actions .pd-account-name,
  .pdv-mobile-actions .pd-account-name {
    display: block;
    flex: 1;
    max-width: none;
    color: #162744;
    text-align: left;
  }

  .mobile-menu-actions .pd-account-chevron,
  .pdv-mobile-actions .pd-account-chevron {
    color: #77859c;
  }

  .mobile-menu-actions .pd-account-dropdown,
  .pdv-mobile-actions .pd-account-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}
