.root {
  position: relative;
  display: inline-block;
}

.afterWrapper {
  position: absolute;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  right: calc(0.5 * var(--mini-unit));
  height: 100%;
  user-select: none;
  pointer-events: none;
}

.keyboardFocus:focus {
  @mixin outline;
}

.select {
  composes: menuItem from "coral-ui/shared/typography.css";
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  color: var(--palette-text-primary);
  width: 100%;
  font-family: system-ui !important;

  &::-moz-focus-inner {
    border: 0;
  }

  &:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
  }

  &:disabled {
    background-color: var(--palette-grey-lightest);
    border-color: var(--palette-text-secondary);
    color: var(--palette-text-secondary);
  }

  border: 1px solid var(--palette-grey-light);
  border-radius: var(--round-corners);
  background-color: var(--palette-common-white);

  padding: calc(0.5 * var(--mini-unit)) calc(2 * var(--mini-unit))
    calc(0.5 * var(--mini-unit)) var(--mini-unit);

  &::-ms-expand {
    display: none;
  }
}

.fullWidth {
  width: 100%;
}

.afterWrapperDisabled {
  color: var(--palette-text-secondary);
}
