.gf-header-account-area {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  position: relative;
  white-space: nowrap;
}

.gf-header-account-area > .elementor-element {
  flex: 0 0 auto;
  width: auto !important;
}

.gf-header-account-area .trp-flags {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row-reverse !important;
  gap: 0 !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.gf-header-account-area .trp-flags li {
  align-items: center;
  display: flex;
  line-height: 1;
  margin: 0 !important;
  padding: 0 !important;
}

.gf-header-account-area .trp-flags li:nth-child(2)::after {
  color: #8a8a8a;
  content: '|';
  font-size: 13px;
  font-weight: 400;
  margin: 0 8px;
}

.gf-header-account-area .trp-flags a {
  color: #303030 !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  padding: 4px 0 !important;
  text-decoration: none !important;
  transition: color .18s ease;
}

.gf-header-account-area .trp-flags a:hover { color: #303030 !important; }
.gf-header-account-area .trp-flags img { display: none !important; }
.gf-header-account-area .trp-flags li:nth-child(1) a::after { content: 'VN'; }
.gf-header-account-area .trp-flags li:nth-child(2) a::after { content: 'EN'; }

html[lang^="vi"] .gf-header-account-area .trp-flags li:nth-child(1) a,
body.translatepress-vi .gf-header-account-area .trp-flags li:nth-child(1) a,
html[lang^="en"] .gf-header-account-area .trp-flags li:nth-child(2) a {
  color: var(--gf-account-red, #c51f2a) !important;
  font-weight: 800;
}

.gf-header-account {
  --gf-account-red: #c51f2a;
  --gf-account-red-dark: #970b14;
  --gf-account-ink: #171717;
  --gf-account-muted: #676767;
  flex: 0 0 auto;
  font-family: inherit;
  position: relative;
  z-index: 10020;
}

.gf-header-account * { box-sizing: border-box; }

.gf-header-account__trigger {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #303030 !important;
  cursor: pointer;
  display: grid !important;
  height: 40px;
  line-height: 0 !important;
  margin: 0 !important;
  min-height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  place-items: center;
  text-indent: 0 !important;
  transition: background-color .18s ease, color .18s ease;
  width: 40px !important;
}

.gf-header-account__trigger:hover,
.gf-header-account__trigger[aria-expanded="true"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #303030 !important;
}

.gf-header-account__trigger:focus-visible {
  outline: 3px solid rgba(197, 31, 42, .2);
  outline-offset: 3px;
}

.gf-header-account__avatar {
  display: grid;
  height: 22px;
  margin: 0;
  place-items: center;
  position: relative;
  transform: translate(0, 0);
  width: 22px;
}

.gf-header-account__avatar svg {
  display: block;
  height: 22px;
  margin: 0;
  overflow: visible;
  transform: translate(0, 0);
  width: 22px;
}

.gf-header-account__status {
  background: #20a464;
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: -2px;
  height: 9px;
  opacity: 0;
  position: absolute;
  right: -3px;
  transform: scale(.6);
  transition: opacity .2s ease, transform .2s ease;
  width: 9px;
}

.gf-header-account.is-authenticated .gf-header-account__trigger {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--gf-account-red) !important;
}
.gf-header-account.is-authenticated .gf-header-account__trigger:hover,
.gf-header-account.is-authenticated .gf-header-account__trigger[aria-expanded="true"] {
  background: transparent !important;
  color: var(--gf-account-red) !important;
}
.gf-header-account.is-authenticated .gf-header-account__status { opacity: 1; transform: scale(1); }

.gf-header-account__menu {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
  color: var(--gf-account-ink);
  min-width: 250px;
  padding: 0 16px 16px;
  position: absolute;
  right: -8px;
  text-align: left;
  top: 100%;
  white-space: normal;
  z-index: 10021;
}

.gf-header-account__menu::before {
  display: none;
}

.gf-header-account__eyebrow {
  border-bottom: 1px solid #ececec;
  color: var(--gf-account-ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  margin: 0 -16px 14px;
  padding: 16px 16px 13px;
  text-align: center;
}

.gf-header-account__title {
  color: var(--gf-account-ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}

.gf-header-account__action {
  align-items: center;
  appearance: none;
  background: #fff !important;
  border: 1px solid #dedede !important;
  border-radius: 4px !important;
  color: var(--gf-account-ink) !important;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 11px !important;
  font-weight: 600;
  justify-content: center;
  letter-spacing: .16em;
  margin: 10px 0 0 !important;
  min-height: 41px;
  padding: 9px 14px !important;
  text-decoration: none !important;
  text-transform: uppercase;
  width: 100% !important;
}

.gf-header-account__action:hover { border-color: var(--gf-account-red) !important; color: var(--gf-account-red) !important; }
.gf-header-account__action--primary {
  background: #171717 !important;
  border-color: #171717 !important;
  color: #fff !important;
}
.gf-header-account__action--primary:hover { background: var(--gf-account-red-dark) !important; color: #fff !important; }

[data-account-view="guest"] .gf-header-account__action:first-of-type {
  background: #171717 !important;
  border-color: #171717 !important;
  color: #fff !important;
}

[data-account-view="guest"] .gf-header-account__title { display: none; }

[data-account-view="guest"] .gf-header-account__action:last-of-type {
  background: #fff !important;
  border-color: #171717 !important;
  color: var(--gf-account-ink) !important;
}
.gf-header-account__logout:disabled { cursor: wait; opacity: .6; }
.gf-header-account__logout {
  display: flex !important;
  max-width: none !important;
  min-width: 100% !important;
  width: 100% !important;
}

.gf-header-account__notice {
  background: #fff0f0;
  border-radius: 8px;
  color: #971c23;
  font-size: 12px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 9px 10px;
}

.gf-header-account__sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1024px) {
  .gf-header-account-area { gap: 8px; }
  .gf-header-account__trigger { height: 38px; min-height: 38px !important; min-width: 38px !important; width: 38px !important; }
  .gf-header-account__menu { min-width: 250px; right: 0; }
}

@media (max-width: 480px) {
  .gf-header-account__menu {
    max-width: calc(100vw - 24px);
    min-width: 240px;
    position: fixed;
    right: 12px;
    top: 72px;
  }
  .gf-header-account__menu::before { display: none; }
}
