/* Header account hover panel. Sits above the sticky bar (z-index 99) and mega menu. */
.smt-account-menu {
  position: relative;
  z-index: 40;
}

.tp-header-area:has(.smt-account-menu.is-open) {
  z-index: 200;
}

.smt-account-menu.is-open {
  z-index: 201;
}

.smt-account-menu.is-open::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.smt-account-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 24px);
  z-index: 202;
  box-sizing: border-box;
}

.smt-account-menu__panel[hidden] {
  display: none !important;
}

.smt-account-menu__caret {
  position: absolute;
  top: -5px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: -1px -1px 2px rgba(1, 15, 28, 0.04);
  z-index: 0;
}

.smt-account-menu__sheet {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #010f1c;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(1, 15, 28, 0.14), 0 2px 8px rgba(1, 15, 28, 0.06);
  padding: 16px 0 8px;
  overflow: hidden;
  font-family: var(--primary-font), "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

.smt-account-menu__signin {
  display: block;
  margin: 0 16px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #0c55aa;
  color: #fff !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.tp-header-main .tp-header-login .smt-account-menu__signin,
.tp-header-main .tp-header-login .smt-account-menu__signin:hover,
.tp-header-main .tp-header-login .smt-account-menu__signin:focus {
  color: #fff !important;
}

.smt-account-menu__signin:hover,
.smt-account-menu__signin:focus-visible {
  background: #0b4ea2;
}

.smt-account-menu__register {
  display: block;
  margin: 8px 16px 0;
  color: #8a8a8a !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  text-decoration: none !important;
}

.tp-header-main .tp-header-login .smt-account-menu__register:hover,
.tp-header-main .tp-header-login .smt-account-menu__register:focus-visible {
  color: #0c55aa !important;
}

.smt-account-menu__rule {
  height: 0;
  margin: 12px 16px;
  border: 0;
  border-top: 1px solid #e6e6e6;
  opacity: 1;
  color: transparent;
}

.smt-account-menu__who {
  padding: 0 18px 4px;
}

.smt-account-menu__who strong,
.smt-account-menu__who span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smt-account-menu__who strong {
  font-size: 15px;
  font-weight: 600;
  color: #010f1c;
  line-height: 1.3;
}

.smt-account-menu__who span {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #8a8a8a;
}

.smt-account-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.smt-account-menu__iconlink,
.smt-account-menu__text {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  color: #222 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
}

.smt-account-menu__text {
  display: block;
  color: #8a8a8a !important;
  font-weight: 400;
  padding-top: 7px;
  padding-bottom: 7px;
}

.smt-account-menu__icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #222;
}

.tp-header-main .tp-header-login .smt-account-menu__iconlink:hover,
.tp-header-main .tp-header-login .smt-account-menu__iconlink:focus-visible,
.tp-header-main .tp-header-login .smt-account-menu__text:hover,
.tp-header-main .tp-header-login .smt-account-menu__text:focus-visible,
.tp-header-main .tp-header-login .smt-account-menu__iconlink:hover span,
.tp-header-main .tp-header-login .smt-account-menu__logout:hover {
  color: #0c55aa !important;
  background: #f6f7f9;
}

.smt-account-menu__iconlink:hover .smt-account-menu__icon,
.smt-account-menu__iconlink:focus-visible .smt-account-menu__icon {
  color: #0c55aa;
}

.smt-account-menu__logout-form {
  margin: 0;
}

.smt-account-menu__logout {
  font-weight: 500;
  color: #222 !important;
}

.smt-account-menu__signin:focus-visible,
.smt-account-menu__register:focus-visible,
.smt-account-menu__iconlink:focus-visible,
.smt-account-menu__text:focus-visible {
  outline: 2px solid #0c55aa;
  outline-offset: -2px;
}

@media (max-width: 991.98px) {
  .smt-account-menu__panel,
  .smt-account-menu.is-open::after {
    display: none !important;
  }
}
