@include prefix(color-panel) {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: solid 1px plv(border-color);
  background-color: plv(background-light);

  .color-panel-card {
    padding: 10px 10px 0;
  }

  .color-panel-slider-bar {
    display: flex;

    .color-panel-slider-container {
      flex: 1;
      overflow: hidden;

      @include comp(color-slider) {
        margin-top: 4px;
      }
    }

    .color-panel-slider-color {
      margin-top: 4px;
      height: 24px;
      width: 24px;
      margin-left: 4px;
      border-radius: plv(box-size-small-border-radius);
      box-shadow: rgb(0 0 0 / 15%) 0 0 0 1px inset, rgb(0 0 0 / 25%) 0 0 4px inset;
    }

    .color-panel-dropper {
      margin-top: 4px;
      height: 24px;
      width: 24px;
      margin-right: 4px;
      border-radius: plv(box-size-small-border-radius);
      //box-shadow: rgb(0 0 0 / 15%) 0 0 0 1px inset, rgb(0 0 0 / 25%) 0 0 4px inset;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: plv(secondary-light-2);
      transition: all ease 300ms;
      cursor: pointer;

      &:hover {
        background-color: plv(primary-6);
        color: plv(pbfc);
      }
    }
  }

  .color-panel-editor {
    margin-top: 4px;
    font-size: 12px;
    width: 200px;

    $hexWidth: 60px;

    & > div {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: calc((200px - #{$hexWidth}) / 4);
      box-sizing: border-box;

      &:first-child {
        width: $hexWidth;
      }

      &:not(:first-child) {
        padding-left: 6px;
      }

      input {
        margin-bottom: 4px;
        width: 100%;
        font-size: 12px;
        height: 20px;
        padding: 0;
        border-radius: 0;
        box-shadow: #{plv(secondary-4)} 0 0 0 1px inset;
        border: none;
        outline: none;
        text-align: center;
        background-color: plv(background-light);
        color: plv(text-2);
        border-radius: plv(box-size-small-border-radius);
      }
    }
  }

  .color-panel-history {
    display: flex;
    flex-wrap: wrap;
    width: 200px;
    margin-top: 5px;
    border-top: solid 1px plv(border-color);
    padding: 10px 10px 0;

    .color-panel-history-item {
      height: 16px;
      width: 16px;
      margin-bottom: 10px;
      box-shadow: rgba(0, 0, 0, 0.15) 0 0 0 1px inset, rgba(0, 0, 0, 0.25) 0 0 4px inset;
      cursor: pointer;
      border-radius: plv(box-size-small-border-radius);

      &:not(:nth-child(8n)) {
        margin-right: 10px;
      }
    }
  }
}
