.l-color-picker__panel {
  padding: 0;
  width: 256px;
  background: var(--td-bg-color-container);
  box-shadow: var(--td-shadow-2), 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 {
  font: var(--td-font-body-medium);
  color: var(--td-text-color-primary);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-color-picker.t-popup__content {
  box-shadow: var(--td-shadow-2), var(--td-shadow-inset-top), var(--td-shadow-inset-right), var(--td-shadow-inset-bottom), var(--td-shadow-inset-left);
}
.l-color-picker__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--td-comp-size-xxxs);
  background: transparent;
  transition: 0.2s linear;
  color: var(--td-text-color-secondary);
  border-radius: var(--td-radius-default);
  cursor: pointer;
}
.l-color-picker__icon:hover {
  background: var(--td-bg-color-container-hover);
  transition: 0.2s linear;
}
.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: var(--td-pop-padding-xl);
  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: var(--td-pop-padding-xl);
  padding-bottom: calc(var(--td-pop-padding-xl) - 4px);
}
.l-color-picker__thumb {
  position: absolute;
  z-index: 1;
  outline: none;
  border-color: currentcolor;
  width: calc(var(--td-comp-size-xxxs) + var(--td-size-1));
  height: calc(var(--td-comp-size-xxxs) + var(--td-size-1));
  border-radius: var(--td-radius-circle);
  box-shadow: var(--td-shadow-1);
  background: var(--td-text-color-anti);
  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: 160px;
  border-radius: var(--td-radius-default);
  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 {
  /* stylelint-disable-next-line color-no-hex */
  background: linear-gradient(90deg, #fff, transparent);
}
.l-color-picker__saturation::after {
  /* stylelint-disable-next-line color-no-hex */
  background: linear-gradient(0deg, #000, transparent);
}
.l-color-picker__saturation .l-color-picker__thumb {
  width: calc(var(--td-comp-size-xxxs) + var(--td-size-1));
  height: calc(var(--td-comp-size-xxxs) + var(--td-size-1));
  border-radius: var(--td-radius-circle);
  transform: translate(-50%, -50%);
}
.l-color-picker__slider-wrapper {
  border-radius: calc(8px / 2);
  padding: 0 calc(calc(var(--td-comp-size-xxxs) + var(--td-size-1)) / 2);
  position: relative;
}
.l-color-picker__slider-wrapper--hue-type {
  /* stylelint-disable-next-line color-named */
  background: red;
}
.l-color-picker__slider-wrapper--alpha-type {
  background: var(--td-text-color-anti);
  /* stylelint-disable-next-line color-no-hex */
  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: calc(8px / 2);
}
.l-color-picker__slider {
  height: 8px;
  position: relative;
  border-radius: calc(8px / 2);
  cursor: pointer;
  color: transparent;
  outline: none;
  z-index: 1;
}
.l-color-picker__slider .l-color-picker__thumb {
  transform: translate(calc(calc(var(--td-comp-size-xxxs) + var(--td-size-1)) * -0.5), -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: var(--td-comp-margin-m) 0 0 0;
}
.l-color-picker__hue {
  /* stylelint-disable color-no-hex, color-named */
  background: linear-gradient(90deg, red, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
}
.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: var(--td-comp-margin-m) 0;
}
.l-color-picker__sliders {
  width: 100%;
}
.l-color-picker__sliders-preview {
  flex-shrink: 0;
  margin-left: var(--td-comp-margin-m);
  width: var(--td-comp-size-s);
  height: var(--td-comp-size-s);
  border-radius: var(--td-radius-default);
  overflow: hidden;
  background: var(--td-text-color-anti);
  /* stylelint-disable-next-line color-no-hex */
  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: var(--td-comp-margin-m);
}
.l-color-picker__gradient-slider {
  flex: 1;
}
.l-color-picker__gradient-degree {
  position: relative;
  flex-shrink: 0;
  margin-left: var(--td-comp-margin-m);
  width: var(--td-comp-size-xxl);
}
.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-component-border);
}
.l-color-picker__gradient .gradient-thumbs__item-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--td-radius-circle);
  overflow: hidden;
}
.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-m {
  font: var(--td-font-body-small);
}
.l-color-picker__format--item .l-input-number .l-input {
  margin: 0;
}
.l-color-picker__format--item .input-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-left: var(--td-comp-margin-s);
}
.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;
}
.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):not(: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: 72px;
  display: flex;
}
.l-color-picker__format-mode-select .t-select,
.l-color-picker__format-mode-select .t-input {
  padding-right: 0;
}
.l-color-picker__format-mode-select .t-input--prefix > .t-input__suffix {
  padding-left: 0;
}
.l-color-picker__format-mode-select .t-select__right-icon {
  margin-right: var(--td-comp-margin-xs);
}
.l-color-picker__swatches-wrap {
  margin-top: var(--td-comp-margin-m);
  position: relative;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches + .l-color-picker__swatches {
  margin-top: var(--td-comp-margin-m);
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--title {
  font: var(--td-font-body-small);
  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: var(--td-comp-size-xxxs);
  height: var(--td-comp-size-xxxs);
  margin-left: var(--td-comp-margin-s);
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--items {
  width: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(10, var(--td-comp-size-xxxs));
  gap: calc(calc(256px - calc(calc(var(--td-pop-padding-xl) * 2) + calc(var(--td-comp-size-xxxs) * 10))) / 9) calc(calc(256px - calc(calc(var(--td-pop-padding-xl) * 2) + calc(var(--td-comp-size-xxxs) * 10))) / 9);
  max-height: calc(4 * calc(var(--td-comp-size-xxxs) + calc(calc(256px - calc(calc(var(--td-pop-padding-xl) * 2) + calc(var(--td-comp-size-xxxs) * 10))) / 9)));
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(var(--td-pop-padding-xl) - 8px);
  position: relative;
  left: calc(0px - calc(var(--td-pop-padding-xl) - 8px));
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--item {
  display: flex;
  width: var(--td-comp-size-xxxs);
  height: var(--td-comp-size-xxxs);
  border-radius: var(--td-radius-default);
  padding: 0;
  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-default);
  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-radius: var(--td-radius-default);
  box-sizing: border-box;
}
.l-color-picker__swatches-wrap .l-color-picker__swatches--inner {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--td-radius-default);
  box-shadow: var(--td-shadow-inset-top), var(--td-shadow-inset-right), var(--td-shadow-inset-bottom), var(--td-shadow-inset-left);
}
.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 var(--td-comp-paddingLR-s) 0 var(--td-comp-paddingLR-xs);
}
.l-color-picker__trigger--default__color {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.l-color-picker__trigger--default__color .color-inner {
  border: 1px solid var(--td-scrollbar-color);
  display: block;
  width: calc(var(--td-comp-size-xs) - 2px);
  height: calc(var(--td-comp-size-xs) - 2px);
  color: transparent;
  position: relative;
  border-radius: var(--td-radius-small);
}
.l-color-picker__gradient-slider {
  padding: 0 calc(calc(var(--td-comp-size-xxxs) + var(--td-size-1)) / 2);
  border-radius: calc(8px / 2);
}
.l-color-picker__gradient-slider .l-color-picker--bg-alpha {
  background: var(--td-text-color-anti);
  /* stylelint-disable-next-line color-no-hex */
  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 {
  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);
}
