.ffehbo-account-menu {
  position: relative;
  z-index: 20;
  color: #16243f;
  font-family: var(--ffehbo-font-family);
  font-size: var(--ffehbo-font-size-body);
}

.ffehbo-account-menu--customer {
  display: inline-flex;
  align-items: center;
}

.ffehbo-account-menu__login,
.ffehbo-account-menu__account-link,
.ffehbo-account-menu__toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: #16243f;
  font: inherit;
  font-weight: 500;
  line-height: var(--ffehbo-line-height-compact);
  text-decoration: none;
  cursor: pointer;
}

.ffehbo-account-menu__account-link {
  padding-right: 6px;
}

.ffehbo-account-menu__toggle {
  min-width: 30px;
  padding-right: 10px;
  padding-left: 6px;
}

.ffehbo-account-menu__login::before,
.ffehbo-account-menu__login:before,
.ffehbo-account-menu__login::after,
.ffehbo-account-menu__login:after,
.ffehbo-account-menu__account-link::before,
.ffehbo-account-menu__account-link:before,
.ffehbo-account-menu__account-link::after,
.ffehbo-account-menu__account-link:after,
.ffehbo-account-menu__toggle::before,
.ffehbo-account-menu__toggle:before,
.ffehbo-account-menu__toggle::after,
.ffehbo-account-menu__toggle:after {
  display: none;
  content: none;
}

.ffehbo-account-menu__login:hover,
.ffehbo-account-menu__login:focus-visible,
.ffehbo-account-menu__account-link:hover,
.ffehbo-account-menu__account-link:focus-visible,
.ffehbo-account-menu.is-open .ffehbo-account-menu__account-link,
.ffehbo-account-menu__toggle:hover,
.ffehbo-account-menu__toggle:focus-visible,
.ffehbo-account-menu.is-open .ffehbo-account-menu__toggle {
  background: transparent;
  color: var(--e-global-color-text, #dca92f);
}

.ffehbo-account-menu__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ffehbo-account-menu__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.ffehbo-account-menu.is-open .ffehbo-account-menu__chevron {
  transform: translateY(2px) rotate(225deg);
}

.ffehbo-account-menu__dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 20px;
  visibility: hidden;
  min-width: 175px;
  padding: 10px;
  border: 0;
  border-radius: 15px;
  background: var(--e-global-color-alternate, #f5f7fa);
  box-shadow: 10px 10px 10px 7px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.ffehbo-account-menu__dropdown::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 20px;
  content: "";
}

.ffehbo-account-menu__dropdown[hidden] {
  display: none;
}

.ffehbo-account-menu.is-open .ffehbo-account-menu__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

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

.ffehbo-account-menu__list li + li {
  margin-top: 2px;
}

.ffehbo-account-menu__list a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  background: var(--e-global-color-background, #fff);
  color: var(--e-global-color-text, #16243f);
  font-family: var(--e-global-typography-accent-font-family, var(--ffehbo-font-family));
  font-size: var(--e-global-typography-accent-font-size, var(--ffehbo-font-size-body));
  font-weight: var(--e-global-typography-accent-font-weight, 500);
  line-height: var(--e-global-typography-accent-line-height, var(--ffehbo-line-height-compact));
  text-decoration: none;
  white-space: nowrap;
}

.ffehbo-account-menu__list a:hover,
.ffehbo-account-menu__list a:focus-visible {
  background: var(--e-global-color-accent, #fcda98);
  color: var(--e-global-color-secondary, #16243f);
}

.ffehbo-account-menu__item-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  order: 1;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Match Elementor's 1180px tablet breakpoint, where off-canvas navigation takes over. */
@media (max-width: 1180px) {
  .cmsmasters-location-cmsmasters_header .ffehbo-account-menu,
  .cmsmasters-location-cmsmasters_header .ffehbo-account-menu__login {
    display: none !important;
  }
}
