import { css } from '//resources/lit/v3_0/lit.rollup.js';
import { getCss as getCrIconsLit } from '//resources/cr_elements/cr_icons_lit.css.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[getCrIconsLit()], css `
dialog {
  background: var(--color-theme-color-picker-hue-slider-dialog-background,
      var(--cr-fallback-color-surface));
  border: 0;
  border-radius: 12px;
  box-shadow: var(--cr-elevation-3);
  box-sizing: border-box;
  color: var(--color-theme-color-picker-hue-slider-dialog-foreground,
      var(--cr-fallback-color-on-surface));
  height: 137px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 296px;
}

@media (forced-colors: active) {
  dialog {
    border: solid 1px Highlight;
  }
}

#contentsWrapper {
  padding: 20px;
}

#header {
  display: flex;
  align-items: center;
  height: 24px;
  gap: 8px;
}

h2 {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

cr-icon-button {
  color: var(--color-theme-color-picker-hue-slider-dialog-icon,
      var(--cr-fallback-color-on-surface-subtle));
  margin-inline-end: -6px;
}

cr-slider {
  --cr-slider-active-color: transparent;
  --cr-slider-ripple-color: var(--cr-active-background-color);
  --cr-slider-ripple-opacity: 0;
  --cr-slider-ripple-size: 40px;
  --cr-slider-ripple-z-index: 0;
  display: block;
  height: 40px;
  margin-block-start: 21px;
  margin-block-end: 12px;
  padding: 0;
  width: 100%;
}

@media (forced-colors: active) {
  cr-slider {
    --cr-slider-ripple-color: Highlight;
    forced-color-adjust: none;
  }
}

cr-slider:focus-visible::part(knob)::after {
  box-shadow: 0 0 0 4px var(--cr-focus-outline-color);
}

/* Set styles for high contrast mode in Windows. */
@media (forced-colors: active) {
  cr-slider:focus-visible::part(knob)::after {
    /* Set outline to hcm (high contrast mode) value. */
    outline: var(--cr-focus-outline-hcm) !important;
  }
}

cr-slider::part(container) {
  background: linear-gradient(to right, var(--hue-gradient_));
  border-radius: 4px;
  border: 0;
  height: 8px;
}

:host-context([dir=rtl]) cr-slider::part(container) {
  background: linear-gradient(to left, var(--hue-gradient_));
}

cr-slider::part(knob) {
  background: transparent;
  box-shadow: none;
  margin-block-start: 4px;
}

cr-slider::part(knob)::after {
  display: block;
  position: absolute;
  content: '';
  box-sizing: border-box;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  background: hsl(var(--knob-hue_), 100%, 50%);
  border: solid 4px var(--color-theme-color-picker-hue-slider-handle, white);
  border-radius: 50%;
  box-shadow: var(--cr-elevation-1);
  transform: translate(-50%, -50%);
  z-index: 1;
}`]);
}
