.mi-input[type=text], .mi-input[type=search], .mi-input[type=number], .mi-input[type=password], .mi-input[type=tel] {
  font-size: 1rem;
  padding: 8px;
  border-style: solid;
  border-width: 1px;
  border-color: #8d98aa;
  border-radius: 4px;
}
.mi-input[type=text], .mi-input[type=search], .mi-input[type=number], .mi-input[type=password], .mi-input[type=range], .mi-input[type=tel] {
  display: block;
}
.mi-input[type=radio], .mi-input[type=checkbox] {
  margin: 0px;
  transform: scale(1.2, 1.2);
}
.mi-input[type=search] {
  padding-left: 32px;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white;
}
.mi-input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.mi-label {
  font-style: normal;
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #1e2025;
}
.mi-label > * {
  margin-top: 4px;
}
.mi-label > input[type=radio], .mi-label > input[type=checkbox], .mi-label > label.mi-toggle-btn {
  margin-right: 8px;
}

mi-dropdown-item {
  display: none;
}

:host {
  display: inline-block;
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

:host(.open) .button::after {
  border-top-color: transparent;
  border-bottom-color: #1f2937;
  margin-top: -8px;
}

:host(.open) section {
  display: flex;
}
:host(.open) svg.arrow {
  transform: rotate(180deg);
}

.button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  font-family: inherit;
  background: linear-gradient(#f9fafb, #f3f4f6);
  padding: 0;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 4px;
  border-width: 1px;
  border-style: solid;
  border-color: #d1d5db;
  color: #1c1917;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1rem;
  gap: 8px;
}
.button__left-icon {
  height: 20px;
  width: 20px;
}
.button svg {
  margin-left: auto;
}
.button__label {
  padding-top: 12px;
  padding-bottom: 12px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.button__label--from-inner-html {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  place-items: center;
}
.button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.content {
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #1c1917;
  font-size: 1rem;
  font-weight: 500;
  background-color: #fcfcfc;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);
  min-width: 320px;
  max-width: 480px;
  max-height: 580px;
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 10000;
}
.content .filter {
  margin-bottom: 16px;
  padding-left: 8px;
  padding-right: 8px;
  display: flex;
  position: relative;
}
.content .filter__input {
  width: 100%;
}
.content .filter__clear {
  width: 20px;
  height: 20px;
  padding: 0;
  border-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  /* relates to input field height and button size: button should be placed with equal distance to top, right and bottom */
  top: 50%;
  transform: translateY(-50%);
  background-color: #1f2937;
  border-radius: 50%;
}
.content .filter__clear:focus {
  outline: 0;
}
.content .filter__clear--hidden {
  opacity: 0;
  pointer-events: none;
}
.content .filter__clear svg {
  fill: #fcfcfc;
  width: 10px;
  height: 10px;
}
.content .options {
  margin-bottom: 16px;
  padding-left: 16px;
  padding-right: 16px;
}
.content .options__item {
  padding: 0;
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  background-color: transparent;
  border: transparent;
}
.content .options__item:hover {
  text-decoration: underline;
}
.content .options__item:first-child {
  margin-right: 16px;
}
.content .options__item:disabled {
  color: rgba(48, 113, 217, 0.72);
  cursor: not-allowed;
  text-decoration: none;
}
.content .list {
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-y: auto;
}
.content .list__item {
  cursor: pointer;
}
.content .list__item--disabled {
  opacity: 0.72;
}
.content .list__item--highlighted {
  background-color: #f3f4f6;
}

.empty-page {
  display: flex;
  align-items: left;
  flex-direction: column;
  margin-left: 16px;
  margin-bottom: 12px;
}
.empty-page > * {
  margin: 0;
}
.empty-page__header {
  font-size: 1rem;
  font-weight: 400;
  color: #374151;
}

.label {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.label__item {
  display: inline-block;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.label__item--from-inner-html {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  place-items: center;
}
.label__checkbox {
  margin-right: 12px;
}
.label__checkbox--hidden {
  display: none;
}