.color-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;

  .color-section {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(6, 24px);
    gap: 6px;
    align-items: center;
  }

  .color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    background: none;
  }

  .color-circle.active {
    border-color: var(--user-color);
  }

  .color-circle.add-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px dashed #ccc;
    color: #555;
  }

  .color-input {
    width: 60px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
  }

  .color-section-label {
    margin-right: 4px;
    font-size: 12px;
    color: var(--color-text);
  }

  .color-picker-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-text);
  }
}

.color-picker.floating {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  background: var(--color-white);
  padding: 8px;
  border: 1px solid #eee;
  box-shadow: var(--shadow-default);
  border-radius: 8px;
}
