/* 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);
  color: var(--bce-con2-surface);
}
:host small:before {
  content: "";
  position: absolute;
  left: -6px;
  font-weight: 100;
}

:host([disabled]) small {
  color: var(--bce-con3-surface);
}

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

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

@media screen and (min-width: 1024px) {
  :host(:not([compact])[label]) small {
    left: calc(25% + 12px);
  }
}
:host {
  --bce-c300:var(--bce-c300-primary);
  --bce-c400:var(--bce-c400-primary);
  --bce-c500:var(--bce-c500-primary);
  --bce-c600:var(--bce-c600-primary);
  --bce-c700:var(--bce-c700-primary);
  --bce-con1:var(--bce-con1-primary);
  --bce-con2:var(--bce-con2-primary);
  --bce-con3:var(--bce-con3-primary);
  --bce-con4:var(--bce-con4-primary);
  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-c300:var(--bce-c300-error);
  --bce-c400:var(--bce-c400-error);
  --bce-c500:var(--bce-c500-error);
  --bce-c600:var(--bce-c600-error);
  --bce-c700:var(--bce-c700-error);
  --bce-con1:var(--bce-con1-error);
  --bce-con2:var(--bce-con2-error);
  --bce-con3:var(--bce-con3-error);
  --bce-con4:var(--bce-con4-error);
}

: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 {
  --bce-c-surface:var(--bce-c002-surface);
  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-c-surface);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 3;
}
:host([type=dropdown]) .dropdown[data-active] {
  display: block;
  max-height: 300px;
}