@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
.size-1 {
  font-size: 12px;
  line-height: 20px;
}

.size-2 {
  font-size: 14px;
  line-height: 22px;
}

.size-3 {
  font-size: 16px;
  line-height: 24px;
}

.size-4 {
  font-size: 20px;
  line-height: 28px;
}

.size-5 {
  font-size: 24px;
  line-height: 32px;
}

.size-6 {
  font-size: 30px;
  line-height: 38px;
}

.size-7 {
  font-size: 38px;
  line-height: 46px;
}

.size-8 {
  font-size: 46px;
  line-height: 54px;
}

.size-9 {
  font-size: 56px;
  line-height: 64px;
}

.weight-regular {
  font-weight: 400;
}

.weight-semibold {
  font-weight: 500;
}

/**
 * Generator
 */
.input-size-large {
  height: 40px;
}

.input-size-medium {
  height: 32px;
}

.input-size-small {
  height: 24px;
}

.resize-none textarea {
  resize: none;
}

.resize-vertical textarea {
  resize: vertical;
}

.resize-auto textarea {
  height: auto;
  resize: none;
}

.textarea-size-large {
  padding: 4px 0 0 4px;
  min-height: 40px;
}
.textarea-size-large .bcm-input-element {
  min-height: calc((40px - 8px) + 2px);
}
.textarea-size-large .input-clear-button {
  height: calc( 40px - 16px );
  top: 8px;
  padding: 0;
  margin-right: 8px;
}

.textarea-size-medium {
  padding: 4px 0 0 4px;
  min-height: 32px;
}
.textarea-size-medium .bcm-input-element {
  min-height: calc((32px - 8px) + 2px);
}
.textarea-size-medium .input-clear-button {
  height: calc( 32px - 16px );
  top: 8px;
  padding: 0;
  margin-right: 8px;
}

.textarea-size-small {
  padding: 0px 0 0 4px;
  min-height: 24px;
}
.textarea-size-small .bcm-input-element {
  min-height: calc((24px - 8px) + 2px);
}
.textarea-size-small .input-clear-button {
  height: calc( 24px - 16px );
  top: 8px;
  padding: 0;
  margin-right: 8px;
}

:host {
  display: inline-block;
  width: 100%;
  margin: 0;
}

:host(.hidden) {
  display: none;
}

.container {
  display: block;
  max-width: 256px;
  position: relative;
}
.container.full-width {
  width: 100%;
  max-width: 100%;
}

.selected {
  width: 100%;
  box-sizing: border-box;
  color: var(--bcm-color-grey-8);
  background-color: var(--bcm-color-grey-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--bcm-color-grey-5);
  user-select: none;
  cursor: pointer;
}
.selected:hover:not(.disabled) {
  border-color: var(--bcm-color-prime-blue-5);
}
.selected:hover:not(.disabled) .select-clear-button {
  opacity: 1;
}
.selected:focus:not(.disabled) {
  border-color: var(--bcm-color-prime-blue-5);
  box-shadow: 0px 0px 4px var(--bcm-color-prime-blue-6);
}
.selected:focus:not(.disabled) .select-clear-button {
  opacity: 1;
}
.selected:focus {
  outline: none;
}
.selected.disabled {
  background-color: var(--bcm-color-grey-3);
  color: var(--bcm-color-grey-8);
  cursor: not-allowed;
}
.selected .buttons {
  padding: 8px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.selected .selected-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 8px;
  width: 100%;
}
.selected .selected-tags {
  padding: 0 4px;
  height: 100%;
}
.selected .tag-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-gap: 2px;
}
.selected .tag-container > span {
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  display: flex;
  grid-gap: 2px;
}
.selected .tag-container .tag {
  max-width: 200px;
}
.selected .tag-container #other-tag {
  cursor: pointer;
}
.selected .open, .selected .close {
  display: inline-flex;
}
.selected .close {
  transform: rotate(180deg);
}
.selected .placeholder {
  color: #6B7280;
  user-select: none;
  font-size: 14px;
  height: 100%;
  display: flex;
  align-items: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.options-viewport {
  display: inline-block;
}

.option-container {
  display: block;
  position: absolute;
  background-color: var(--bcm-color-grey-1);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  width: 100%;
  z-index: 10000;
}
.option-container.alignment-left {
  left: 0;
}
.option-container.alignment-right {
  right: 0;
}
.option-container.hidden {
  display: none;
}
.option-container .search {
  position: sticky;
  padding: 8px;
  margin-bottom: 4px;
}
.option-container .search:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1px;
  width: calc(100% - 16px);
  background-color: var(--bcm-color-grey-5);
}

.options-viewport {
  display: block;
}
.options-viewport bcm-select-option, .options-viewport ::slotted(bcm-select-option) {
  white-space: normal;
}
.options-viewport.hidden {
  display: none;
}
.options-viewport.vertical {
  height: fit-content;
  max-height: 200px;
}
.options-viewport.horizontal:not(.flex) {
  overflow-x: auto;
  width: 100%;
}
.options-viewport.horizontal:not(.flex) bcm-select-option, .options-viewport.horizontal:not(.flex) ::slotted(bcm-select-option) {
  white-space: nowrap;
}

.items {
  display: flex;
  flex-direction: column;
}

.buttons {
  display: flex;
}

.select-clear-button {
  display: inline-flex;
  align-items: center;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  margin-right: 4px;
  opacity: 0;
}

.label {
  display: block;
  color: var(--bcm-color-grey-9);
}

.caption-area {
  min-height: 20px;
}

.input-caption {
  display: block;
}

.selected-large {
  height: 40px;
}

.selected-medium {
  height: 32px;
}

.selected-small {
  height: 24px;
}

.caption-default {
  color: #8C8C8C;
}

.caption-primary {
  color: #4293CF;
}

.caption-success {
  color: #52C41A;
}

.caption-warning {
  color: #FA8C16;
}

.caption-error {
  color: #F5222D;
}

.error .label {
  color: var(--bcm-color-red-6) !important;
}
.error .selected {
  border: 1px solid var(--bcm-color-red-6) !important;
}