.l-color-picker__panel {
  padding: 0;
  width: 254px;
  background: var(--td-bg-color-container);
  box-shadow: var(--td-shadow-1), var(--td-shadow-inset-top), var(--td-shadow-inset-right), var(--td-shadow-inset-bottom), var(--td-shadow-inset-left);
  border-radius: var(--td-radius-medium);
  user-select: none;
}
.l-popup__content .l-color-picker__panel {
  background: transparent;
  box-shadow: unset;
}
.l-color-picker {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--td-text-color-primary);
  font-size: var(--td-font-size-body-medium);
  font-family: var(--td-font-family);
  list-style: none;
}
.l-color-picker.l-popup__content {
  border-radius: 6px;
  box-shadow: var(--td-shadow-1), var(--td-shadow-inset-top), var(--td-shadow-inset-right), var(--td-shadow-inset-bottom), var(--td-shadow-inset-left);
}
.l-color-picker__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--td-bg-color-container);
  transition: color 0.2s cubic-bezier(0.38, 0, 0.24, 1);
  color: var(--td-text-color-secondary);
  border-radius: 3px;
  cursor: pointer;
}
.l-color-picker__icon:hover {
  background: var(--td-bg-color-container-hover);
}
.l-color-picker__icon.l-is-disabled {
  color: var(--td-text-color-disabled);
  pointer-events: none;
}
.l-color-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  position: relative;
  z-index: 2;
}
.l-color-picker__head .l-color-picker__close {
  flex-shrink: 0;
}
.l-color-picker__head + .l-color-picker__body {
  padding-top: 0;
}
.l-color-picker__body {
  padding: 12px;
  padding-bottom: 8px;
}
.l-color-picker__thumb {
  position: absolute;
  z-index: 1;
  outline: none;
  border-color: currentcolor;
  width: 18px;
  height: 18px;
  border-radius: var(--td-radius-circle);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  background: #fff;
  color: var(--td-text-color-brand);
  padding: 2px;
  box-sizing: border-box;
}
.l-color-picker__thumb::before {
  content: "";
  width: 100%;
  height: 100%;
  background: currentcolor;
  border-radius: var(--td-radius-circle);
  display: block;
}
.l-color-picker__saturation {
  height: 168px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.l-color-picker__saturation::before,
.l-color-picker__saturation::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.l-color-picker__saturation::before {
  background: linear-gradient(90deg, #fff, transparent);
}
.l-color-picker__saturation::after {
  background: linear-gradient(0deg, #000, transparent);
}
.l-color-picker__saturation .l-color-picker__thumb {
  width: 18px;
  height: 18px;
  border-radius: var(--td-radius-circle);
  transform: translate(-50%, -50%);
}
.l-color-picker__slider-wrapper {
  border-radius: 8px;
  padding: 0 9px;
  position: relative;
}
.l-color-picker__slider-wrapper--hue-type {
  background: #f00;
}
.l-color-picker__slider-wrapper--alpha-type {
  background: #fff;
  background-image: linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5), linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
}
.l-color-picker__slider-padding {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  border-radius: 8px;
}
.l-color-picker__slider {
  height: 8px;
  position: relative;
  border-radius: 8px;
  cursor: pointer;
  color: transparent;
  outline: none;
  z-index: 1;
}
.l-color-picker__slider .l-color-picker__thumb {
  transform: translate(-9px, -50%);
  top: 50%;
}
.l-color-picker__slider .l-color-picker__rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}
.l-color-picker__alpha,
.l-color-picker__format {
  margin: 12px 0 0 0;
}
.l-color-picker__hue {
  background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00);
}
.l-color-picker__alpha .l-color-picker__rail {
  background: linear-gradient(to right, transparent, currentcolor);
}
.l-color-picker__sliders-wrapper {
  display: flex;
  align-items: center;
  margin: 12px 0;
}
.l-color-picker__sliders {
  width: 186px;
}
.l-color-picker__sliders-preview {
  flex-shrink: 0;
  margin-left: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--td-radius-default);
  overflow: hidden;
  background-image: linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5), linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
}
.l-color-picker__sliders-preview-inner {
  display: block;
  width: 100%;
  height: 100%;
}
.l-color-picker__gradient {
  padding: 0;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.l-color-picker__gradient-slider {
  flex: 1;
}
.l-color-picker__gradient-degree {
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
  width: 42px;
}
.l-color-picker__gradient-degree .l-input {
  margin: 0;
  font: var(--td-font-body-small);
}
.l-color-picker__gradient-degree .l-input-number {
  width: 100%;
  padding: 0;
}
.l-color-picker__gradient .gradient-thumbs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: inherit;
  cursor: pointer;
}
.l-color-picker__gradient .gradient-thumbs__item {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
  cursor: pointer;
}
.l-color-picker__gradient .gradient-thumbs__item::before {
  display: none;
}
.l-color-picker__gradient .gradient-thumbs__item.l-is-active {
  z-index: 1;
  outline: 2px solid var(--td-text-color-brand);
}
.l-color-picker__gradient .gradient-thumbs__item-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--td-radius-circle);
  overflow: hidden;
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
}
.l-color-picker__gradient .gradient-thumbs__item-inner::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background-color: currentcolor;
}
.l-color-picker__format {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.l-color-picker__format--item:first-child {
  flex-shrink: 0;
}
.l-color-picker__format--item:last-child {
  flex: 1;
}
.l-color-picker__format--item .l-size-m,
.l-color-picker__format--item .l-input.l-size-medium {
  font: var(--td-font-body-small);
}
.l-color-picker__format--item .l-input-number .l-input {
  margin: 0;
}
.l-color-picker__format--item .l-select__single {
  margin-left: 4px;
}
.l-color-picker__format--item .input-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-left: 8px;
}
.l-color-picker__format--item .input-group__item {
  flex: 1;
  width: 0;
  margin-left: -1px;
}
.l-color-picker__format--item .input-group__item .l-input {
  padding: 0 1px;
  font: var(--td-font-body-small);
}
.l-color-picker__format--item .input-group__item .l-input:focus,
.l-color-picker__format--item .input-group__item .l-input:focus-within,
.l-color-picker__format--item .input-group__item .l-input:hover {
  z-index: 1;
}
.l-color-picker__format--item .input-group__item:not(:first-child, :last-child) .l-input {
  border-radius: 0;
}
.l-color-picker__format--item .input-group__item:first-child:not(:last-child) .l-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.l-color-picker__format--item .input-group__item:last-child:not(:first-child) .l-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.l-color-picker__format--item .input-group .l-input-number {
  width: 100%;
  padding: 0;
}
.l-color-picker__format-mode-select {
  width: 70px;
}
.l-color-picker__format-mode-select .l-select,
.l-color-picker__format-mode-select .l-input {
  padding-right: 0;
}
.l-color-picker__format-mode-select .l-input--prefix > .l-input__suffix {
  padding-left: 0;
}
.l-color-picker__format-mode-select .l-select__right-icon {
  margin: 0 4px 0 0;
}
.l-color-picker__swatches-wrap {
  margin: 12px 0 0 0;
  position: relative;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches + .l-color-picker__swatches {
  margin-top: 12px;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--title {
  font: var(--td-font-body-small);
  margin: 0 0 12px;
  padding: 0;
  color: var(--td-text-color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  font-size: 0;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--actions .l-color-picker__icon {
  width: 16px;
  height: 16px;
  margin-left: 12px;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--remove {
  position: relative;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--remove .l-popup {
  position: absolute;
  inset: auto auto 0 0;
  margin: 0;
  bottom: 30px;
  left: 10px;
  transform: translateX(-50%);
  cursor: default;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--remove .l-popconfirm__content {
  width: 220px;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--items {
  width: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(10, 18px);
  gap: 5.7px 5.7px;
  max-height: 94.8px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 -11px 0 -1px;
  padding: 4px 10px 4px 4px;
  position: relative;
  left: -4px;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--item {
  display: flex;
  width: 18px;
  height: 18px;
  border-radius: var(--td-radius-circle);
  padding: 0;
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-origin: center;
  transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
  box-sizing: border-box;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--item:hover {
  transform: scale(1.25);
  transform-origin: center;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--item__color {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--td-component-border);
  border-radius: var(--td-radius-circle);
  flex-shrink: 0;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--item__inner {
  width: 100%;
  height: 100%;
  display: block;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--item:not(.l-is-active):hover {
  padding: 0;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--item.l-is-active .l-color-picker__swatches--item__color,
.l-color-picker__swatches-wrap .l-color-picker__swatches--item.l-is-active .l-color-picker__swatches--color {
  border-color: var(--td-text-color-brand);
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--color {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--td-component-border);
  border-radius: var(--td-radius-circle);
  box-sizing: border-box;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--inner {
  width: 100%;
  height: 100%;
  display: block;
}
.l-color-picker__trigger--default {
  display: inline-flex;
  align-items: center;
}
.l-color-picker__trigger--default > .l-input {
  width: fit-content;
}
.l-color-picker__trigger--default .l-input {
  padding: 0 4px;
}
.l-color-picker__trigger--default__color {
  width: 24px;
  height: 24px;
  margin-right: 4px;
  box-sizing: border-box;
}
.l-color-picker__trigger--default__color .color-inner {
  border: 1px solid var(--td-scrollbar-color);
  display: block;
  width: 22px;
  height: 22px;
  color: transparent;
  position: relative;
  border-radius: var(--td-radius-default);
}
.l-color-picker__gradient-slider {
  padding: 0 9px;
  border-radius: 8px;
}
.l-color-picker__gradient-slider .l-color-picker--bg-alpha {
  background-image: linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5), linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
}
.l-color-picker__panel.l-is-disabled .l-color-picker__saturation,
.l-color-picker__panel.l-is-disabled .l-color-picker__slider,
.l-color-picker__panel.l-is-disabled .l-color-picker__swatches--item {
  opacity: 0.8;
  cursor: not-allowed;
}
.l-color-picker__panel.l-is-disabled .l-color-picker__gradient-slider .gradient-thumbs,
.l-color-picker__panel.l-is-disabled .l-color-picker__gradient-slider .gradient-thumbs__item {
  cursor: not-allowed;
}
.l-color-picker__panel.l-is-disabled .l-color-picker__swatches--item:hover {
  padding: 0;
}
.l-color-picker__select-options > .l-popup__content {
  border-radius: 6px;
  box-shadow: var(--td-shadow-1), var(--td-shadow-inset-top), var(--td-shadow-inset-right), var(--td-shadow-inset-bottom), var(--td-shadow-inset-left);
}
