/* prettier-ignore */
: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);
  box-sizing: border-box;
  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);
  position: relative;
  display: inline-block;
  height: 36px;
  margin: 0 2px;
  background-color: var(--bce-color-n);
  color: var(--bce-color-t);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  user-select: none;
  transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
:host *,
:host *:before,
:host *:after {
  box-sizing: border-box;
}
:host bce-ripple {
  background-color: var(--bce-color-t);
}
:host button {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background-color: transparent;
  color: inherit;
  border: none;
  appearance: none;
  cursor: inherit;
}
:host button:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background-color: var(--bce-color-t);
  opacity: 0;
}
:host button:hover:before {
  opacity: 0.1;
}
:host button:focus {
  outline: none;
}
:host button:focus:before {
  opacity: 0.2;
}

:host([block]) {
  width: 100%;
}

:host([disabled]) {
  box-shadow: none;
  color: var(--bce-color-disable-t);
  background-color: var(--bce-color-disable-n);
  opacity: 0.5;
  cursor: default;
}
:host([disabled]) button:before {
  display: none;
}

:host([focus]) {
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  outline: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
}

:host([icon]) button span {
  padding-left: 24px;
}
:host([icon]) button bce-icon {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
:host([icon]) button.icon-only {
  padding: 0;
}
:host([icon]) button.icon-only bce-icon {
  position: relative;
}
:host([icon]) button.icon-only span {
  display: none;
}

:host([small]) {
  height: 28px;
}
:host([small]) button {
  padding: 0 8px;
}
:host([small]) button span {
  padding-left: 18px;
}

:host([design=outline]) {
  border: 1px solid var(--bce-color-light-d);
}
:host([design=outline]) button {
  padding: 0 11px;
}

:host([design=outline]),
:host([design=text]) {
  box-shadow: none;
  background-color: transparent;
  color: var(--bce-color-n);
}
:host([design=outline]) bce-ripple,
:host([design=text]) bce-ripple {
  background-color: var(--bce-color-n);
}
:host([design=outline]) button:before,
:host([design=text]) button:before {
  background-color: var(--bce-color-n);
}

:host([design=outline][disabled]),
:host([design=text][disabled]) {
  color: var(--bce-color-disable-t);
}

:host([design=outline][small]) button {
  padding: 0 7px;
}

:host([design=text][icon][block]) > button > span {
  padding-left: 0;
}
:host([design=text][icon][block]) > button > bce-icon {
  top: 2px;
  position: relative;
}

:host {
  --bce-color-l: inherit;
  --bce-color-n: inherit;
  --bce-color-d: inherit;
  --bce-color-t: inherit;
}

:host([icon]) {
  box-shadow: none;
  height: 40px;
  margin: 0 10px 10px 0;
  background-color: transparent;
  z-index: 6;
}
:host([icon]) button bce-icon {
  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);
  left: auto;
  right: 0;
  top: 2px;
  width: 35px;
  height: 35px;
  background-color: var(--bce-color-n);
  color: var(--bce-color-t);
  border-radius: 50%;
}
:host([icon]) button span {
  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);
  margin: 0 30px 0 0;
  padding: 5px 16px;
  background-color: var(--bce-color-light-n);
  color: var(--bce-color-light-t);
  text-transform: none;
  border-radius: 34px;
}
:host([icon]) button:before {
  display: none;
}

:host([data-inactive]) {
  display: none;
}

:host([data-inline]) {
  flex: 0 0 50%;
  margin: 0;
}
:host([data-inline]) button {
  padding: 0;
}
:host([data-inline]) button span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 40px 0 5px;
}
@media screen and (min-width: 1024px) {
  :host([data-inline]) button span {
    margin: 0 5px 0 40px;
  }
  :host([data-inline]) button bce-icon {
    left: 0;
    right: auto;
  }
}

:host([data-inline]:nth-child(odd)) button span {
  margin: 0 5px 0 40px;
}
:host([data-inline]:nth-child(odd)) button bce-icon {
  left: 0;
  right: auto;
}