.mh-button,
.mh-button-small,
.mh-button-large,
.mh-button-dynamic {
  background: none;
  border: 2px solid;
  border-radius: 5px;
  color: var(--neutral-color);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  height: 42px;
  line-height: 1;
  margin: 5px;
  transition: 0.25s;
  min-width: 150px;
  width: fit-content;
  width: -moz-fit-content;
  white-space: nowrap;
}

.mh-button:hover:enabled,
.mh-button-small:hover:enabled,
.mh-button-large:hover:enabled,
.mh-button-dynamic:hover:enabled {
  color: white !important;
  border-color: var(--neutral-color);
  box-shadow: inset 0 0 0 2em var(--neutral-color);
}

.mh-button:disabled,
.mh-button-small:disabled,
.mh-button-large:disabled,
.mh-button-dynamic:disabled {
  cursor: default;
  opacity: 0.5;
}

.mh-button-small,
.mh-button-dynamic {
  height: 32px;
  min-width: 75px;
}

.mh-button-large {
  height: 54px;
  font-size: 18px;
  min-width: 225px;
}

.mh-button-save,
.mh-button-save.mh-button-small {
  color: var(--good-color);
}

.mh-button-save:hover:enabled,
.mh-button-save.mh-button-small:hover:enabled {
  border-color: var(--good-color);
  box-shadow: inset 0 0 0 2em var(--good-color);
}

.mh-button-save-inverse,
.mh-button-save-inverse.mh-button-small {
  border-color: var(--good-color);
  box-shadow: inset 0 0 0 2em var(--good-color);
  color: white;
}

.mh-button-save-inverse:hover:enabled,
.mh-button-save-inverse.mh-button-small:hover:enabled {
  border-color: var(--good-color);
  box-shadow: inset 0 0 0 2em white;
  color: var(--good-color) !important;
}

.mh-button-delete,
.mh-button-delete.mh-button-small {
  color: var(--bad-color);
}

.mh-button-delete:hover:enabled,
.mh-button-delete.mh-button-small:hover:enabled {
  border-color: var(--bad-color);
  box-shadow: inset 0 0 0 2em var(--bad-color);
}

.mh-button-caution,
.mh-button-caution.mh-button-small {
  color: var(--caution-color);
}

.mh-button-caution:hover:enabled,
.mh-button-caution.mh-button-small:hover:enabled {
  border-color: var(--caution-color);
  box-shadow: inset 0 0 0 2em var(--caution-color);
}

.mh-button-cancel,
.mh-button-cancel.mh-button-small {
  color: var(--good-color-dark);
}

.mh-button-cancel:hover:enabled,
.mh-button-cancel.mh-button-small:hover:enabled {
  border-color: var(--good-color-dark);
  box-shadow: inset 0 0 0 2em var(--good-color-dark);
}

.mh-button-container {
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 0 3vmax;
  width: 100%;
}

.mh-button-container.center {
  justify-content: center;
}

.mh-button-container.right {
  justify-content: right;
}

.mh-button-container.seperate {
  justify-content: space-between;
}

.mh-button-container.around {
  justify-content: space-around;
}

.mh-icon-button-embed {
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: absolute;
  height: 40px;
  right: 0;
  margin: auto;
  padding: 0 5px;
  text-decoration: none !important;
  transition: color 0.25s;
}

.mh-icon-button-embed:hover {
  color: var(--good-color);
}

.mh-button-dropdown {
  position: relative;
  display: inline-block;
}

.mh-button-dropdown-content {
  display: none;
  flex-direction: column;
  position: absolute;
  background-color: var(--dashboard-background);
  left: 50%;
  transform: translateX(-50%);
  min-width: 100px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.mh-button-dropdown-content span {
  color: var(--good-color);
  cursor: pointer;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 400;
  display: block;
  transition: color 0.25s;
}

.mh-button-dropdown-content span:hover {
  background-color: var(--good-color);
  color: white;
}

@media screen and (max-width: 845px) {
  .mh-button-dynamic {
    height: 42px;
    min-width: 150px;
  }

  .mh-button-container {
    flex-direction: column;
    align-items: center;
  }

  .mh-button-group .mh-button-small {
    margin: 5px;
    min-width: 55px;
  }
}
