/* 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;
  margin: 20px 0;
  height: 48px;
}
:host input::-ms-clear,
:host input::-ms-reveal {
  display: none;
}
:host input,
:host textarea {
  flex: 1 0 100%;
  height: inherit;
  padding: 14px 12px;
  font-size: 0.9em;
  font-family: inherit;
  background-color: var(--bce-c-surface);
  color: var(--bce-con1-surface);
  border: 1px solid var(--bce-con4-surface);
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease-in-out;
  -webkit-appearance: none;
  cursor: inherit;
}
:host input[type=color],
:host textarea[type=color] {
  padding: 10px;
}
:host input::-webkit-color-swatch-wrapper,
:host textarea::-webkit-color-swatch-wrapper {
  padding: 0;
}
:host input::-webkit-color-swatch,
:host textarea::-webkit-color-swatch {
  border: none;
  border-radius: 2px;
}
:host textarea {
  resize: none;
  overflow-y: hidden;
  padding: 10px 12px;
}
:host bce-button {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 36px;
  transform: translateY(-55%);
}
:host bce-button[data-hidden] {
  display: none;
}

:host([disabled]) input,
:host([disabled]) textarea {
  background-color: var(--bce-con4-surface);
  color: var(--bce-con3-surface);
  border-color: var(--bce-con4-surface);
}

:host([focus]) input,
:host([focus]) textarea {
  border-color: var(--bce-c500);
}

:host([error]) bce-label {
  color: var(--bce-c500-error);
}
:host([error]) input,
:host([error]) textarea {
  border-color: var(--bce-c500-error);
}

:host([label]) bce-label {
  position: absolute;
  margin: 15px 12px;
  font-size: 0.9em;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
:host([label]) bce-label[data-hover] {
  margin: 7px 12px;
  font-size: 0.8em;
}
:host([label]) input,
:host([label]) textarea {
  padding: 22px 12px 4px;
}
:host([label]) input[type=color],
:host([label]) textarea[type=color] {
  padding: 24px 10px 8px;
}

@media screen and (min-width: 1024px) {
  :host(:not([compact])) {
    height: 40px;
  }
  :host(:not([compact])) input {
    padding: 12px;
  }
  :host(:not([compact])) input[type=color] {
    padding: 10px;
  }
  :host(:not([compact])) textarea {
    padding: 10px 12px;
  }
  :host(:not([compact])) bce-button {
    right: 0px;
  }

  :host(:not([compact])[label]) bce-label {
    flex: 0 0 25%;
    position: initial;
    margin: 0;
    font-size: initial;
    line-height: 40px;
  }
  :host(:not([compact])[label]) bce-label[data-hover] {
    margin: 0;
    font-size: initial;
  }
  :host(:not([compact])[label]) input,
:host(:not([compact])[label]) textarea {
    flex: 1 0 75%;
  }
  :host(:not([compact])[label]) input {
    padding: 14px 12px;
  }
  :host(:not([compact])[label]) input[type=color] {
    padding: 10px;
  }
  :host(:not([compact])[label]) textarea {
    padding: 10px 12px;
  }
}