import { css } from "lit";
const componentStyle = css`
          * {
            -webkit-tap-highlight-color: transparent;
          }

* {
  user-select: none;
}

:host {
  display: block;
  width: 100%;
  --slide-button-reset-duration: 0.25s;
}

.slide-button-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--ui-components-slide-button-touch-target-size);
  width: 100%;
}

.hug-content {
  width: fit-content;
  justify-content: flex-start;
}

.hug-content .visual-container {
    display: flex;
    width: fit-content;
    align-items: center;
  }

.hug-content .slide-button {
    width: fit-content;
  }

.hug-content .button-touch-target {
    position: relative;
    width: fit-content;
  }

.hug-content .trailing-icon-area {
    position: relative;
    flex: 0 0 var(--global-size-spacing-touch-target-min);
  }

.slide-button-container.disabled {
  cursor: not-allowed;
}

.slide-button-container.disabled .visual-container {
    border-radius: var(--global-border-radius-border-radius-base);
    border-color: var(--indent-disabled-border-color);
    background: var(--indent-disabled-background-color);
  }

.slide-button-container.disabled .button-touch-target {
    pointer-events: none;
  }

.slide-button-container.disabled .button-label {
    color: var(--ui-components-slide-button-disabled-color, #cacaca);
  }

.slide-button-container.disabled .trailing-icon-area {
    color: var(--on-indent-disabled-color);
  }

.slide-button-container.disabled .leading-icon {
    color: var(--on-normal-disabled-color);
  }

.slide-button-container.disabled .slide-button {
    background-color: var(--normal-disabled-background-color);
    border-color: var(--normal-disabled-border-color);
    color: var(--on-normal-disabled-color);
    cursor: not-allowed;
  }

:is(.slide-button-container.disabled .slide-button):hover,:is(.slide-button-container.disabled .slide-button):active {
      background-color: var(--normal-disabled-background-color);
      border-color: var(--normal-disabled-border-color);
      color: var(--on-normal-disabled-color);
    }

.visual-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--ui-components-slide-button-visual-size);
  border-radius: var(--global-border-radius-border-radius-base);
  isolation: isolate;
  z-index: 1;
}

.visual-container {
            border-color: var(--indent-enabled-border-color);
            background-color: var(--indent-enabled-background-color);
            border-width: 1px;
            border-style: solid;
            --base-border-color: var(--indent-enabled-border-color);
            --base-background-color: var(--indent-enabled-background-color);
}

.button-touch-target {
            cursor: pointer;
}

.button-touch-target:focus {
            outline: none;
}

.button-touch-target .slide-button {
            border-color: var(--normal-enabled-border-color);
            background-color: var(--normal-enabled-background-color);
            border-width: 1px;
            border-style: solid;
            cursor: pointer;
            --base-border-color: var(--normal-enabled-border-color);
            --base-background-color: var(--normal-enabled-background-color);
}

.button-touch-target.activated .slide-button {
            border-color: var(--normal-activated-border-color);
            background-color: var(--normal-activated-background-color);
            --base-border-color: var(--normal-activated-border-color);
            --base-background-color: var(--normal-activated-background-color);
}

@media (hover:hover) {

.button-touch-target:hover .slide-button {
                        border-color: color-mix(in srgb, var(--normal-hover-border-color) calc(var(--obc-can-hover) * 100%), var(--base-border-color));
                        background-color: color-mix(in srgb, var(--normal-hover-background-color) calc(var(--obc-can-hover) * 100%), var(--base-background-color));
            }
}

.button-touch-target:active .slide-button {
            border-color: var(--normal-pressed-border-color);
            background-color: var(--normal-pressed-background-color);
}

.button-touch-target:focus-visible .slide-button {
            outline-color: var(--border-focus-color);
            outline-width: var(--global-size-spacing-border-weight-focusframe);
            outline-style: solid;
            border-color: var(--container-global-color);
            z-index: 1;
}

.button-touch-target:disabled .slide-button {
            border-color: var(--normal-disabled-border-color);
            background-color: var(--normal-disabled-background-color);
            cursor: not-allowed;
            color: var(--on-normal-disabled-color) !important;
}

.button-touch-target.disabled .slide-button {
            border-color: var(--normal-disabled-border-color);
            background-color: var(--normal-disabled-background-color);
            cursor: not-allowed;
            color: var(--on-normal-disabled-color) !important;
}

.button-touch-target:disabled {
            cursor: not-allowed;
}

.button-touch-target.disabled {
            cursor: not-allowed;
}

.button-touch-target {
  position: absolute;
  display: flex;
  align-items: center;
  min-width: fit-content;
  width: calc(100% - var(--global-size-spacing-touch-target-min));
  height: var(--ui-components-slide-button-touch-target-size);
  left: -1px;
  z-index: 3;
}

.slide-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px var(--ui-components-button-padding-horizontal);
  border-radius: var(--global-border-radius-border-radius-base);
  min-width: fit-content;
  width: 100%;
  height: calc(var(--ui-components-slide-button-visual-size) + 2px);
}

.slide-button-container.dragging .slide-button {
  border-color: var(--normal-activated-border-color);
}

.button-content {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 var(--ui-components-slide-button-padding-horizontal, 4px);
}

.leading-icon {
  width: var(--global-size-spacing-icon-icon-size-regular);
  height: var(--global-size-spacing-icon-icon-size-regular);
  color: var(--on-normal-neutral-color);
  flex-shrink: 0;
}

.button-label {
  font-family: var(--font-family-main);
  font-weight: var(--global-typography-ui-button-font-weight);
  font-size: var(--global-typography-ui-button-font-size);
  line-height: var(--global-typography-ui-button-line-height);
  font-feature-settings:
    "liga" off,
    "clig" off,
    "ss04" on;
  display: flex;
  align-items: flex-start;
  padding: 0 var(--ui-components-button-label-spacing);
  color: var(--on-normal-active-color);
  white-space: nowrap;
}

.trailing-icon-area {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--global-size-spacing-touch-target-min);
  align-self: stretch;
  z-index: 2;
  color: var(--on-indent-neutral-color);
}

.trailing-icon {
  width: var(--global-size-spacing-icon-icon-size-regular);
  height: var(--global-size-spacing-icon-icon-size-regular);
  flex-shrink: 0;
}

.animating-back .button-touch-target {
  transition: left var(--slide-button-reset-duration) ease-out;
  transform: translateX(0);
}
`;
export {
  componentStyle as default
};
//# sourceMappingURL=slide-button.css.js.map
