.terra-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--terra-menu-cols, 1), minmax(0, 1fr));
  gap: 2px;
}

.terra-menu-list__item {
  margin: 0;
  min-width: 0;
}

.terra-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.terra-menu-item:hover,
.terra-menu-item:focus {
  text-decoration: none;
}

.terra-menu-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  overflow: hidden;
}

.terra-menu-item__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.terra-menu-item__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.terra-menu-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.terra-menu-item__title {
  font-weight: 600;
  line-height: 1.3;
}

.terra-menu-item__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: currentColor;
  opacity: 0.72;
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.4;
}

.terra-menu-list__empty {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
