/*! RangeMenu v1.0.0 (c) 2026 Rangefront Labs. Commercial licence, see LICENSE.md. */
.rgm {
  --rgm-bg: #ffffff;
  --rgm-text: #1d2129;
  --rgm-muted: #8a919c;
  --rgm-hover: #eef1f4;
  --rgm-line: #e4e7eb;
  --rgm-shadow: 0 10px 38px rgba(15, 20, 30, 0.16), 0 2px 8px rgba(15, 20, 30, 0.08);
  --rgm-radius: 8px;
  --rgm-accent: #1d2129;
  --rgm-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --rgm-font-size: 13.5px;
  position: absolute;
  width: 0;
  height: 0;
}

.rgm[data-rgm-theme="dark"] {
  --rgm-bg: #23262d;
  --rgm-text: #e8eaed;
  --rgm-muted: #8f96a3;
  --rgm-hover: #31353e;
  --rgm-line: #383d47;
  --rgm-shadow: 0 10px 38px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.rgm__menu {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 168px;
  max-width: 320px;
  padding: 5px;
  background: var(--rgm-bg);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  box-shadow: var(--rgm-shadow);
  font-family: var(--rgm-font);
  font-size: var(--rgm-font-size);
  line-height: 1;
  color: var(--rgm-text);
  user-select: none;
}

.rgm__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: calc(var(--rgm-radius) - 4px);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: default;
}

.rgm__item--active {
  background: var(--rgm-hover);
}

.rgm__item[aria-disabled="true"] {
  color: var(--rgm-muted);
}

.rgm__icon {
  flex: 0 0 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rgm__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.rgm__icon:empty {
  flex-basis: 0;
  margin-left: -8px;
}

.rgm__title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rgm__shortcut {
  flex: 0 0 auto;
  margin-left: 18px;
  color: var(--rgm-muted);
  font-size: 0.92em;
}

.rgm__caret {
  flex: 0 0 auto;
  margin-left: 14px;
  margin-right: -3px;
  display: inline-flex;
  color: var(--rgm-muted);
}

.rgm__caret svg {
  width: 13px;
  height: 13px;
  display: block;
}

.rgm__separator {
  height: 1px;
  margin: 5px 8px;
  background: var(--rgm-line);
}
