.duyanhweb-account,
.duyanhweb-account-login {
  --daw-account-primary: #1d3072;
  --daw-account-primary-dark: #142354;
  --daw-account-border: #dfe5f1;
  --daw-account-muted: #647087;
  --daw-account-surface: #ffffff;
  font-size: 14px;
}

.duyanhweb-account {
  display: inline-block;
  max-width: 100%;
  position: relative;
  vertical-align: middle;
  z-index: 10001;
}

.duyanhweb-account__trigger,
.duyanhweb-account-login {
  align-items: center;
  background: var(--daw-account-surface);
  border: 1px solid rgba(20, 35, 84, 0.14);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20, 35, 84, 0.1);
  color: var(--daw-account-primary-dark) !important;
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
  letter-spacing: 0;
  margin: 0;
  min-height: 44px;
  padding: 6px 12px !important;
  text-decoration: none;
  text-transform: none;
  touch-action: manipulation;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.duyanhweb-account__trigger:hover,
.duyanhweb-account-login:hover {
  border-color: rgba(29, 48, 114, 0.34);
  box-shadow: 0 7px 18px rgba(20, 35, 84, 0.15);
  color: var(--daw-account-primary);
}

.duyanhweb-account__trigger {
  max-width: 260px;
  width: auto;
}

.duyanhweb-account__avatar {
  align-items: center;
  background: #edf2ff;
  border-radius: 50%;
  color: var(--daw-account-primary);
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  position: relative;
  width: 32px;
}

.duyanhweb-account__online {
  background: #1f9d55;
  border: 2px solid #ffffff;
  border-radius: 50%;
  bottom: -1px;
  height: 10px;
  position: absolute;
  right: -1px;
  width: 10px;
}

.duyanhweb-account__label {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  text-align: left;
}

.duyanhweb-account__label > span {
  color: var(--daw-account-muted);
  font-size: 11px;
  font-weight: 500;
}

.duyanhweb-account__label strong {
  color: var(--daw-account-primary-dark);
  display: block;
  font-size: 13px;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duyanhweb-account__chevron {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.duyanhweb-account.is-open .duyanhweb-account__chevron {
  transform: rotate(180deg);
}

.duyanhweb-account__menu[hidden] {
  display: none !important;
}

.duyanhweb-account__menu {
  animation: duyanhweb-account-menu-enter 180ms ease-out both;
  background: var(--daw-account-surface);
  border: 1px solid var(--daw-account-border);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(8, 15, 39, 0.2);
  max-width: calc(100vw - 24px);
  min-width: 230px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: max-content;
}

.duyanhweb-account__summary {
  background: #f5f7fb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
  padding: 11px 12px;
}

.duyanhweb-account__summary-status {
  align-items: center;
  color: var(--daw-account-muted);
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
}

.duyanhweb-account__summary-status > span {
  background: #1f9d55;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.duyanhweb-account__summary strong {
  color: var(--daw-account-primary-dark);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.duyanhweb-account__logout {
  align-items: center;
  border-radius: 8px;
  color: #a8271d;
  display: flex;
  font-weight: 700;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.duyanhweb-account__logout:hover {
  background: #fff0ee;
  color: #8d1d15;
}

.duyanhweb-account__trigger:focus-visible,
.duyanhweb-account-login:focus-visible,
.duyanhweb-account__logout:focus-visible {
  outline: 3px solid rgba(29, 48, 114, 0.34);
  outline-offset: 3px;
}

.duyanhweb-account-login svg {
  flex: 0 0 auto;
}

.duyanhweb-account-login span {
  font-weight: 700;
}

@keyframes duyanhweb-account-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 549px) {
  .duyanhweb-account__trigger {
    max-width: min(240px, calc(100vw - 24px));
  }

  .duyanhweb-account__label strong {
    max-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .duyanhweb-account__trigger,
  .duyanhweb-account-login,
  .duyanhweb-account__logout,
  .duyanhweb-account__chevron {
    transition: none;
  }

  .duyanhweb-account__menu {
    animation: none;
  }
}
