:host {
  display: block;
  --focus-ring: 0 0 0 var(--sc-focus-ring-width) var(--sc-focus-ring-color-primary);
}

.search {
  margin: var(--sc-spacing-x-small) var(--sc-spacing-x-small) 0 var(--sc-spacing-x-small);
}

.loading {
  text-align: center;
  margin: var(--sc-spacing-small);
}

sc-dropdown {
  display: block;
}

.trigger {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-style: solid;
  border-width: var(--sc-input-border-width);
  font-family: var(--sc-input-font-family);
  font-weight: var(--sc-font-weight-normal);
  background-color: var(--sc-color-white);
  border-color: var(--sc-color-gray-300);
  color: var(--sc-color-gray-600);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0;
  transition: var(--sc-transition-fast) background-color, var(--sc-transition-fast) color, var(--sc-transition-fast) border, var(--sc-transition-fast) box-shadow;
  cursor: inherit;
  box-shadow: var(--sc-shadow-small);
  font-size: var(--sc-button-font-size-medium);
  height: var(--sc-input-height-medium);
  line-height: calc(var(--sc-input-height-medium) - var(--sc-input-border-width) * 2);
  border-radius: var(--sc-input-border-radius-medium);
  padding: 0 var(--sc-spacing-small);
}
.trigger svg {
  display: block;
  width: 1em;
  height: 1em;
}

.select.select--focused:not(.select--disabled) .trigger {
  background-color: var(--sc-input-background-color-focus);
  border-color: var(--sc-input-border-color-focus);
  box-shadow: var(--focus-ring);
  z-index: 2;
}
.select--disabled {
  cursor: not-allowed;
}
.select--disabled sc-dropdown {
  opacity: 0.65;
}

.select__value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.select__empty {
  text-align: center;
  margin: var(--sc-spacing-small);
  color: var(--sc-color-gray-400);
}

.select--placeholder .trigger {
  color: var(--sc-color-gray-400);
}

.select__hidden-input {
  position: absolute;
  opacity: 0;
  padding: 0px;
  margin: 0px;
  pointer-events: none;
}

.select__caret {
  transition: transform 0.25s ease;
  line-height: 0;
}

.select--is-open .select__caret {
  transform: rotate(180deg);
}

.select--squared .trigger {
  border-radius: 0;
}
.select--squared-top .trigger {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.select--squared-bottom .trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.select--squared-left .trigger {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.select--squared-right .trigger {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.choice__icon--image {
  width: 18px;
  height: 18px;
  object-fit: contain;
}