/*
 * Header account menu (My Profile / Logout / Login).
 * Matches the black / white / red palette already used by the
 * Elementor header's Nav Menu widget. The fade-in/out timing itself
 * is handled by assets/js/dlc-account-menu-fade.js (SmartMenus
 * show/hideFunction) — this file only covers color and alignment.
 */

.elementor-nav-menu .dlc-account-menu-item {
  position: relative;
}

.elementor-nav-menu .dlc-account-menu-item > .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 190px;
  margin: 12px 0 0;
  padding: 8px 0;
  list-style: none;
  text-align: left;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.elementor-nav-menu .dlc-account-submenu-item > a {
  display: block;
  padding: 10px 22px;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.elementor-nav-menu .dlc-account-submenu-item > a:hover,
.elementor-nav-menu .dlc-account-submenu-item > a:focus,
.elementor-nav-menu .dlc-account-submenu-item > a.highlighted {
  background-color: #FF0000;
  color: #FFFFFF;
}

/* On narrower viewports the icon sits closer to the left edge —
   right-aligning the panel there would push part of it off-screen. */
@media (max-width: 1024px) {
  .elementor-nav-menu .dlc-account-menu-item > .sub-menu {
    right: auto;
    left: 0;
  }
}
