/* 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: block;
  margin: 20px 0;
}
:host * {
  box-sizing: border-box;
}
:host .dropzone {
  position: relative;
  width: 100%;
  height: 200px;
  border: 1px dashed var(--bce-color-light-d);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
:host .dropzone.highlight {
  border: 1px dashed var(--bce-color-n);
}
:host .dropzone.highlight:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bce-color-n);
  opacity: 0.1;
  pointer-events: none;
}
:host .dropzone bce-ripple {
  background-color: var(--bce-color-n);
}
:host .dropzone bce-icon {
  font-size: 1.8em;
  padding: 16px 16px 8px;
  pointer-events: none;
}
:host .dropzone span {
  padding: 8px 16px 16px;
  pointer-events: none;
}
:host .preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  overflow-x: auto;
}
:host .preview bce-upload-item {
  position: relative;
  flex: 0 1 auto;
  padding: 8px 0;
  height: 100%;
  margin-right: 16px;
  cursor: initial;
}
:host .preview bce-upload-item:first-child {
  margin-left: auto;
  border-left: 10px solid transparent;
}
:host .preview bce-upload-item:last-child {
  margin-right: auto;
  border-right: 10px solid transparent;
}
:host .placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
:host bce-select {
  margin: 5px 0 0;
  text-align: right;
}
:host bce-select bce-chip {
  text-align: initial;
  margin: 2.5px 2.5px 0;
}
:host input[type=file] {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

:host([label]) bce-label {
  display: flex;
  align-items: center;
  height: 40px;
}
@media screen and (min-width: 1024px) {
  :host([label]) bce-label {
    display: inline-flex;
    vertical-align: top;
    width: 25%;
  }
  :host([label]) .container {
    display: inline-block;
    width: 75%;
  }
}

:host([dialog]) h3 {
  margin-top: 8px;
}
:host([dialog]) .container {
  margin-bottom: 16px;
}