/* prettier-ignore */
: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);
  box-sizing: border-box;
  --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);
  position: relative;
  display: inline-block;
  height: 36px;
  margin: 2px;
  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-con1);
}
: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: var(--bce-c500);
  color: var(--bce-con1);
  border: none;
  appearance: none;
  cursor: inherit;
}
:host button:hover {
  background-color: var(--bce-c400);
}
:host button:focus {
  outline: none;
  background-color: var(--bce-c300);
}

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

:host([disabled]) {
  --bce-c-surface:var(--bce-c000-surface);
  box-shadow: none;
  opacity: 0.5;
  cursor: default;
}
:host([disabled]) button,
:host([disabled]) button:hover,
:host([disabled]) button:focus {
  background-color: var(--bce-c500);
  color: var(--bce-con3);
}

:host([focus]) {
  --bce-c-surface:var(--bce-c004-surface);
  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([icon][icon-position=right]) span {
  padding-left: 0;
  padding-right: 24px;
}
:host([icon][icon-position=right]) bce-icon {
  left: auto;
  right: 0;
}

: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-con4-surface);
}
:host([design=outline]) button {
  padding: 0 11px;
}

:host([design=outline]),
:host([design=text]) {
  --bce-c-surface:var(--bce-c000-surface);
  box-shadow: none;
}
:host([design=outline]) bce-ripple,
:host([design=text]) bce-ripple {
  background-color: var(--bce-c500);
}
:host([design=outline]) button,
:host([design=text]) button {
  background-color: transparent;
  color: var(--bce-c500);
}
:host([design=outline]) button:before,
:host([design=text]) button:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background-color: var(--bce-c500);
  opacity: 0;
}
:host([design=outline]) button:hover:before,
:host([design=text]) button:hover:before {
  opacity: 0.2;
}
:host([design=outline]) button:focus:before,
:host([design=text]) button:focus:before {
  opacity: 0.3;
}

:host([design=outline][disabled]) button,
:host([design=outline][disabled]) button:before,
:host([design=outline][disabled]) button:hover,
:host([design=outline][disabled]) button:focus,
:host([design=text][disabled]) button,
:host([design=text][disabled]) button:before,
:host([design=text][disabled]) button:hover,
:host([design=text][disabled]) button:focus {
  background-color: transparent;
  color: var(--bce-con3-surface);
}

: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-c300:inherit;
  --bce-c400:inherit;
  --bce-c500:inherit;
  --bce-c600:inherit;
  --bce-c700:inherit;
  --bce-con1:inherit;
  --bce-con2:inherit;
  --bce-con3:inherit;
  --bce-con4:inherit;
}

:host([icon]) {
  --bce-c-surface:var(--bce-c000-surface);
  box-shadow: none;
  height: 40px;
  margin: 0 10px 10px 0;
  z-index: 6;
}
:host([icon]) button {
  background-color: transparent;
}
:host([icon]) button bce-icon {
  --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);
  left: auto;
  right: 0;
  top: 2px;
  width: 35px;
  height: 35px;
  background-color: var(--bce-c500);
  color: var(--bce-con1);
  border-radius: 50%;
}
:host([icon]) button span {
  --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);
  margin: 0 30px 0 0;
  padding: 5px 16px;
  background-color: var(--bce-c-surface);
  color: var(--bce-con1-surface);
  text-transform: none;
  border-radius: 34px;
}
:host([icon]) button:hover bce-icon {
  background-color: var(--bce-c400);
}
:host([icon]) button:hover span {
  background-color: var(--bce-c006-surface);
}
:host([icon]) button:focus bce-icon {
  outline: none;
  background-color: var(--bce-c300);
}
:host([icon]) button:focus span {
  background-color: var(--bce-c008-surface);
}

: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;
}