/* Nested feature-selection submenus for Tools & Business */
.rm-feature-menu .mat-mdc-menu-content {
  padding: 0 !important;
  min-width: 240px;
}

.rm-feature-menu__head {
  padding: 14px 14px 8px;
}

.rm-feature-menu__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.rm-feature-menu__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

body.material-theme-dark .rm-feature-menu__eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

body.material-theme-dark .rm-feature-menu__title {
  color: #fff;
}

.rm-feature-group {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

.rm-feature-group__arrow {
  margin-left: auto !important;
  width: 18px !important;
  height: 18px !important;
  font-size: 18px !important;
  color: #6b6b6b !important;
}

.rm-feature-group.is-open,
.rm-feature-group:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.material-theme-dark .rm-feature-group.is-open,
body.material-theme-dark .rm-feature-group:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rm-feature-flyout {
  position: fixed;
  z-index: 2000;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 16px));
  padding: 4px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  animation: rm-feature-flyout-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

body.material-theme-dark .rm-feature-flyout {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.rm-feature-flyout__item {
  width: 100%;
}

@keyframes rm-feature-flyout-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
