/* prettier-ignore */
:host small {
  position: absolute;
  font-size: 12px;
  bottom: -16px;
  left: 12px;
  text-align: left;
  transition: left 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
:host small:before {
  content: "|";
  position: absolute;
  left: -6px;
  font-weight: 100;
}

:host([disabled]) small {
  color: var(--bce-color-disable-n);
}

:host([focus]) small {
  color: var(--bce-color-n);
}

:host([error]) bce-label {
  color: var(--bce-color-error-n);
}
:host([error]) small {
  color: var(--bce-color-error-n);
}

@media screen and (min-width: 1024px) {
  :host(:not([compact])[label]) small {
    left: calc(25% + 12px);
  }
}
:host {
  --bce-color-l: var(--bce-color-primary-l);
  --bce-color-n: var(--bce-color-primary-n);
  --bce-color-d: var(--bce-color-primary-d);
  --bce-color-t: var(--bce-color-primary-t);
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  margin: 20px 0;
  min-height: 40px;
}
:host fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: inherit;
}
:host fieldset legend {
  display: none;
}

:host([center]) {
  text-align: center;
}

:host([error]) {
  --bce-color-l: var(--bce-color-error-l);
  --bce-color-n: var(--bce-color-error-n);
  --bce-color-d: var(--bce-color-error-d);
  --bce-color-t: var(--bce-color-error-t);
}

:host([label]) bce-label {
  flex: 0 0 25%;
  height: 100%;
  line-height: 40px;
}
:host([label]) fieldset {
  flex: 0 0 75%;
}
@media screen and (min-width: 1024px) {
  :host([label]) {
    flex-flow: row nowrap;
  }
}

:host([type=dropdown]) .trigger {
  position: relative;
  flex: 1 0 75%;
}
:host([type=dropdown]) .trigger bce-input {
  margin: 0;
  cursor: pointer;
}
:host([type=dropdown]) .trigger bce-input[data-active] {
  cursor: initial;
}
:host([type=dropdown]) .trigger bce-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
}
:host([type=dropdown]) .dropdown {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
  display: none;
  font-size: 0.9em;
  border-radius: 4px;
  background-color: var(--bce-color-light-l);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 3;
}
:host([type=dropdown]) .dropdown[data-active] {
  display: block;
  max-height: 300px;
}